-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
migrating the styles #28990
Comments
If you wish to continue to use
Simple dialog example: v4 codesandbox - https://codesandbox.io/s/nervous-kepler-rzvr3?file=/src/App.js (most of the changes are in the If you want to migrate from JSS to emotion, take a look at https://mui.com/guides/migration-v4/#migrate-from-jss If none of these work, please provide a reproduction that we can look into, otherwise is not clear what doesn't work. Do you have some actionable suggestions for improving the migration? We know that it is more extensive and tried our best to make it easy to follow, so any feedback here will be very much appreciated. |
We're having the same issue with migration to v5. |
@kga-gravityandstorm @mnajdova yes indeed, I have to tell you that we have decided to stay in 4.12.2 and not update to 5. It's a pity but we do not have weeks to reconstruct all our widgets because of this mess, we simply cannot upgrade with this process. Not ideal at all, but we rather have a great looking and working project with 4.12.2 than a giant mess that will take lots of time from us with version 5 |
I am also having major styling issues from upgrading to V5. About 50% of my app styling is broken, the app runs but it's unusable. With 100's of files it would take weeks of work to get back to what I currently have with V4. I tried the troubleshooting steps with no success. I am going back to V4 for now but this is concerning. |
@tramert exactly, it is just not worth it upgrading with the current issues, hopefully this will be addressed as it is not realistic to expect people to redo, or reanalyze or reconfigure or rethink or re-research how its done etc large parts of their project after an upgrade |
I'm afraid I must second the sentiments stated here. Running a component library with 90+ components all depending on Material UI, there's no way we'd upgrade with forseeable consequences any time soon. |
@javismiles just curious did you also check https://github.com/garronej/tss-react which is basically replacement for the |
For people coming on the issue and want to continue to use the |
@mnajdova I plan to work on the codemod from |
I was facing the same issue, no errors in the console, technically everything works but Please add the codemod for |
@amir0ff There is already a large section about the codemod in the documentation you linked to. |
It is indeed 👍🏼 thanks @ryancogswell. I was misguided because the section said |
Closing this as completed since the |
I have migrated from v4 to v5 following your half-clear guide (and second half unclear guide) at
https://mui.com/guides/migration-v4/
The app still runs (phew...), but all the styles are messed up, all the corrections in sliders, buttons etc, all messed up = massive problem.
Your guide is confusing as to how to fix this. Please explain. Say I have something like this:
const useStyles = makeStyles({ root: { margin:3,padding:3, }, contentroot:{ margin:3,padding:3, }, paper:{ margin:0,padding:0, backgroundColor: "#eeeeee", }, margins:{ margin: 0,padding: 0, } });
and then
const classes = useStyles();
and then I apply that for example to a Dialog with
classes={{ root: classes.root, paper: classes.paper, container: classes.margins, paperWidthMd: classes.margins, }}
what changes are needed to make this work in exactly the same way with v5?
same for other similar changes I may have done in sliders, buttons etc,
because all our sliders, buttons etc are now looking messed up with v5, and so far we are feeling like going back to v4 really, what a mess (and I think your migrating document needs a rethink)
The text was updated successfully, but these errors were encountered: