-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
MUI 6 support upgrade : Grid2 does not have a width of 100% by default #10482
Comments
Can you share a reproduction sandbox or stackblitz? |
I've tried to use Grid2 in the e-commerce demo but did not run into this issue. So we'll definitely need a repro. Thanks. |
We still need a repro to be able to help |
Finally, I can share the project |
@ivanchan5209 Thank you for the codesandbox. |
What you were expecting:
I am changing all my Grid components to MUI6 Grid2 and I should not see a change in appearance.
What happened instead:
The items' size is not taken into consideration. I realized that I need to add width="100%" to the Grid2 container to make it work. Has anyone had the same issue ?
Steps to reproduce:
Simply change all Grid components to Grid2, in a SimpleForm (regular or RBAC)
`
`
The other solution I found was to modify the component in the theme:
components: { MuiGrid2: { styleOverrides: { container: { width: '100%' }, }, }, },
Also, please note that ra-form-layout WizardToolbar uses the depreciated Grid instead of Grid2.
Environment
The text was updated successfully, but these errors were encountered: