material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

Nested grids for v2 are not behaving the same as in v1

Open frekvent-szabolcs opened this issue 5 months ago • 1 comments

Search keywords

grid

Latest version

  • [X] I have tested the latest version

Steps to reproduce

Link to live example.

Current behavior

Nesting a Grid container inside a Grid (item) previously (using v1) worked like v2 works when I wrap the nested Grid container in a fragment. Is this broken or expected behaviour?

image

Also, when I nest a Grid container inside a Grid item, lot of times (even in my example), the CSS variables are not defined: image

Expected behavior

No response

Context

After migrating to v6 from v5, following the Guide I migrated Grid v1 to v2. Many of my grids broke. I either had to specify widths for the inner Grids or just add fragments between the parent end children grids.

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

frekvent-szabolcs avatar Sep 11 '24 09:09 frekvent-szabolcs