Don't abuse aria-selected
This commit is contained in:
parent
75de69e1be
commit
41d1502615
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue