diff options
author | Kerim Kabirov <the.privat33r+gh@pm.me> | 2024-10-24 20:52:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-24 20:52:21 (GMT) |
commit | 1306f33c84b2745aa8af5e3e8f680aa80b836c0e (patch) | |
tree | 11cd09534b82d1bbef49bae1b682c95b058a78b3 | |
parent | 500f5338a8fe13719478589333fcd296e8e8eb02 (diff) | |
download | cpython-1306f33c84b2745aa8af5e3e8f680aa80b836c0e.zip cpython-1306f33c84b2745aa8af5e3e8f680aa80b836c0e.tar.gz cpython-1306f33c84b2745aa8af5e3e8f680aa80b836c0e.tar.bz2 |
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>
-rw-r--r-- | Doc/tools/static/rtd_switcher.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tools/static/rtd_switcher.js b/Doc/tools/static/rtd_switcher.js index f5dc704..2bf01a0 100644 --- a/Doc/tools/static/rtd_switcher.js +++ b/Doc/tools/static/rtd_switcher.js @@ -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 |