Skip to content

Commit b4b3778

Browse files
fix: improve hover animations by disabling user selection and pointer events (#127)
1 parent c196cce commit b4b3778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/components/ui/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ function SidebarGroupLabel({
401401
data-sidebar="group-label"
402402
className={cn(
403403
"text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
404-
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
404+
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 group-data-[collapsible=icon]:select-none group-data-[collapsible=icon]:pointer-events-none",
405405
className
406406
)}
407407
{...props}

0 commit comments

Comments
 (0)