mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-04 19:45:08 -04:00
Added aria labels to language and version selector
This commit is contained in:
@@ -57,6 +57,7 @@ export type Translation =
|
||||
| "search.result.more.one" /* 1 more on this page */
|
||||
| "search.result.more.other" /* # more on this page */
|
||||
| "search.result.term.missing" /* Missing */
|
||||
| "select.version.title" /* Version selector */
|
||||
|
||||
/**
|
||||
* Translations
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
import { configuration } from "~/_"
|
||||
import { configuration, translation } from "~/_"
|
||||
import { h } from "~/utilities"
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
@@ -85,7 +85,10 @@ export function renderVersionSelector(versions: Version[]): HTMLElement {
|
||||
/* Render version selector */
|
||||
return (
|
||||
<div class="md-version">
|
||||
<button class="md-version__current">
|
||||
<button
|
||||
class="md-version__current"
|
||||
aria-label={translation("select.version.title")}
|
||||
>
|
||||
{active.title}
|
||||
</button>
|
||||
<ul class="md-version__list">
|
||||
|
||||
Reference in New Issue
Block a user