-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[TextField] Clipped label when used as first child in DialogContent #29892
Comments
Our current workaround is const theme = useTheme
//....
<DialogContent sx={{ pt: `${theme.spacing(2)} !important` }}> Which feels very clunky, as the |
Check out this: https://codesandbox.io/s/competent-brown-28n7c?file=/src/Demo.tsx
After applying |
We did a global override which works really well, see my comment here: #31185 (comment) |
There is a pretty good stackblitz to reproduce the error here: Issue 40188 |
Duplicates
Latest version
Current behavior 😯
When using a
TextField
as the first child in aDialogContent
, the top part of the label is clipped and not readable.Expected behavior 🤔
It shouldn't be clipped, and instead be visible.
Steps to reproduce 🕹
Simple demo here: https://codesandbox.io/s/still-surf-tweos
Context 🔦
No response
Your environment 🌎
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: