We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 611c622 commit e034788Copy full SHA for e034788
docs/dokka-presets/scripts/accessibility.js
@@ -83,7 +83,9 @@ function ensureNavButtonInteractable() {
83
// Make the navButton focusable, add accessibility information
84
navButton.setAttribute('tabindex', '0');
85
navButton.setAttribute('role', 'button');
86
- navButton.setAttribute('aria-expanded', 'false');
+
87
+ const sideMenuPartParent = navButton.closest(".sideMenuPart")
88
+ navButton.setAttribute('aria-expanded', sideMenuPartParent.classList.contains('hidden') ? 'false' : 'true');
89
90
// Grab the page ID, use it for aria-label and aria-controls
91
const sectionName = navButton.parentElement.parentElement.getAttribute('pageid')
0 commit comments