From 0b5097639e0611143622a2c69e65070ce6513c2d Mon Sep 17 00:00:00 2001 From: Blake Watson Date: Sun, 11 Aug 2024 11:20:03 -0500 Subject: [PATCH 1/2] highlight any variation of aria-current in nav --- simple.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple.css b/simple.css index d8dc097..5a29d2e 100644 --- a/simple.css +++ b/simple.css @@ -289,7 +289,7 @@ header > nav a:visited { header > nav a:hover, header > nav a.current, -header > nav a[aria-current="page"] { +header > nav a[aria-current] { border-color: var(--accent); color: var(--accent); cursor: pointer; From f8435c138b946eead626a0d0a519079ac537a121 Mon Sep 17 00:00:00 2001 From: Blake Watson Date: Sun, 11 Aug 2024 11:32:33 -0500 Subject: [PATCH 2/2] Add support for aria-current="true" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Simply targeting [aria-current] is too broad so instead I’m specifically adding support for aria-current="true". --- simple.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simple.css b/simple.css index 5a29d2e..e001e40 100644 --- a/simple.css +++ b/simple.css @@ -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;