Skip to content

Commit

Permalink
Added aria-label to language selector button (#2725)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanzilla authored Jun 6, 2021
1 parent 42500aa commit 2a5ba14
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion material/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<div class="md-header__option">
<div class="md-select">
{% set icon = config.theme.icon.alternate or "material/translate" %}
<button class="md-header__button md-icon">
<button class="md-header__button md-icon" aria-label="{{ lang.t('language.select') }}">
{% include ".icons/" ~ icon ~ ".svg" %}
</button>
<div class="md-select__inner">
Expand Down
1 change: 1 addition & 0 deletions material/partials/languages/en.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"footer.next": "Next",
"footer.title": "Footer",
"header.title": "Header",
"language.select": "Select language",
"meta.comments": "Comments",
"meta.source": "Source",
"nav.title": "Navigation",
Expand Down
2 changes: 1 addition & 1 deletion src/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<div class="md-header__option"></form>
<div class="md-select">
{% set icon = config.theme.icon.alternate or "material/translate" %}
<button class="md-header__button md-icon">
<button class="md-header__button md-icon" aria-label="{{ lang.t('language.select') }}"">
{% include ".icons/" ~ icon ~ ".svg" %}
</button>
<div class="md-select__inner">
Expand Down
1 change: 1 addition & 0 deletions src/partials/languages/en.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"footer.next": "Next",
"footer.title": "Footer",
"header.title": "Header",
"language.select": "Select language",
"meta.comments": "Comments",
"meta.source": "Source",
"nav.title": "Navigation",
Expand Down

0 comments on commit 2a5ba14

Please sign in to comment.