Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
772 B
TypeScript
Raw Permalink Normal View History

2025-12-12 14:26:25 +09:00
import { Theme, Components } from '@mui/material/styles';
import { listSubheaderClasses } from '@mui/material/ListSubheader';
import { listItemButtonClasses } from '@mui/material/ListItemButton';
import { typographyClasses } from '@mui/material/Typography';
/* eslint-disable import/prefer-default-export */
export const sidebarCustomizations: Components<Theme> = {
MuiDrawer: {
styleOverrides: {
root: ({ theme }) => ({
[`& .${listSubheaderClasses.root}`]: {
lineHeight: 3,
},
[`& .${listItemButtonClasses.root}`]: {
'&.Mui-selected': {
[`& .${typographyClasses.root}`]: {
color: (theme.vars ?? theme).palette.text.primary,
},
},
},
}),
},
},
};