Skip to content

Commit

Permalink
Fix sidebar not working some buttons in collapsed state
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaseduoli authored and ogabrielluiz committed Nov 13, 2024
1 parent ddfd1f1 commit 5e5e25c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/src/components/ui/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ const SidebarGroupLabel = React.forwardRef<
data-sidebar="group-label"
className={cn(
"flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-semibold text-foreground/70 outline-none ring-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-1 [&>svg]:size-4 [&>svg]:shrink-0",
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
"group-data-[collapsible=icon]:pointer-events-none group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
className,
)}
{...props}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export function Nav({ categories, currentTab, setCurrentTab }: NavProps) {
onClick={() => setCurrentTab(link.id)}
isActive={currentTab === link.id}
data-testid={`side_nav_options_${link.title.toLowerCase().replace(/\s+/g, "-")}`}
tooltip={link.title}
>
<ForwardedIconComponent
name={link.icon}
Expand Down

0 comments on commit 5e5e25c

Please sign in to comment.