aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-02-10 18:39:07 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-02-10 18:39:07 +0100
commite1d55f2b15cb4afcd22c7419e3798c4b97f8fd05 (patch)
tree30aa023acc1b91e8fcceef5feb44a23bbcfdd521 /layouts/partials/docs
parent72cf0968cef6675f5e8eb58fb2bac5e7f2ccbe21 (diff)
Improve lang switch accesibility
Diffstat (limited to 'layouts/partials/docs')
-rw-r--r--layouts/partials/docs/languages.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/partials/docs/languages.html b/layouts/partials/docs/languages.html
index 4fa1f46..63404a9 100644
--- a/layouts/partials/docs/languages.html
+++ b/layouts/partials/docs/languages.html
@@ -7,8 +7,7 @@
{{ $langs = merge $langs (dict .Language.Lang .) }}
{{ end }}
-<div class="book-languages">
-
+<div class="book-languages" tabindex="0" aria-haspopup="true">
<ul>
<li class="flex">
<img src="{{ "svg/translate.svg" | relURL }}" class="book-icon" alt="Languages" />
@@ -18,7 +17,7 @@
<ul class="book-languages-list">
{{ range sort $langs }}
- <li class="{{ if (eq $.Site.Language .Language ) }}active{{ end }}">
+ <li class="{{ if (eq $.Site.Language .Language) }}active{{ end }}">
<a href="{{ .Permalink }}" class="flex">
<img src="{{ "svg/translate.svg" | relURL }}" class="book-icon" alt="Languages" />
{{ .Language.LanguageName }}