Skip to content

Commit cfbf20d

Browse files
Update NotchedOutline.js
1 parent c9afe78 commit cfbf20d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 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: {
@@ -50,7 +50,6 @@ export const styles = (theme) => {
5050
paddingLeft: 5,
5151
paddingRight: 5,
5252
display: 'inline-block',
53-
whiteSpace: 'nowrap',
5453
},
5554
},
5655
/* Styles applied to the legend element is notched. */

0 commit comments

Comments
 (0)