Skip to content

Commit f34ee35

Browse files
committed
TOC hover
1 parent e3c31da commit f34ee35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/components/TOC.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function TOC({ headings, ...props }: Props) {
4747
<a
4848
ref={(el) => (linkRefs.current[h.slug] = el)}
4949
data-active={h.slug === activeSlug || undefined}
50-
className="opacity-40 data-[active]:opacity-100 dark:opacity-50"
50+
className="opacity-40 transition-opacity hover:opacity-70 data-[active]:opacity-100 dark:opacity-50"
5151
href={`#${h.slug}`}
5252
>
5353
{h.text}

0 commit comments

Comments
 (0)