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

[Grid2] Fix theme scoping error #44599

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

siriwatknp
Copy link
Member

@siriwatknp siriwatknp commented Nov 29, 2024

closes #44539

The Grid2 does not work properly when theme scoping is configure because it's using theme directly from @mui/system.

The fix is to pass useTheme from Material UI when creating Grid2 component.

Test added.

@siriwatknp siriwatknp added bug 🐛 Something doesn't work component: Grid The React component. labels Nov 29, 2024
@mui-bot
Copy link

mui-bot commented Nov 29, 2024

Netlify deploy preview

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

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against a838746

@aarongarciah
Copy link
Member

aarongarciah commented Nov 29, 2024

Is there an existing issue we can link to?

@DiegoAndai
Copy link
Member

@siriwatknp is this for #44539?

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Nov 30, 2024
@siriwatknp
Copy link
Member Author

@DiegoAndai @aarongarciah I forgot to link to the issue. #44539

@siriwatknp
Copy link
Member Author

@siriwatknp is this for #44539?

Yes, that's the one.

@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Dec 2, 2024
@siriwatknp siriwatknp merged commit 9b49147 into mui:master Dec 3, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: Grid The React component.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Grid2] Container prop and custom theme fails tests due to missing theme.breakpoints
4 participants