mirror of https://github.com/python/cpython
[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:
parent
3d8b6f0977
commit
92d301eb67
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue