Skip to content

Commit

Permalink
Add support for aria-current="true"
Browse files Browse the repository at this point in the history
Simply targeting [aria-current] is too broad so instead I’m specifically adding support for aria-current="true".
  • Loading branch information
blakewatson committed Aug 11, 2024
1 parent 0b50976 commit f8435c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simple.css
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ header > nav a:visited {

header > nav a:hover,
header > nav a.current,
header > nav a[aria-current] {
header > nav a[aria-current="page"],
header > nav a[aria-current="true"] {
border-color: var(--accent);
color: var(--accent);
cursor: pointer;
Expand Down

0 comments on commit f8435c1

Please sign in to comment.