-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
[Grid] When placing multiple containers, they overlap #30617
Comments
Hi, this is already documented in Grid docs: https://mui.com/components/grid/#negative-margin
I suggest you to tweak margin of containers, e.g., passing |
That doc quote is referring to items, no containers root, this is not an expected behavior for my understanding because that same info is in v4 docs https://v4.mui.com/components/grid/#limitations and we are not having the same effect. The only different I can see is the I know I can fix the grid putting |
The negative margin is introduced from the change in #24332. The issue you are having can be resolved by tweaking margin, while the issue in #24332 does not have such a simple fix. That's why we are not reverting the change in a hasty manner. |
Kudos for this thread! This fix worked for me. |
amazing, now it seems to work as V4 |
Duplicates
Latest version
Current behavior 😯
When placing Grid containers under the first one they overlap with the top one, this behavior does not happen with material v4
When checking the css the grid container's root has some margin-top negative
Expected behavior 🤔
I would expect the same behavior as version 4
Steps to reproduce 🕹
You can check how they overlap here
v5 not working example
v4 working example
Context 🔦
I want that grid containers to not overlap with other components as it happens on version 4
Your environment 🌎
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: