Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit ea75f71

Browse files
committed
fix anchor link active indicator
1 parent dd122d1 commit ea75f71

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/components/nav/CollapsibleNavItem.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { cn } from '@/lib/utils'
1111
import { NavLink } from './NavLink'
1212
import { usePathname } from 'next/navigation'
1313
import { Button } from '../ui/button'
14-
import { NavigationGroup } from './NavigationGroup'
1514
import { NavGroup } from '@/config/types'
1615

1716
interface Props {

src/components/nav/NavLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const NavLink: React.FC<NavLinkProps> = ({
4040
<div
4141
aria-hidden="true"
4242
className={cn(
43-
'absolute bottom-0 left-2 top-0 w-[1px]',
43+
'absolute bottom-0 left-2 top-0 z-10 w-[1px]',
4444
active ? 'bg-primary-500' : 'bg-zinc-300 dark:bg-zinc-700',
4545
)}
4646
/>

0 commit comments

Comments
 (0)