Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TextField] Fix conflict with Bootstrap even when label is not defined #34343

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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