1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 07:30:12 +01:00

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-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">

View File

@ -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",

View File

@ -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">

View File

@ -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",