-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Material UI classes argument and composition. #15
Comments
I double checked, |
So it looks like MUI compose styles and therefore there is another class. I see 2 problems with that:
Any thoughts? |
Thanks for reporting, I will look into it latter today. |
I am investigating the issue |
I think I got it, let me release a new version |
Sorry it took me so long to address this major issue. |
@garronej sorry for long response, thanks for effort, I'll test it soon. |
Hi @ProtonGustave, |
@garronej looks like it works, thank you! |
Problem: i use composition as you proposed in docs, but there is a problem when i use it with
classes
props from MUI.Let's i have styles object
tableRow
, i need it class name to use in composition, i'm doingcss(tableRow)
and it returnstss-react-1yphcmd
i then useclasses.tableRow
in component code like thisclasses={{ root: classes.tableRow }}
.Then in browser i see this element has class
tss-react-1yphcmd-MuiTableRow-root
, i.e. something added-MuiTableRow-root
string. What's the problem? I see easy workaround here but i really would prefer to simply usecss(tableRow)
.The text was updated successfully, but these errors were encountered: