-
Notifications
You must be signed in to change notification settings - Fork 21
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
Migrate to material-ui v4 #46
Conversation
680144d
to
a96c47a
Compare
Do you know why this style broke in latest material-ui? It’d be good to know why. |
I added marginRight: 0 to expandIcon that overrides |
What I'm trying to understand is why it was working in previous material-ui but broke in material v4.
Yeah, that's okay. |
I'm trying to find it in material-ui changelog and documentation. Don't understand why expandIcon gets edgeEnd now. It's too late in my timezone, I'll try to find it tomorrow |
Sounds good. |
This PR added edge props to IconButton in material-ui v4, default value is |
I like this solution. Let's do it :) |
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.
Code looks good but I just found two other regressions when comparing to https://hassanali.me/material-ui-treeview/ :(
- Spacing between edge and the button
Before
After
- Items too close to each other
Before
After
I'm not sure about padding between items, but it must work after overrides in theme.js. |
Does |
Another thing you can try is |
I've tried both, not working. Catch the same error |
Ah, it's possible that you introduced code that doesn't compile. Check |
import StyleGuide from 'react-styleguidist/lib/client/rsg-components/StyleGuide/StyleGuideRenderer'; Works for me There are two more regressions After It seems like after migration css rules work different In old version |
Yes please :) |
I followed this example to make it work correctly |
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.
Is it OK now? |
Yeah, looks good :) Do you know why this happened by any chance? |
React styleguide now uses Prism for codeviewer and these values are default. So I changed some of these values in theme.js |
Awesome work @Rolikasi. Thank you for the help! |
Released in material-ui-treeview@4.0.0 🎉 |
Woohoo!!! |
Closes #36.