File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ interface ListItemLinkProps {
18
18
iconOnly ?: boolean ;
19
19
hasParent ?: boolean ;
20
20
fullWidth ?: boolean ;
21
+ divider ?: boolean ;
21
22
containerProps ?: {
22
23
[ prop : string ] : any ;
23
24
} ;
@@ -98,6 +99,7 @@ export default function ListItemLink(props: ListItemLinkProps) {
98
99
theme . palette . sidebar . color ??
99
100
theme . palette . getContrastText ( theme . palette . sidebar . background ) ,
100
101
margin : 0 ,
102
+ border : 'none' ,
101
103
borderRadius : theme . shape . borderRadius + 'px' ,
102
104
height : iconOnly ? '50px' : undefined ,
103
105
opacity : hasParent ? 0.9 : 1.0 ,
@@ -107,6 +109,18 @@ export default function ListItemLink(props: ListItemLinkProps) {
107
109
color : 'currentColor' ,
108
110
} ,
109
111
112
+ ':before' : other . divider
113
+ ? {
114
+ content : '""' ,
115
+ position : 'absolute' ,
116
+ bottom : 0 ,
117
+ left : theme . shape . borderRadius + 'px' ,
118
+ right : theme . shape . borderRadius + 'px' ,
119
+ height : '1px' ,
120
+ background : alpha ( theme . palette . sidebar . color , 0.15 ) ,
121
+ }
122
+ : undefined ,
123
+
110
124
'&.Mui-selected' : hasParent
111
125
? {
112
126
':before' : {
You can’t perform that action at this time.
0 commit comments