Skip to content

Commit

Permalink
fix: remove aria-expanded attribute from section tag in search result…
Browse files Browse the repository at this point in the history
… page
  • Loading branch information
smansouri committed Jun 19, 2023
1 parent 5bf8cab commit 377a101
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import { ESCAPE } from "./Keys";

function toggleNavigation(toggle, menu) {
const isExpanded = menu.getAttribute("aria-expanded") === "true";
menu.setAttribute("aria-expanded", !isExpanded);
toggle.setAttribute("aria-expanded", !isExpanded);
}

function closeNavigation(toggle, menu) {
menu.setAttribute("aria-expanded", false);
toggle.setAttribute("aria-expanded", false);
toggle.focus();
}
Expand Down

0 comments on commit 377a101

Please sign in to comment.