Skip to content
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

Merged
merged 9 commits into from
Jul 29, 2021

Conversation

mnajdova
Copy link
Member

@mnajdova mnajdova commented Jul 27, 2021

Changes done in the PR:

  • Moves the page for the @material-ui/style package in the sidebar to be last
  • Adds note in the pages for the @material-ui/styles package that it is a legacy and recommends using the @material-ui/system package
  • exports empty functions for the makeStyles, withStyles and withTheme utilities that throw Errors with links to the migration guide

Closes #27216

Preview: https://deploy-preview-27466--material-ui.netlify.app/styles/basics/

@@ -298,6 +290,14 @@ const pages: readonly MuiPage[] = [
{ pathname: '/guides/flow' },
],
},
{
pathname: '/styles',
Copy link
Member Author

@mnajdova mnajdova Jul 27, 2021

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.

@mui-pr-bot
Copy link

mui-pr-bot commented Jul 27, 2021

Details of bundle changes (experimental)

Generated by 🚫 dangerJS against 30bc5d9

@oliviertassinari oliviertassinari added package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5. v5.x migration labels Jul 27, 2021
Copy link
Member

@siriwatknp siriwatknp left a 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.

@mnajdova
Copy link
Member Author

I've pushed one more commit 30bc5d9 for fixing the imports on the advanced page. I think it's good to go now.

@mnajdova mnajdova merged commit 4ae71c6 into mui:next Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5. v5.x migration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

makeStyles not found since v5.0.0-alpha.35
4 participants