@@ -121,15 +121,9 @@ const components: Components = {
121
121
styleOverrides : {
122
122
groupedContainedPrimary : ( { theme } : { theme : any } ) => ( {
123
123
color : theme . palette . primary . main ,
124
- backgroundColor : alpha (
125
- theme . palette . primary . main ,
126
- theme . palette . action . hoverOpacity
127
- ) ,
124
+ backgroundColor : alpha ( theme . palette . primary . main , theme . palette . action . hoverOpacity ) ,
128
125
"&:hover" : {
129
- backgroundColor : alpha (
130
- theme . palette . primary . main ,
131
- theme . palette . action . selectedOpacity
132
- ) ,
126
+ backgroundColor : alpha ( theme . palette . primary . main , theme . palette . action . selectedOpacity ) ,
133
127
} ,
134
128
} ) ,
135
129
} ,
@@ -566,16 +560,10 @@ const components: Components = {
566
560
borderRadius : 4 ,
567
561
width : "unset" ,
568
562
"&.Mui-focused:hover" : {
569
- background : alpha (
570
- theme . palette . primary . main ,
571
- theme . palette . action . selectedOpacity
572
- ) ,
563
+ background : alpha ( theme . palette . primary . main , theme . palette . action . selectedOpacity ) ,
573
564
} ,
574
565
"&.Mui-selected, &.Mui-selected:hover, &.Mui-selected.Mui-focused" : {
575
- background : alpha (
576
- theme . palette . primary . main ,
577
- theme . palette . action . selectedOpacity
578
- ) ,
566
+ background : alpha ( theme . palette . primary . main , theme . palette . action . selectedOpacity ) ,
579
567
" .MuiTreeItem-label .MuiSvgIcon-root" : {
580
568
color : theme . palette . primary . main ,
581
569
} ,
@@ -603,16 +591,11 @@ const components: Components = {
603
591
width : "8px" ,
604
592
height : "8px" ,
605
593
} ,
606
- "&::-webkit-scrollbar-track-piece, & *::-webkit-scrollbar-track-piece" :
607
- ( { theme } : { theme : any } ) => ( {
594
+ "&::-webkit-scrollbar-track-piece, & *::-webkit-scrollbar-track-piece" : ( { theme } : { theme : any } ) => ( {
608
595
backgroundColor : theme . palette . grey [ 100 ] ,
609
596
borderRadius : "4px" ,
610
597
} ) ,
611
- "&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb" : ( {
612
- theme,
613
- } : {
614
- theme : any ;
615
- } ) => ( {
598
+ "&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb" : ( { theme } : { theme : any } ) => ( {
616
599
backgroundColor : theme . palette . grey [ 300 ] ,
617
600
borderRadius : "4px" ,
618
601
} ) ,
@@ -631,10 +614,7 @@ const components: Components = {
631
614
root : ( { theme } : { theme : any } ) => ( {
632
615
color : theme . palette . text . secondary ,
633
616
"&.Mui-selected" : {
634
- backgroundColor : alpha (
635
- theme . palette . primary . main ,
636
- theme . palette . action . selectedOpacity
637
- ) ,
617
+ backgroundColor : alpha ( theme . palette . primary . main , theme . palette . action . selectedOpacity ) ,
638
618
color : theme . palette . primary . main ,
639
619
svg : {
640
620
color : theme . palette . primary . main ,
@@ -676,8 +656,7 @@ const components: Components = {
676
656
width : "8px" ,
677
657
height : "8px" ,
678
658
} ,
679
- "&::-webkit-scrollbar-track-piece, & *::-webkit-scrollbar-track-piece" :
680
- {
659
+ "&::-webkit-scrollbar-track-piece, & *::-webkit-scrollbar-track-piece" : {
681
660
backgroundColor : theme . palette . grey [ 800 ] ,
682
661
borderRadius : "4px" ,
683
662
} ,
@@ -689,11 +668,11 @@ const components: Components = {
689
668
} ,
690
669
} ,
691
670
MuiToggleButton : {
692
- styleOverrides : {
671
+ styleOverrides : ( { theme } : { theme : any } ) => ( {
693
672
sizeSmall : {
694
- fontSize : "16px" ,
673
+ ... theme . typography . body2 ,
695
674
} ,
696
- } ,
675
+ } ) ,
697
676
} ,
698
677
MuiListItemText : {
699
678
styleOverrides : {
@@ -749,8 +728,7 @@ const components: Components = {
749
728
} ,
750
729
styleOverrides : {
751
730
select : ( { theme } : { theme : any } ) => ( {
752
- "&.MuiSelect-outlined.MuiInputBase-input.MuiOutlinedInput-input:read-only" :
753
- {
731
+ "&.MuiSelect-outlined.MuiInputBase-input.MuiOutlinedInput-input:read-only" : {
754
732
color : theme . palette . text . primary ,
755
733
} ,
756
734
} ) ,
0 commit comments