Skip to content

Commit

Permalink
fix: improve accessibility of language selector (#131)
Browse files Browse the repository at this point in the history
Restore 100% accesibility score, read more here:
https://dequeuniversity.com/rules/axe/4.7/select-name
  • Loading branch information
c-reetz authored Oct 3, 2023
1 parent dfdb970 commit 5f52bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<!-- Language List -->
{{ if .IsTranslated }}
<li>
<select class="lang-list" id="select-language" onchange="location = this.value;">
<select aria-label="Select Language" class="lang-list" id="select-language" onchange="location = this.value;">
{{ $siteLanguages := .Site.Languages}}
{{ $pageLang := .Page.Lang}}
{{ range .Page.AllTranslations }}
Expand Down

0 comments on commit 5f52bb2

Please sign in to comment.