-
-
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
[Dialog] TextField
label gets cut off when placed within a DialogContent
component
#31185
Comments
TextField
label gets cut off when placed within a DialogContent
component
Similar kind of issue: #29892 |
If anyone is having the same issue and want a quick fix in the meantime, we did a // theme.ts
const theme = createTheme({
components: {
// todo: remove once the issue is addressed: https://github.com/mui/material-ui/issues/31185
MuiDialogContent: {
styleOverrides: { root: { paddingTop: `${defaultSpacing}px !important` } },
},
},
});
|
Also can be solved by adding Duplicate of #29892 which will be considered or fixed in v6. |
This is not working for me. Mine still gets cuts off. I have tried all three margin values: "none", "normal", "dense". |
Ditto. |
This incident happened due to the
|
Duplicates
Latest version
Current behavior 😯
If you put a TextField at the top of a
![Screen Shot 2022-02-23 at 10 01 24 AM](https://user-images.githubusercontent.com/26190589/155346129-bbae5729-a438-483a-b8fc-526830564ad3.png)
DialogContent
, the label gets cut off when typing in the field.Expected behavior 🤔
Seems like maybe there should always be some padding at the top of
DialogContent
or some kind of form wrapper that adds paddingSteps to reproduce 🕹
https://codesandbox.io/s/little-bush-rt0zuy?file=/src/Demo.tsx
Context 🔦
N/A
Your environment 🌎
N/A
The text was updated successfully, but these errors were encountered: