mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added aria-label to language selector button (#2725)
This commit is contained in:
parent
42500aafa2
commit
2a5ba14ebe
@ -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">
|
||||||
|
@ -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",
|
||||||
|
@ -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">
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user