diff --git a/packages/mui-material/src/InputBase/InputBase.js b/packages/mui-material/src/InputBase/InputBase.js index e2990ac45c9344..9dd59f8509ea30 100644 --- a/packages/mui-material/src/InputBase/InputBase.js +++ b/packages/mui-material/src/InputBase/InputBase.js @@ -182,7 +182,7 @@ export const InputBaseInput = styled('input', { display: 'block', // Make the flex item shrink with Firefox minWidth: 0, - flexGrow: 1, + width: '100%', '&::-webkit-input-placeholder': placeholder, '&::-moz-placeholder': placeholder, // Firefox 19+ '&::-ms-input-placeholder': placeholder, // Edge diff --git a/packages/mui-material/src/StepLabel/StepLabel.js b/packages/mui-material/src/StepLabel/StepLabel.js index 13988e3ee7b3a5..b09ae961ca293b 100644 --- a/packages/mui-material/src/StepLabel/StepLabel.js +++ b/packages/mui-material/src/StepLabel/StepLabel.js @@ -103,6 +103,7 @@ const StepLabelIconContainer = styled('span', { slot: 'IconContainer', overridesResolver: (props, styles) => styles.iconContainer, })({ + flexShrink: 0, display: 'flex', paddingRight: 8, [`&.${stepLabelClasses.alternativeLabel}`]: { diff --git a/test/regressions/fixtures/StepLabel/NoShrinkIcon.js b/test/regressions/fixtures/StepLabel/NoShrinkIcon.js new file mode 100644 index 00000000000000..da9491f1e727b5 --- /dev/null +++ b/test/regressions/fixtures/StepLabel/NoShrinkIcon.js @@ -0,0 +1,24 @@ +import * as React from 'react'; +import Stepper from '@mui/material/Stepper'; +import Step from '@mui/material/Step'; +import StepLabel from '@mui/material/StepLabel'; + +function TestIcon() { + return