Skip to content

Commit

Permalink
chore: keyboard accessible table of contents
Browse files Browse the repository at this point in the history
  • Loading branch information
jer3m01 committed Oct 16, 2024
1 parent 4697a51 commit 2b096b1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/client/components/TableOfContents.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
}
}

&:hover a {
&:hover a,
&:focus-within a {
opacity: 1;
}
}
Expand All @@ -58,8 +59,10 @@
transition-duration: .15s;
opacity: 0.5;
min-width: 12rem;
outline: none;

&:hover {
&:hover,
&:focus {
background: color-mix(
in hsl,
var(--link-underline-color) 20%,
Expand Down

0 comments on commit 2b096b1

Please sign in to comment.