feat: excluding selected path from hover changes
This commit is contained in:
1 parent
46af783ce6
commit
9fb6db6921
1 file changed
+4
-1
@@ -187,6 +187,9 @@ function Sidebar() {
|
|||||||
"& .selected-path": {
|
"& .selected-path": {
|
||||||
/* Selected menu item */
|
/* Selected menu item */
|
||||||
backgroundColor: theme.palette.secondary.main,
|
backgroundColor: theme.palette.secondary.main,
|
||||||
|
"&:hover": {
|
||||||
|
backgroundColor: theme.palette.secondary.main,
|
||||||
|
},
|
||||||
"& .MuiListItemIcon-root svg path": {
|
"& .MuiListItemIcon-root svg path": {
|
||||||
/* Selected menu item icon */
|
/* Selected menu item icon */
|
||||||
stroke: theme.palette.secondary.contrastText,
|
stroke: theme.palette.secondary.contrastText,
|
||||||
@@ -196,7 +199,7 @@ function Sidebar() {
|
|||||||
color: theme.palette.secondary.contrastText,
|
color: theme.palette.secondary.contrastText,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"& .MuiListItemButton-root": {
|
"& .MuiListItemButton-root:not(.selected-path)": {
|
||||||
transition: "background-color .3s",
|
transition: "background-color .3s",
|
||||||
" &:hover": {
|
" &:hover": {
|
||||||
/* Hovered menu item bg color */
|
/* Hovered menu item bg color */
|
||||||
|
|||||||
Reference in new issue
Block a user