Skip to content

Commit

Permalink
[Text Field] Fix Horizontal scroll when label too long (#31187)
Browse files Browse the repository at this point in the history
  • Loading branch information
RedHeadphone committed Feb 24, 2022
1 parent d588f5b commit 0b8778b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mui-material/src/OutlinedInput/NotchedOutline.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const NotchedOutlineRoot = styled('fieldset')({

const NotchedOutlineLegend = styled('legend')(({ ownerState, theme }) => ({
float: 'unset', // Fix conflict with bootstrap
overflow: 'hidden', // Fix Horizontal scroll when label too long
...(!ownerState.withLabel && {
padding: 0,
lineHeight: '11px', // sync with `height` in `legend` styles
Expand Down

0 comments on commit 0b8778b

Please sign in to comment.