Files
aso/frontend/client-portal/src/theme/overrides/Slider.ts
Server D3 Linksehat 1bf608b1ed Server 103 Commit
2024-07-18 16:05:33 +07:00

32 lines
692 B
TypeScript
Executable File

import { Theme } from '@mui/material/styles';
// ----------------------------------------------------------------------
export default function Slider(theme: Theme) {
const isLight = theme.palette.mode === 'light';
return {
MuiSlider: {
defaultProps: {
size: 'small'
},
styleOverrides: {
root: {
'&.Mui-disabled': {
color: theme.palette.action.disabled
}
},
markLabel: {
fontSize: 13,
color: theme.palette.text.disabled
},
valueLabel: {
borderRadius: 8,
backgroundColor: theme.palette.grey[isLight ? 800 : 700]
}
}
}
};
}