-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[docs] Change imports from @material-ui/styles to @material-ui/core/styles #17447
Conversation
Details of bundle changes.Comparing: 9122b60...0f05e13
|
@material-ui/styles
to @material-ui/core/styles
@material-ui/styles
to @material-ui/core/styles
Hi @mnemanja, thanks for starting this. I have pushed it a bit further. @oliviertassinari Guides
Styles
Components
There may still be some exports unresolved (I only re-exported what was documented). Also, there is a TypeScript error in |
@mbrookes I'm looking at the fails. |
2e5b2c4
to
a8eedb3
Compare
a57aba8
to
820e93c
Compare
e0ff568
to
7d37153
Compare
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.
It seems to be good, on my side. It would be great to double-check. They might be opportunities to improve the documentation wordings.
We shouldn't forget to update the examples once the changes are released.
e0ff568
to
f7fde53
Compare
@joshwooding Could you cast your eye over 7a94ecd please? |
|
||
To remove the need for injecting a theme in the React's context **systematically** and to reduce the number of manual installations a developer needs to do, the `@material-ui/styles` modules are re-exported from `@material-ui/core/styles` (with a default theme). | ||
To reduce the number of packages required when used with Material-UI, and to simplify the imports, `@material-ui/styles` modules are re-exported from `@material-ui/core/styles`. To remove the need to systematically supply a theme, the default Material-UI theme is applied to `makeStyles`, `styled`, and `withStyles`. |
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.
To reduce the number of packages required when used with Material-UI, and to simplify the imports, `@material-ui/styles` modules are re-exported from `@material-ui/core/styles`. To remove the need to systematically supply a theme, the default Material-UI theme is applied to `makeStyles`, `styled`, and `withStyles`. | |
To reduce the number of packages to install when using Material-UI, and to simplify the imports, `@material-ui/styles` modules are re-exported from `@material-ui/core/styles`. To remove the need to systematically supply a theme, the default Material-UI theme is applied to the re-exported `makeStyles`, `styled`, and `withStyles` modules. |
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.
When what is used with Material-UI?
Only using one package to import everything from :) |
It still uses the same number of transitive packages. It might be confusing. |
Suggestion revised. |
Looks great |
This reverts commit 6c101de.
3d9061f
to
0f05e13
Compare
A change we should have done a long time ago, excited to see it land :). |
THANK YOU! |
Closes #17387
Closes #15867