File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,18 @@ import { Components, Theme } from '@mui/material';
2
2
3
3
export const MuiCheckbox : Components < Theme > [ 'MuiCheckbox' ] = {
4
4
styleOverrides : {
5
- root : ( { theme } ) => {
5
+ root : ( { theme, ownerState } ) => {
6
6
const {
7
7
palette : {
8
8
text : { default : defaultText } ,
9
+ icon : { inverse : inverseColor } ,
9
10
background : { brand } ,
10
11
border : { strong }
11
12
}
12
13
} = theme ;
14
+
15
+ const inverseBackground = ownerState . inverseBackground || false ;
16
+
13
17
return {
14
18
color : 'transparent' ,
15
19
'&.Mui-checked' : {
@@ -25,7 +29,8 @@ export const MuiCheckbox: Components<Theme>['MuiCheckbox'] = {
25
29
'& .MuiSvgIcon-root' : {
26
30
width : '1.25rem' ,
27
31
height : '1.25rem' ,
28
- border : `.75px solid ${ strong } ` ,
32
+ fill : inverseBackground ? inverseColor : defaultText ,
33
+ border : `.75px solid ${ inverseBackground ? inverseColor : strong } ` ,
29
34
borderRadius : '2px' ,
30
35
padding : '0px'
31
36
} ,
You can’t perform that action at this time.
0 commit comments