-
-
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
[Stack] Does not play nicely with TextField margin dense #33155
Comments
What we do here
is indeed strange. I guess we should either always reset the margin, or never do it. I wish we could use flex gap but we can't, it would not be coherent with https://mui.com/material-ui/getting-started/supported-platforms/#browser. |
To those working on this issue: The spacing in Stack causes many problems. It does not plays nicely with Divider (variant=middle) and also with margins of children ( it treats the first item differently) Here's a sample https://codesandbox.io/s/wandering-pine-mdluzs?file=/demo.tsx In this example, all works ok without spacing. With
|
Duplicates
Latest version
Current behavior 😯
When you have a row Stack with two TextFields margin dense, they are misaligned:
Expected behavior 🤔
The text fields should be aligned.
Steps to reproduce 🕹
Repro: https://codesandbox.io/s/basicstack-demo-material-ui-forked-khtbqp?file=/demo.tsx:566-696
Context 🔦
Horizonal forms - eg. a filter bar.
Your environment 🌎
See repro
The text was updated successfully, but these errors were encountered: