-
-
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
[core] Improve instructions for the @material-ui/styles migration #27466
[core] Improve instructions for the @material-ui/styles migration #27466
Conversation
@@ -298,6 +290,14 @@ const pages: readonly MuiPage[] = [ | |||
{ pathname: '/guides/flow' }, | |||
], | |||
}, | |||
{ | |||
pathname: '/styles', |
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.
Moving this as last item in the sidebar, we don't want developers to read it unless they have legacy code from v4.
Co-authored-by: Olivier Tassinari <[email protected]>
Co-authored-by: Olivier Tassinari <[email protected]>
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.
added some comments, the rest looks fine.
Co-authored-by: Siriwat K <[email protected]>
I've pushed one more commit 30bc5d9 for fixing the imports on the advanced page. I think it's good to go now. |
Changes done in the PR:
@material-ui/styles
package that it is a legacy and recommends using the @material-ui/system packagemakeStyles
,withStyles
andwithTheme
utilities that throw Errors with links to the migration guideCloses #27216
Preview: https://deploy-preview-27466--material-ui.netlify.app/styles/basics/