web/SidebarTab: indicate that tab is selected in aria

This commit is contained in:
wukko 2024-07-08 12:58:21 +06:00
parent 862366b5c5
commit 6570d163e9
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -37,6 +37,7 @@
bind:this={tab} bind:this={tab}
on:focus={() => showTab(tab)} on:focus={() => showTab(tab)}
role="tab" role="tab"
aria-selected={isTabActive}
> >
<slot></slot> <slot></slot>
{$t(`tabs.${tabName}`)} {$t(`tabs.${tabName}`)}