Skip to content

Commit fc6f306

Browse files
ivoiveps1lon
authored andcommitted
[TextField] Avoid outline label CSS leak (mui#19937)
1 parent e5bbe1f commit fc6f306

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ export const styles = theme => {
4646
duration: 50,
4747
easing: theme.transitions.easing.easeOut,
4848
}),
49-
'& span': {
49+
'& > span': {
5050
paddingLeft: 5,
5151
paddingRight: 5,
52+
display: 'inline-block',
5253
},
5354
},
5455
/* Styles applied to the legend element is notched. */

0 commit comments

Comments
 (0)