[3.13] gh-125933: Add ARIA labels to select elements in the version switcher (GH-125934) (#125938)

gh-125933: Add ARIA labels to select elements in the version switcher (GH-125934)
(cherry picked from commit 1306f33c84)

Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2024-10-24 22:57:52 +02:00 committed by GitHub
parent 3d8b6f0977
commit 92d301eb67
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