Skip to content

Commit

Permalink
refactor: Reduce height of MUI switch (#3285)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjon3s authored Jun 18, 2024
1 parent e3fb93e commit 604cd37
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions editor.planx.uk/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,11 @@ const getThemeOptions = ({
MuiSwitch: {
styleOverrides: {
root: {
width: "80px",
height: "48px",
width: "76px",
height: "44px",
padding: "8px",
left: "-8px",
marginRight: "-4px",
"& .MuiSwitch-switchBase": {
padding: "11px",
borderRadius: "50%",
Expand All @@ -447,8 +448,8 @@ const getThemeOptions = ({
},
"& .MuiSwitch-thumb": {
background: palette.common.white,
width: "26px",
height: "26px",
width: "22px",
height: "22px",
},
"& .MuiSwitch-track": {
background: palette.background.dark,
Expand Down Expand Up @@ -550,7 +551,7 @@ const getThemeOptions = ({
{
props: { variant: "compact" },
style: {
"& label": { paddingBottom: "200px", },
"& label": { paddingBottom: "200px" },
"&.MuiRadio-root": {
width: "40px",
height: "40px",
Expand All @@ -568,7 +569,7 @@ const getThemeOptions = ({
},
},
],
},
},
},
};

Expand Down

0 comments on commit 604cd37

Please sign in to comment.