Skip to content

Commit c8e0df0

Browse files
committed
display tracking icon when link is marked as active
1 parent 27d06a6 commit c8e0df0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/TableOfContents/TableOfContentsLink.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ const Link = ({
2626
)}
2727
>
2828
<div
29-
className="absolute top-1/2 -mt-1 hidden h-2 w-2 rounded-full border border-primary-hover bg-background group-hover:inline-block"
29+
className={cn(
30+
"absolute top-1/2 -mt-1 hidden h-2 w-2 rounded-full border border-primary-hover bg-background group-hover:inline-block",
31+
isActive && "inline-block"
32+
)}
3033
style={{
3134
insetInlineStart: `calc(-16px - 8px * ${depth} - 4px - 1px)`,
3235
}}

0 commit comments

Comments
 (0)