Don't abuse aria-selected

This commit is contained in:
Tobias Berger 2021-09-28 13:28:06 +02:00
parent 75de69e1be
commit 41d1502615

View file

@ -14,7 +14,7 @@
on:click={() => {
selectedTab = tab;
}}
aria-selected={tab === selectedTab}
disabled={tab === selectedTab}
href={"javascript:;"}>{tab}</a
>
</li>
@ -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);