Closed helfi92 closed 4 years ago
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 .MuiIconButton-edgeEnd
css rule with marginRight: -12px.
My commit made so many changes in yarn.lock. Is it ok?
I added marginRight: 0 to expandIcon that overrides .MuiIconButton-edgeEnd css rule with marginRight: -12px.
What I'm trying to understand is why it was working in previous material-ui but broke in material v4.
My commit made so many changes in yarn.lock. Is it ok?
Yeah, that's okay.
Do you know why this style broke in latest material-ui? It’d be good to know why.
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 false
. But expandIcon in ExpansionPanelSummary adds edge: 'end'
to Icon as default. May be it's material-ui bug )
We can add IconButtonProps={{edge:"false"}} prop to ExpandPanelSummary and we can remove extra classes
We can add IconButtonProps={{edge:"false"}} prop to ExpandPanelSummary and we can remove extra classes
I like this solution. Let's do it :)
I'm not sure about padding between items, but it must work after overrides in theme.js.
I can't run yarn start:styleguide
, cause this warning
theme.js not working in http://localhost:5000/ development server(
Does yarn run styleguidist server
work?
Another thing you can try is rm -rf node_modules/ && yarn && yarn start:styleguide
.
Another thing you can try is rm -rf node_modules/ && yarn && yarn start:styleguide Does yarn run styleguidist server work?
I've tried both, not working. Catch the same error
I've tried both, not working. Catch the same error
Ah, it's possible that you introduced code that doesn't compile. Check git status
for any code introduced by accident like an extra comma or something.
import StyleGuide from 'react-styleguidist/lib/client/rsg-components/StyleGuide/StyleGuideRenderer'; Works for me
There are two more regressions Before
After
It seems like after migration css rules work different
In old version .makeStyles-panelExpanded
override .MuiExpansionPanel-root.Mui-expanded
Should we change it?
In old version .makeStyles-panelExpanded override .MuiExpansionPanel-root.Mui-expanded Should we change it?
Yes please :)
I followed this example to make it work correctly
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 In demo styleguide uses CodeMirror for codeviewer
Awesome work @Rolikasi. Thank you for the help!
Released in material-ui-treeview@4.0.0 🎉
Woohoo!!!
Closes https://github.com/helfi92/material-ui-treeview/issues/36.