Skip to content

Commit

Permalink
frontend: Adjusting Colors for Vertical Stepper Active/Completion (#2939
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jdslaugh authored Feb 27, 2024
1 parent 019fbeb commit 301a053
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 13 deletions.
18 changes: 12 additions & 6 deletions frontend/packages/core/src/stepper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ const StepContainer = styled("div")<{ $orientation: StepperOrientation }>(
".MuiStepLabel-label.Mui-completed": {
color: alpha(theme.palette.secondary[900], 0.38),
},
".Mui-active .MuiStepConnector-line": {
backgroundColor: theme.palette.primary[600],
},
".Mui-completed .MuiStepConnector-line": {
backgroundColor: theme.palette.primary[600],
},
...(props.$orientation === "horizontal"
? {
margin: "0px 2px 30px 2px",
Expand All @@ -89,12 +83,24 @@ const StepContainer = styled("div")<{ $orientation: StepperOrientation }>(
backgroundColor: theme.palette.secondary[200],
borderRadius: "4px",
},
".Mui-active .MuiStepConnector-line": {
backgroundColor: theme.palette.primary[600],
},
".Mui-completed .MuiStepConnector-line": {
backgroundColor: theme.palette.primary[600],
},
}
: {
margin: "0px 2px 8px 2px",
".MuiStepConnector-line": {
borderColor: theme.palette.secondary[300],
},
".Mui-active .MuiStepConnector-line": {
borderColor: theme.palette.primary[600],
},
".Mui-completed .MuiStepConnector-line": {
borderColor: theme.palette.primary[600],
},
}),
})
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports[`renders correctly 1`] = `
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-auto css-omj7fc-MuiGrid-root"
>
<div
class="css-bsysql"
class="css-146xe7x"
>
<div
class="MuiStepper-root MuiStepper-horizontal MuiStepper-alternativeLabel css-10mg1vw-MuiStepper-root"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports[`renders correctly 1`] = `
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-auto css-omj7fc-MuiGrid-root"
>
<div
class="css-bsysql"
class="css-146xe7x"
>
<div
class="MuiStepper-root MuiStepper-horizontal MuiStepper-alternativeLabel css-10mg1vw-MuiStepper-root"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports[`renders correctly 1`] = `
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-auto css-omj7fc-MuiGrid-root"
>
<div
class="css-bsysql"
class="css-146xe7x"
>
<div
class="MuiStepper-root MuiStepper-horizontal MuiStepper-alternativeLabel css-10mg1vw-MuiStepper-root"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports[`renders correctly 1`] = `
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-auto css-omj7fc-MuiGrid-root"
>
<div
class="css-bsysql"
class="css-146xe7x"
>
<div
class="MuiStepper-root MuiStepper-horizontal MuiStepper-alternativeLabel css-10mg1vw-MuiStepper-root"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports[`renders correctly 1`] = `
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-auto css-omj7fc-MuiGrid-root"
>
<div
class="css-bsysql"
class="css-146xe7x"
>
<div
class="MuiStepper-root MuiStepper-horizontal MuiStepper-alternativeLabel css-10mg1vw-MuiStepper-root"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports[`renders correctly 1`] = `
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-auto css-omj7fc-MuiGrid-root"
>
<div
class="css-bsysql"
class="css-146xe7x"
>
<div
class="MuiStepper-root MuiStepper-horizontal MuiStepper-alternativeLabel css-10mg1vw-MuiStepper-root"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports[`renders correctly 1`] = `
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-auto css-omj7fc-MuiGrid-root"
>
<div
class="css-bsysql"
class="css-146xe7x"
>
<div
class="MuiStepper-root MuiStepper-horizontal MuiStepper-alternativeLabel css-10mg1vw-MuiStepper-root"
Expand Down

0 comments on commit 301a053

Please sign in to comment.