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={() => {
|
on:click={() => {
|
||||||
selectedTab = tab;
|
selectedTab = tab;
|
||||||
}}
|
}}
|
||||||
aria-selected={tab === selectedTab}
|
disabled={tab === selectedTab}
|
||||||
href={"javascript:;"}>{tab}</a
|
href={"javascript:;"}>{tab}</a
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
|
@ -58,10 +58,10 @@
|
||||||
> a {
|
> a {
|
||||||
color: var(--color-lighter);
|
color: var(--color-lighter);
|
||||||
}
|
}
|
||||||
> a:not([aria-selected="true"]):hover {
|
> a:not([disabled="true"]):hover {
|
||||||
filter: brightness(130%);
|
filter: brightness(130%);
|
||||||
}
|
}
|
||||||
> a[aria-selected="true"] {
|
> a[disabled="true"] {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--color-light);
|
color: var(--color-light);
|
||||||
|
|
Reference in a new issue