Skip to content

Commit

Permalink
Fix a styling bug on Firefox
Browse files Browse the repository at this point in the history
For some reason the `a:hover` selector removes the styles from `a[selected], a:hover`.
Separating them fixes it.
  • Loading branch information
alexwlchan committed Apr 5, 2024
1 parent 8b52bc6 commit cffad95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/_scss/components/nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ nav {

/* Add an extra thick underline so you know which part of the site
* you're in. */
a[selected], a:hover {
a[selected] {
text-decoration-thickness: 4px;
}

a:hover {
text-decoration: underline;
text-decoration-thickness: 4px;
text-decoration-skip-ink: none;
background: none;
}
Expand Down

0 comments on commit cffad95

Please sign in to comment.