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

[system] Fix all use of styled(Box) #40449

Merged
merged 7 commits into from
Jan 9, 2024

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Jan 6, 2024

Something I saw while reviewing https://app.ashbyhq.com/jobs/ee40c71f-2807-4235-a73f-76a397a1e661/candidate-pipeline/active/right-side/candidates/76bcaaf9-3644-497a-b93c-3230b5119b26/applications/331a983d-10a0-4459-b417-ea76bb29aa96/feed.

We exclusively use the sx prop to style with Box, we don't use the flattened prop https://mui.com/system/react-box/#system-props in our codebase (I would be more than happy to deprecate this). So it doesn't make much sense to me to have styled(Box). It's not good for performance.

@oliviertassinari oliviertassinari added package: system Specific to @mui/system core Infrastructure work going on behind the scenes performance component: Box The React component. and removed core Infrastructure work going on behind the scenes labels Jan 6, 2024
@mui-bot
Copy link

mui-bot commented Jan 6, 2024

Netlify deploy preview

https://deploy-preview-40449--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against d0d7bfe

@oliviertassinari oliviertassinari force-pushed the no-styled-box branch 2 times, most recently from 5253853 to bd91b76 Compare January 6, 2024 18:37
Signed-off-by: Olivier Tassinari <olivier.tassinari@gmail.com>
@oliviertassinari oliviertassinari enabled auto-merge (squash) January 8, 2024 12:51
@oliviertassinari oliviertassinari merged commit ea16771 into mui:master Jan 9, 2024
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Jan 9, 2024
Signed-off-by: Olivier Tassinari <olivier.tassinari@gmail.com>
@oliviertassinari oliviertassinari deleted the no-styled-box branch January 31, 2024 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Box The React component. package: system Specific to @mui/system performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants