feat: custom scrollbar styles table light mode

Add custom scrollbar styles for MuiTableContainer.
This commit is contained in:
Karishma Shukla
2026-01-01 22:57:26 +05:30
committed by GitHub
parent 983b8ab1bc
commit 39c27dc4f8

View File

@@ -10,6 +10,29 @@ const lightTheme = createTheme({
}, },
}, },
components: { components: {
MuiTableContainer: {
styleOverrides: {
root: {
overflow: 'auto',
/* Firefox */
scrollbarWidth: 'thin',
scrollbarColor: 'gray transparent',
/* WebKit (Chrome, Edge, Safari) */
'&::-webkit-scrollbar': {
width: '5px',
height: '5px',
},
'&::-webkit-scrollbar-track': {
background: 'transparent',
},
'&::-webkit-scrollbar-thumb': {
backgroundColor: 'gray',
borderRadius: '8px',
},
},
},
},
MuiButton: { MuiButton: {
styleOverrides: { styleOverrides: {
root: { root: {