mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/SidebarTab: add aria label for beta tabs & fix its position
This commit is contained in:
parent
9e8c953ca6
commit
b03c71eb14
2 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
"cobalt": "cobalt",
|
"cobalt": "cobalt",
|
||||||
"meowbalt": "meowbalt"
|
"meowbalt": "meowbalt",
|
||||||
|
"beta": "beta"
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
aria-selected={isTabActive}
|
aria-selected={isTabActive}
|
||||||
>
|
>
|
||||||
{#if beta}
|
{#if beta}
|
||||||
<div class="beta-sign">β</div>
|
<div class="beta-sign" aria-label={$t("general.beta")}>β</div>
|
||||||
{/if}
|
{/if}
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
{$t(`tabs.${tabName}`)}
|
{$t(`tabs.${tabName}`)}
|
||||||
|
@ -69,6 +69,7 @@
|
||||||
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-decoration-line: none;
|
text-decoration-line: none;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-tab :global(svg) {
|
.sidebar-tab :global(svg) {
|
||||||
|
|
Loading…
Reference in a new issue