From 41d15026159a0e537c7977f05037d12e2ce33675 Mon Sep 17 00:00:00 2001 From: Tobias Berger Date: Tue, 28 Sep 2021 13:28:06 +0200 Subject: [PATCH] Don't abuse aria-selected --- src/components/TabSelector.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/TabSelector.svelte b/src/components/TabSelector.svelte index 229ed00..e757f07 100644 --- a/src/components/TabSelector.svelte +++ b/src/components/TabSelector.svelte @@ -14,7 +14,7 @@ on:click={() => { selectedTab = tab; }} - aria-selected={tab === selectedTab} + disabled={tab === selectedTab} href={"javascript:;"}>{tab} @@ -58,10 +58,10 @@ > a { color: var(--color-lighter); } - > a:not([aria-selected="true"]):hover { + > a:not([disabled="true"]):hover { filter: brightness(130%); } - > a[aria-selected="true"] { + > a[disabled="true"] { pointer-events: none; text-decoration: none; color: var(--color-light);