@@ -6,22 +6,27 @@ import HomeIcon from '@mui/icons-material/Home';
6
6
import ExpandMoreIcon from '@mui/icons-material/ExpandMore' ;
7
7
8
8
const StyledBreadcrumb = styled ( Chip ) ( ( { theme } ) => {
9
- const backgroundColor =
10
- theme . palette . mode === 'light'
11
- ? theme . palette . grey [ 100 ]
12
- : theme . palette . grey [ 800 ] ;
13
9
return {
14
- backgroundColor,
10
+ backgroundColor : theme . palette . grey [ 100 ] ,
15
11
height : theme . spacing ( 3 ) ,
16
- color : theme . palette . text . primary ,
12
+ color : ( theme . vars || theme ) . palette . text . primary ,
17
13
fontWeight : theme . typography . fontWeightRegular ,
18
14
'&:hover, &:focus' : {
19
- backgroundColor : emphasize ( backgroundColor , 0.06 ) ,
15
+ backgroundColor : emphasize ( theme . palette . grey [ 100 ] , 0.06 ) ,
16
+ ...theme . applyStyles ( 'dark' , {
17
+ backgroundColor : emphasize ( theme . palette . grey [ 800 ] , 0.06 ) ,
18
+ } ) ,
20
19
} ,
21
20
'&:active' : {
22
21
boxShadow : theme . shadows [ 1 ] ,
23
- backgroundColor : emphasize ( backgroundColor , 0.12 ) ,
22
+ backgroundColor : emphasize ( theme . palette . grey [ 100 ] , 0.12 ) ,
23
+ ...theme . applyStyles ( 'dark' , {
24
+ backgroundColor : emphasize ( theme . palette . grey [ 800 ] , 0.12 ) ,
25
+ } ) ,
24
26
} ,
27
+ ...theme . applyStyles ( 'dark' , {
28
+ backgroundColor : theme . palette . grey [ 800 ] ,
29
+ } ) ,
25
30
} ;
26
31
} ) as typeof Chip ; // TypeScript only: need a type cast here because https://github.com/Microsoft/TypeScript/issues/26591
27
32
0 commit comments