feat: excluding selected path from hover changes

This commit is contained in:
Caio Cabral
2025-01-12 08:24:09 -05:00
parent 46af783ce6
commit 9fb6db6921
+4 -1
View File
@@ -187,6 +187,9 @@ function Sidebar() {
"& .selected-path": {
/* Selected menu item */
backgroundColor: theme.palette.secondary.main,
"&:hover": {
backgroundColor: theme.palette.secondary.main,
},
"& .MuiListItemIcon-root svg path": {
/* Selected menu item icon */
stroke: theme.palette.secondary.contrastText,
@@ -196,7 +199,7 @@ function Sidebar() {
color: theme.palette.secondary.contrastText,
},
},
"& .MuiListItemButton-root": {
"& .MuiListItemButton-root:not(.selected-path)": {
transition: "background-color .3s",
" &:hover": {
/* Hovered menu item bg color */