diff --git a/web/packages/base/components/EnteSwitch.tsx b/web/packages/base/components/EnteSwitch.tsx index 92c3dac380..43cd50ceae 100644 --- a/web/packages/base/components/EnteSwitch.tsx +++ b/web/packages/base/components/EnteSwitch.tsx @@ -28,10 +28,9 @@ export const EnteSwitch: React.FC = styled((props) => ( }, "&.Mui-disabled .MuiSwitch-thumb": { color: theme.palette.grey[600], - // TODO(LM): - // ...theme.applyStyles("light", { - // color: theme.palette.grey[100], - // }), + ...theme.applyStyles("light", { + color: theme.palette.grey[100], + }), }, "&.Mui-disabled + .MuiSwitch-track": { opacity: 0.3, diff --git a/web/packages/base/components/utils/mui-theme.d.ts b/web/packages/base/components/utils/mui-theme.d.ts index 3c0606946e..663d391330 100644 --- a/web/packages/base/components/utils/mui-theme.d.ts +++ b/web/packages/base/components/utils/mui-theme.d.ts @@ -117,6 +117,10 @@ declare module "@mui/material/styles" { * Various ad-hoc fixed colors used by our designs. * * These do not change with the color scheme. + * + * Some places in the code also use the grey PaletteColor provided by + * MUI whose corresponding color values can be seen at + * https://mui.com/material-ui/customization/default-theme/ */ fixed: { /**