Skip to content

Commit 5d7d714

Browse files
committed
revert
1 parent bc9826b commit 5d7d714

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/dokka-presets/scripts/accessibility.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,7 @@ function ensureNavButtonInteractable() {
8383
// Make the navButton focusable, add accessibility information
8484
navButton.setAttribute('tabindex', '0');
8585
navButton.setAttribute('role', 'button');
86-
87-
const sideMenuPartParent = navButton.closest(".sideMenuPart")
88-
const navButtonExpanded = sideMenuPartParent ? (sideMenuPartParent.classList.contains('hidden') ? 'false' : 'true') : 'false'
89-
navButton.setAttribute('aria-expanded', navButtonExpanded);
86+
navButton.setAttribute('aria-expanded', 'false');
9087

9188
// Grab the page ID, use it for aria-label and aria-controls
9289
const sectionName = navButton.parentElement.parentElement.getAttribute('pageid')

0 commit comments

Comments
 (0)