[material-ui][Grid] Spacing doesn't work when using css variables. #44662
Labels
component: Grid
The React component.
package: material-ui
Specific to @mui/material
regression
A bug, but worse
Created from #44376 (comment).
Latest version
Steps to reproduce
Steps:
Current behavior
Original report (#44376 (comment))
When you are combining
Container
withGrid
then the margin-top and margin-left is not calculated properly for theGrid
or maybe for theContainer
- hard to say; but this change definitely caused that.Look
before
after
The difference is on
Grid
element that margin top and left styles changed:from:
to:
Worth to mention that before variable era everything was alright with the styles
Search keywords
grid css variables spacing
Your environment
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: