We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b1b494 commit 3e86353Copy full SHA for 3e86353
1 file changed
pcd-website/src/components/LanguageSwitcher.vue
@@ -14,6 +14,7 @@
14
</button>
15
<ul
16
v-show="open"
17
+ :inert="!open"
18
role="listbox"
19
:aria-label="t('language_switcher.label')"
20
class="lang-dropdown"
@@ -25,7 +26,10 @@
25
26
:aria-selected="locale === currentLocale"
27
class="lang-option"
28
:class="{ 'lang-option--active': locale === currentLocale }"
29
+ tabindex="0"
30
@click="select(locale)"
31
+ @keydown.enter.prevent="select(locale)"
32
+ @keydown.space.prevent="select(locale)"
33
>
34
{{ LANGUAGE_NAMES[locale] }}
35
</li>
0 commit comments