Added aria-label to language selector button (#2725)

This commit is contained in:
Benjamin Staneck 2021-06-06 14:52:14 +02:00 committed by GitHub
parent 42500aafa2
commit 2a5ba14ebe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View File

@ -45,7 +45,7 @@
<div class="md-header__option"> <div class="md-header__option">
<div class="md-select"> <div class="md-select">
{% set icon = config.theme.icon.alternate or "material/translate" %} {% 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" %} {% include ".icons/" ~ icon ~ ".svg" %}
</button> </button>
<div class="md-select__inner"> <div class="md-select__inner">

View File

@ -11,6 +11,7 @@
"footer.next": "Next", "footer.next": "Next",
"footer.title": "Footer", "footer.title": "Footer",
"header.title": "Header", "header.title": "Header",
"language.select": "Select language",
"meta.comments": "Comments", "meta.comments": "Comments",
"meta.source": "Source", "meta.source": "Source",
"nav.title": "Navigation", "nav.title": "Navigation",

View File

@ -103,7 +103,7 @@
<div class="md-header__option"></form> <div class="md-header__option"></form>
<div class="md-select"> <div class="md-select">
{% set icon = config.theme.icon.alternate or "material/translate" %} {% 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" %} {% include ".icons/" ~ icon ~ ".svg" %}
</button> </button>
<div class="md-select__inner"> <div class="md-select__inner">

View File

@ -31,6 +31,7 @@
"footer.next": "Next", "footer.next": "Next",
"footer.title": "Footer", "footer.title": "Footer",
"header.title": "Header", "header.title": "Header",
"language.select": "Select language",
"meta.comments": "Comments", "meta.comments": "Comments",
"meta.source": "Source", "meta.source": "Source",
"nav.title": "Navigation", "nav.title": "Navigation",