Skip to content

Commit 4898c49

Browse files
committed
Color change on ToC nav items
1 parent d3cd2d5 commit 4898c49

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

‎_TODO.md‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,4 @@ We can add a path like `/articles/pdf` or `/articles/deep-dive` for the long-for
324324

325325
- Move the "What I Deliver" box from the Hero into the Backstage image. Move the Backstage image / video to the hero.
326326

327-
## Instructions for revamps
328-
329-
All changes should look good on both light and dark theme, use our tailwind theme colors, and look good on mobile.
330-
331-
"Condensed" or "Intro"
332-
333-
Cursor on hovering a link
327+
- Focus-visible / active handling on ToC nav items

‎src/components/Toc/index.astro‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const tocTree = buildTocTree(items)
7777
>
7878
{/* Desktop heading — hidden on mobile where the drawer header shows instead */}
7979
<div class="hidden lg:flex items-center justify-between gap-3">
80-
<h2 id="toc-heading" class="text-base font-semibold">
80+
<h2 id="toc-heading" class="text-content text-base font-semibold">
8181
Table of Contents
8282
</h2>
8383
<span class="text-xs font-medium uppercase tracking-wide text-content-active">
@@ -95,7 +95,7 @@ const tocTree = buildTocTree(items)
9595
href={`#${node.slug}`}
9696
data-toc-link
9797
data-toc-slug={node.slug}
98-
class="block mb-2 text-sm sm:text-base text-content-offset transition-colors hover:text-content-active data-[current=true]:text-content no-underline hover:underline"
98+
class="block mb-2 text-sm sm:text-base text-content transition-colors hover:text-content-active data-[current=true]:text-content no-underline hover:underline"
9999
>
100100
{node.text}
101101
</a>

0 commit comments

Comments
 (0)