-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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 does not pass the disabled class #20343
Comments
That is a general problem with our styling solution and component inheritance. Maybe we should start exposing separate props for the classes of the inherited component. This has probably been asked before @oliviertassinari ? |
But it is done for the dense class no? |
Yeah because A pull request following the approach @oliviertassinari pointed out in #20343 (comment) would be welcome! |
Can I take this? |
Fine for me! |
The MenuItem does not pass the disabled class to the inner ListItem like it does with the dense class name.
Current Behavior 😯
When a disabled class name is passed to the MenuItem classes property a warning is generated. and the class name is not applied to the disabled menu item.
Expected Behavior 🤔
I would like to be able to pass the disabled class name to the MenuItem classes so it could be relayed to the inner ListItem element, like with the dense class name.
Your Environment 🌎
The text was updated successfully, but these errors were encountered: