8000 [3.13] gh-125933: Add ARIA labels to select elements in the version s… · python/cpython@92d301e · GitHub
[go: up one dir, main page]

Skip to content

Commit 92d301e

Browse files
miss-islingtonPrivat33r-devhugovk
authored
[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 1306f33) Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 3d8b6f0 commit 92d301e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/tools/static/rtd_switcher.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
document.addEventListener("readthedocs-addons-data-ready", function(event) {
88
const config = event.detail.data()
99
const versionSelect = `
10-
<select id="version_select">
10+
<select id="version_select" aria-label="Python version">
1111
${ config.versions.active.map(
1212
(version) => `
1313
<option
@@ -25,7 +25,7 @@
2525
languages = languages.sort((a, b) => a.language.name.localeCompare(b.language.name));
2626

2727
const languageSelect = `
28-
<select id="language_select">
28+
<select id="language_select" aria-label="Language">
2929
${ languages.map(
3030
(translation) => `
3131
<option

0 commit comments

Comments
 (0)
0