[makeStyles] $ruleName
does not work in styles as a function
#28180
Labels
bug 🐛
Something doesn't work
duplicate
This issue or pull request already exists
package: styles
Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.
Following the tutorial from here, the solution does not seem to work when trying to add props into the mix.
Current Behavior 😯
When adding props to the mix, a classname for .MuiButton-contained.Mui-disabled is not created.
The color red is not injected anywhere.
Expected Behavior 🤔
A classname override for .MuiButton-contained.Mui-disabled should be added to css.
Steps to Reproduce 🕹
Example can be seen here. I just added ~2 lines to the template code from mui's tutorial.
https://codesandbox.io/s/material-demo-forked-ocv2l
Context 🔦
An increased specificity should be possible with additional props usage.
The text was updated successfully, but these errors were encountered: