-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MenuItem]: add prop for ListItem classes #15161
Conversation
@@ -28,7 +28,16 @@ export const styles = theme => ({ | |||
}); | |||
|
|||
const MenuItem = React.forwardRef(function MenuItem(props, ref) { | |||
const { classes, className, component, disableGutters, role, selected, ...other } = props; | |||
const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This got reformatted when I did yarn prettier
.
@zsalzbank What's your objective? |
e48c22b
to
ee226f0
Compare
I'd like to be able to change the |
Details of bundle changes.Comparing: 240dc18...ee226f0
|
Why not using the |
If we move forward with #15140. You will no longer need it. At least, in the most simple case, you could target |
That works - I guess I didn't notice it because it was so far down the chain. It would be cool if the documentation was expandable or something so that all props (nested and far down the chain) were exposed on one page. |
Feel free to close if this isn't desirable. |
I think that we should limit as much as possible the nested classes API usage. The
We agree, we were thinking of documenting the whole prop spread chain. In the case of the MenuItem, it would be: |
@zsalzbank I'm closing for now. Thank you for taking the time. |
As far as I could tell, there was no way to modify the
ListItem
classes. I used the same methodology as theMenu
does for changing the childPopover
classes.