gh-125933: Add ARIA labels to select elements in the version switcher (#125934)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
Kerim Kabirov 2024-10-24 22:52:21 +02:00 committed by GitHub
parent 500f5338a8
commit 1306f33c84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
document.addEventListener("readthedocs-addons-data-ready", function(event) {
const config = event.detail.data()
const versionSelect = `
<select id="version_select">
<select id="version_select" aria-label="Python version">
${ config.versions.active.map(
(version) => `
<option
@ -25,7 +25,7 @@
languages = languages.sort((a, b) => a.language.name.localeCompare(b.language.name));
const languageSelect = `
<select id="language_select">
<select id="language_select" aria-label="Language">
${ languages.map(
(translation) => `
<option