feat: custom scrollbar styles for table container dark mode

Add custom scrollbar styles for MuiTableContainer component.
This commit is contained in:
Karishma Shukla
2026-01-01 22:56:24 +05:30
committed by GitHub
parent adfb12e04c
commit 983b8ab1bc

View File

@@ -102,6 +102,29 @@ const darkTheme = createTheme({
}, },
}, },
components: { components: {
MuiTableContainer: {
styleOverrides: {
root: {
overflow: 'auto',
/* Firefox */
scrollbarWidth: 'thin',
scrollbarColor: 'currentColor transparent',
/* WebKit (Chrome, Edge, Safari) */
'&::-webkit-scrollbar': {
width: '5px',
height: '5px',
},
'&::-webkit-scrollbar-track': {
background: 'transparent',
},
'&::-webkit-scrollbar-thumb': {
backgroundColor: 'currentColor',
borderRadius: '8px',
},
},
},
},
MuiButton: { MuiButton: {
styleOverrides: { styleOverrides: {
root: { root: {
@@ -280,4 +303,4 @@ const ThemeModeProvider = ({ children }: { children: React.ReactNode }) => {
); );
}; };
export default ThemeModeProvider; export default ThemeModeProvider;