-
-
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
Grid2 Doesn't use css gap? Why? #35103
Comments
Related to #34510, #35104 (comment) |
@oliviertassinari This issue is not related to those. The way we want the @httpete Here is the demo of why using For the Grid item, you will need to know how many items are in a row, so that you can do this: <div
className="item"
css={{
width: "calc((100% - $gap * $(amount of items - 1)) / 3)",
background: "tomato",
color: "#fff"
}}
>
half
</div> |
@siriwatknp Right, great point. So @httpete you can subscribe to #9513 for a version of the Grid that uses the CSS gap instead of the negative margin. It would need to use CSS grid, over CSS flexbox. |
No it wouldn’t, css gap works fine with flex box, been using it for years.
|
|
Duplicates
Latest version
Summary 💡
Css Gap is the best css feature ever. I can't understand why the shiny new Mui Grid2 would choose an old hacky technique for spacing?
Can we opt into this? This is a showstopper for me.
Examples 🌈
.
Motivation 🔦
.
The text was updated successfully, but these errors were encountered: