diff --git a/client/src/Components/Sidebar/components/navItem.jsx b/client/src/Components/Sidebar/components/navItem.jsx index 409a84fde..2c569edde 100644 --- a/client/src/Components/Sidebar/components/navItem.jsx +++ b/client/src/Components/Sidebar/components/navItem.jsx @@ -8,7 +8,15 @@ import PropTypes from "prop-types"; const NavItem = ({ item, collapsed, selected, onClick }) => { const theme = useTheme(); + const iconStroke = selected + ? theme.palette.primary.contrastText + : theme.palette.primary.contrastTextTertiary; + const buttonBgColor = selected ? theme.palette.secondary.main : "transparent"; + const buttonBgHoverColor = selected + ? theme.palette.secondary.main + : theme.palette.tertiary.main; + const fontWeight = selected ? 600 : 400; return ( { > { sx={{ minWidth: 0, "& svg": { - height: "20px", - width: "20px", + height: 20, + width: 20, opacity: 0.81, }, "& svg path": { - stroke: selected - ? theme.palette.primary.contrastText - : theme.palette.primary.contrastTextTertiary, + stroke: iconStroke, }, }} > @@ -72,7 +76,7 @@ const NavItem = ({ item, collapsed, selected, onClick }) => { variant="body1" color={theme.palette.primary.contrastText} sx={{ - fontWeight: selected ? 600 : 400, + fontWeight: fontWeight, opacity: 0.9, }} >