Revert "refactor: apply overflow on default theme"

This reverts commit 418e6bc133.

Signed-off-by: Federico Morreale <frc.morreale@gmail.com>
This commit is contained in:
Federico Morreale
2023-11-28 10:18:24 +01:00
parent 418e6bc133
commit f4f4c33912
3 changed files with 7 additions and 8 deletions
@@ -239,11 +239,4 @@ export const defaultComponentThemes: ThemeOptions['components'] = {
underline: 'hover',
},
},
MuiStepper: {
styleOverrides: {
root: {
overflowX: 'auto',
},
},
},
};
@@ -190,7 +190,12 @@ export const Stepper = (stepperProps: StepperProps) => {
return (
<>
{isValidating && <LinearProgress variant="indeterminate" />}
<MuiStepper activeStep={activeStep} alternativeLabel variant="elevation">
<MuiStepper
activeStep={activeStep}
alternativeLabel
variant="elevation"
style={{ overflowX: 'auto' }}
>
{steps.map((step, index) => {
const isAllowedLabelClick = activeStep > index;
return (
@@ -58,6 +58,7 @@ export const TaskSteps = (props: TaskStepsProps) => {
activeStep={props.activeStep}
alternativeLabel
variant="elevation"
style={{ overflowX: 'auto' }}
>
{props.steps.map(step => {
const isCompleted = step.status === 'completed';