@@ -20,7 +20,20 @@ const MuiTableBody: Components<Theme>['MuiTableBody'] = {
20
20
const MuiTableCell : Components < Theme > [ 'MuiTableCell' ] = {
21
21
styleOverrides : {
22
22
root : ( { theme } ) => {
23
- return { borderBottom : `1px solid ${ theme . palette . icon . disabled } ` } ;
23
+ return {
24
+ borderBottom : `1px solid ${ theme . palette . icon . disabled } ` ,
25
+ backgroundColor : 'transparent !important'
26
+ } ;
27
+ } ,
28
+ head : {
29
+ '& div' : {
30
+ fontSize : '1rem' ,
31
+ fontWeight : 'bold'
32
+ } ,
33
+ '& .MuiButton-root' : {
34
+ fontWeight : 'bold' ,
35
+ textTransform : 'uppercase !important'
36
+ }
24
37
}
25
38
}
26
39
} ;
@@ -29,7 +42,10 @@ const MuiTableFooter: Components<Theme>['MuiTableFooter'] = {
29
42
styleOverrides : {
30
43
root : ( { theme } ) => {
31
44
return {
32
- backgroundColor : theme . palette . background . card
45
+ backgroundColor :
46
+ theme . palette . mode == 'dark'
47
+ ? theme . palette . background . card
48
+ : theme . palette . background . surfaces
33
49
} ;
34
50
}
35
51
}
@@ -39,7 +55,10 @@ const MuiTableHead: Components<Theme>['MuiTableHead'] = {
39
55
styleOverrides : {
40
56
root : ( { theme } ) => {
41
57
return {
42
- backgroundColor : theme . palette . background . card ,
58
+ backgroundColor :
59
+ theme . palette . mode == 'dark'
60
+ ? theme . palette . background . card
61
+ : theme . palette . background . surfaces ,
43
62
fontWeight : 'bold' ,
44
63
textTransform : 'uppercase'
45
64
} ;
@@ -62,7 +81,8 @@ const MuiTableSortLabel: Components<Theme>['MuiTableSortLabel'] = {
62
81
root : ( { theme } ) => {
63
82
return {
64
83
'& .MuiTableSortLabel-icon' : {
65
- color : `${ theme . palette . icon . default } !important`
84
+ color : `${ theme . palette . icon . default } !important` ,
85
+ height : 'auto !important'
66
86
}
67
87
} ;
68
88
}
@@ -81,7 +101,10 @@ const MuiToolbar: Components<Theme>['MuiToolbar'] = {
81
101
styleOverrides : {
82
102
root : ( { theme } ) => {
83
103
return {
84
- backgroundColor : theme . palette . background . card ,
104
+ backgroundColor :
105
+ theme . palette . mode == 'dark'
106
+ ? theme . palette . background . card
107
+ : theme . palette . background . surfaces ,
85
108
color : theme . palette . text . default
86
109
} ;
87
110
}
0 commit comments