Skip to content

Commit

Permalink
[TextField] Fix conflict with Bootstrap even when label is not defi…
Browse files Browse the repository at this point in the history
…ned (#34343)

Co-authored-by: Michał Dudak <michal@dudak.me>
  • Loading branch information
ZeeshanTamboli and michaldudak committed Sep 19, 2022
1 parent 1350aa8 commit f5efa42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui-material/src/OutlinedInput/NotchedOutline.js
Expand Up @@ -21,6 +21,7 @@ const NotchedOutlineRoot = styled('fieldset')({

const NotchedOutlineLegend = styled('legend')(({ ownerState, theme }) => ({
float: 'unset', // Fix conflict with bootstrap
width: 'auto', // Fix conflict with bootstrap
overflow: 'hidden', // Fix Horizontal scroll when label too long
...(!ownerState.withLabel && {
padding: 0,
Expand All @@ -32,7 +33,6 @@ const NotchedOutlineLegend = styled('legend')(({ ownerState, theme }) => ({
}),
...(ownerState.withLabel && {
display: 'block', // Fix conflict with normalize.css and sanitize.css
width: 'auto', // Fix conflict with bootstrap
padding: 0,
height: 11, // sync with `lineHeight` in `legend` styles
fontSize: '0.75em',
Expand Down

0 comments on commit f5efa42

Please sign in to comment.