Files
aso/frontend/dashboard/src/theme/overrides/Fab.ts
2023-07-03 11:39:08 +07:00

41 lines
937 B
TypeScript

import { Theme } from '@mui/material/styles';
// ----------------------------------------------------------------------
export default function Fab(theme: Theme) {
return {
MuiFab: {
defaultProps: {
color: 'primary'
},
styleOverrides: {
root: {
boxShadow: theme.customShadows.z8,
'&:hover': {
boxShadow: 'none',
backgroundColor: theme.palette.grey[400]
}
},
primary: {
boxShadow: theme.customShadows.primary,
'&:hover': {
backgroundColor: theme.palette.primary.dark
}
},
secondary: {
boxShadow: theme.customShadows.secondary,
'&:hover': {
backgroundColor: theme.palette.secondary.dark
}
},
extended: {
'& svg': {
marginRight: theme.spacing(1)
}
}
}
}
};
}