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

[docs] Polish migration guide #43021

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

oliviertassinari
Copy link
Member

Small content formating issues I could spot on the page.

@oliviertassinari oliviertassinari added the docs Improvements or additions to the documentation label Jul 22, 2024
Comment on lines 439 to 442
```diff
- import { styled } from '@mui/material/styles';
+ import { styled } from '@mui/material-pigment-css';
-import { styled } from '@mui/material/styles';
+import { styled } from '@mui/material-pigment-css';
```
Copy link
Member Author

@oliviertassinari oliviertassinari Jul 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused about this new package, I don't understand the direction. I think we need to move to a place where @mui/material is only exporting one thing: CSS, and developers can opt-in to copy the source if they want. We won't be able to get this by having material-ui specific packages. If we really need a separate package (I don't understand the breaking change argument because Pigment CSS is unstable, an intermediary package around it won't change it), I think we should use MUI System for it.

So can we not do this but move towards?

-import { styled } from '@mui/material/styles';
+import { styled } from '@pigment-css/react';

same for the other modules

-import { useTheme } from '@mui/material/styles';
+import { useTheme } from '@pigment-css/react';

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Jul 23, 2024
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Aug 2, 2024
@oliviertassinari oliviertassinari merged commit b3cb316 into mui:next Aug 2, 2024
17 of 18 checks passed
@oliviertassinari oliviertassinari deleted the polish-migration-guide branch August 2, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants