Skip to content

Commit 6d77ce1

Browse files
committed
Small side menu active state fix
1 parent c751416 commit 6d77ce1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

apps/webapp/app/components/navigation/SideMenuItem.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,12 @@ export function SideMenuItem({
128128
disableHoverableContent
129129
/>
130130
{!isCollapsed && (
131-
<div className="absolute bottom-1 right-1 top-1 flex aspect-square items-center justify-center rounded group-hover/menuitem:bg-charcoal-750">
131+
<div
132+
className={cn(
133+
"absolute bottom-1 right-1 top-1 flex aspect-square items-center justify-center rounded",
134+
isActive ? "group-hover/menuitem:bg-tertiary" : "group-hover/menuitem:bg-charcoal-750"
135+
)}
136+
>
132137
{action}
133138
</div>
134139
)}

0 commit comments

Comments
 (0)