-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Replace @mui/styles with @mui/system #1234
Comments
@ro7584 Interesting. This import is strictly speaking wrong: We are not allowed to import from this package. Only from the core based on the current dependencies of the package.json. As you can see, it's getting resolved in v5 with: Now, the problem is that Are you facing a specific issue (yarn v2 maybe)? |
You're right. Recently, I'm trying to use Plug'n'Play and get Glad to know that it's getting resolved in v5. |
It might be worth noting that Material 5 is not actually supported. On NPM it says that you can use DataGrid with Material 5, but this isn't the case. |
@bclehmann It's supported, but there are a few limitations, like this one that can be worked around. |
I'm not sure that it makes sense to call it a limitation if merely importing the module will prevent compilation. I don't think that you can say Material 5 is supported if it requires non-standard (and undocumented) changes to package resolution. And it's probably not supported if the current plan is to not add support until Material 5 leaves beta. |
@bclehmann Please provide a reproduction, a working demo with core v5: https://codesandbox.io/s/material-demo-forked-93pqu. |
The idea on this issue is to have |
I've renamed the title to reuse this issue for the migration to @mui/system. We could investigate how complex would be to lower the specificity with the new API. Related to #99 (comment) The goal is to be able to override styles with |
I can't folow.. what's status quo? is @mui/styles going to be removed? |
@trickreich The @mui/styles package is the JSS-based styling solution used in MUI Core v4, but removed in v5, in place of emotion. Since it's legacy now, users need to have both styling packages to be able to use the DataGrid. Our plan is to remove the legacy package and use emotion only (with support for |
I'm reopening as And, we even have a demo using it, it's misleading: I couldn't find another GitHub issue about this topic. |
My bad: #2991 |
Hi ~
I was wondering if it could add
@material-ui/styles
as dependency for the@material-ui/grid
?The file below was included by
@material-ui/data-grid
, but missing in package.json.https://github.com/mui-org/material-ui-x/blob/v4.0.0-alpha.22/packages/grid/_modules_/grid/utils/material-ui-utils.ts#L3
The text was updated successfully, but these errors were encountered: