https://github.com/python/cpython/commit/92d301eb678427dbb40aef2e0c9c91f75f278413 commit: 92d301eb678427dbb40aef2e0c9c91f75f278413 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: hugovk <[email protected]> date: 2024-10-24T20:57:52Z summary:
[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 1306f33c84b2745aa8af5e3e8f680aa80b836c0e) Co-authored-by: Kerim Kabirov <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> files: M Doc/tools/static/rtd_switcher.js diff --git a/Doc/tools/static/rtd_switcher.js b/Doc/tools/static/rtd_switcher.js index f5dc7045a0dbc4..2bf01a002db90c 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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
