Skip to content

Commit

Permalink
gh-125933: Add ARIA labels to select elements in the version switcher (
Browse files Browse the repository at this point in the history
…#125934)

Co-authored-by: Hugo van Kemenade <[email protected]>
  • Loading branch information
Privat33r-dev and hugovk authored Oct 24, 2024
1 parent 500f533 commit 1306f33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/tools/static/rtd_switcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1306f33

Please sign in to comment.