Skip to content

Commit f783706

Browse files
sudhanshutechaabidsofi19
authored andcommitted
fix(theme): comps
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
1 parent cf1578b commit f783706

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

src/custom/ResponsiveDataTable.tsx

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const dataTableTheme = (theme: Theme) =>
88
MuiTable: {
99
styleOverrides: {
1010
root: {
11-
border: `2px solid ${theme.palette.border.normal}`,
11+
// border: `2px solid ${theme.palette.border.normal}`,
1212
width: '-webkit-fill-available',
1313
'@media (max-width: 500px)': {
1414
wordWrap: 'break-word'
@@ -38,6 +38,42 @@ const dataTableTheme = (theme: Theme) =>
3838
}
3939
}
4040
},
41+
MuiCheckbox: {
42+
styleOverrides: {
43+
root: {
44+
intermediate: false,
45+
color: 'transparent',
46+
'&.Mui-checked': {
47+
color: theme.palette.text.default,
48+
'& .MuiSvgIcon-root': {
49+
width: '1.25rem',
50+
height: '1.25rem',
51+
borderColor: theme.palette.border.brand,
52+
marginLeft: '0px',
53+
padding: '0px'
54+
}
55+
},
56+
'&.MuiCheckbox-indeterminate': {
57+
color: theme.palette.background.brand?.default
58+
},
59+
'& .MuiSvgIcon-root': {
60+
width: '1.25rem',
61+
height: '1.25rem',
62+
border: `.75px solid ${theme.palette.border.strong}`,
63+
borderRadius: '2px',
64+
padding: '0px'
65+
},
66+
'&:hover': {
67+
backgroundColor: 'transparent'
68+
},
69+
'&.Mui-disabled': {
70+
'&:hover': {
71+
cursor: 'not-allowed'
72+
}
73+
}
74+
}
75+
}
76+
},
4177
MuiInput: {
4278
styleOverrides: {
4379
root: {

0 commit comments

Comments
 (0)