diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-02-10 18:39:07 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-02-10 18:39:07 +0100 |
commit | e1d55f2b15cb4afcd22c7419e3798c4b97f8fd05 (patch) | |
tree | 30aa023acc1b91e8fcceef5feb44a23bbcfdd521 /layouts/partials | |
parent | 72cf0968cef6675f5e8eb58fb2bac5e7f2ccbe21 (diff) |
Improve lang switch accesibility
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/docs/languages.html | 5 |
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 }} |