Skip to content

Commit efa45eb

Browse files
Add accessibility js with correct labels
1 parent 2ee4ecc commit efa45eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

_static/overlay-label-accessibility.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ function fixAccessibility() {
1414

1515
// For each sidebar checkbox, add an aria-label if missing
1616
[
17+
// New IDs (as in your current HTML)
18+
{ selector: 'input.sidebar-toggle#pst-primary-sidebar-checkbox', label: 'Toggle primary sidebar' },
19+
{ selector: 'input.sidebar-toggle#pst-secondary-sidebar-checkbox', label: 'Toggle secondary sidebar' },
20+
// Old IDs (for backward compatibility)
1721
{ selector: 'input.sidebar-toggle#\\__primary', label: 'Toggle primary sidebar' },
1822
{ selector: 'input.sidebar-toggle#\\__secondary', label: 'Toggle secondary sidebar' }
1923
].forEach(function(cfg) {

0 commit comments

Comments
 (0)