Skip to content

Commit 5ab1d63

Browse files
authored
fix: nested anchor tags in toc (#29191)
1 parent a6590e7 commit 5ab1d63

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/components/overrides/TableOfContents.astro

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,9 @@ const { editUrl } = Astro.locals.starlightRoute;
2424
<a
2525
href={`/search/?tags=${tag}`}
2626
class="rounded-full border border-[var(--sidebar-border)] bg-transparent px-3 py-1 text-[11px] font-medium text-[var(--sl-color-gray-3)] transition-colors duration-150 ease-out hover:border-[var(--sl-color-gray-2)] hover:text-[var(--sl-color-white)] focus-visible:ring-2 focus-visible:ring-[var(--sl-color-text-accent)] focus-visible:outline-none"
27+
data-tag-serp-link={true}
2728
>
28-
<a
29-
href={`/search/?tags=${tag}`}
30-
class="rounded-full border border-[var(--sidebar-border)] bg-transparent px-3 py-1 text-[11px] font-medium text-[var(--sl-color-gray-3)] transition-colors duration-150 ease-out hover:border-[var(--sl-color-gray-2)] hover:text-[var(--sl-color-white)] focus-visible:ring-2 focus-visible:ring-[var(--sl-color-text-accent)] focus-visible:outline-none"
31-
data-tag-serp-link={true}
32-
>
33-
{tag}
34-
</a>
29+
{tag}
3530
</a>
3631
))}
3732
</div>

0 commit comments

Comments
 (0)