switch fixe

This commit is contained in:
Sidney Alcantara
2021-08-15 01:03:52 +10:00
parent 1c96cce1b8
commit 9f17af7587
2 changed files with 7 additions and 3 deletions

View File

@@ -373,8 +373,12 @@ export const themeBase = {
transition: "transform .2s, width .2s",
".MuiSwitch-root:active &": { width: 24 },
".MuiSwitch-root.MuiSwitch-sizeSmall:active &": { width: 20 },
".MuiSwitch-root:active .MuiSwitch-switchBase:not(.Mui-disabled) &": {
width: 24,
},
".MuiSwitch-root.MuiSwitch-sizeSmall:active .MuiSwitch-switchBase:not(.Mui-disabled) &": {
width: 20,
},
"& + .MuiTouchRipple-root": {
borderRadius: 24 / 2,
zIndex: -1,

View File

@@ -16,7 +16,7 @@ const useStyles = makeStyles((theme) =>
width: "100%",
display: "flex",
padding: theme.spacing(0, 0.5, 0, 1.5),
padding: theme.spacing(0, 0.25, 0, 1.5),
},
label: {