Skip to content

Commit 886923a

Browse files
authored
[TextField] Fix long label scrollbar (#20535)
1 parent 29d9ace commit 886923a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/material-ui/src/OutlinedInput/NotchedOutline.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ export const styles = (theme) => {
1515
top: -5,
1616
left: 0,
1717
margin: 0,
18-
padding: 0,
19-
paddingLeft: 8,
18+
padding: '0 8px',
2019
pointerEvents: 'none',
2120
borderRadius: 'inherit',
2221
borderStyle: 'solid',
2322
borderWidth: 1,
23+
overflow: 'hidden',
2424
},
2525
/* Styles applied to the legend element when `labelWidth` is provided. */
2626
legend: {

0 commit comments

Comments
 (0)