Skip to content

Commit

Permalink
Only show aria-controls when specific sidebar menu is open (#2430)
Browse files Browse the repository at this point in the history
Only show aria-controls when sidebar is open
  • Loading branch information
RubenSandwich authored Apr 29, 2024
1 parent 5a1bfd2 commit ccc18c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ const SidebarNavSubmenuItem = ({ item }: SidebarNavMenuItemProps) => {
return (
<>
<button
aria-controls={listId}
aria-controls={isOpen ? listId : null}
aria-expanded={isOpen}
className={s.sidebarNavMenuItem}
id={buttonId}
Expand Down

0 comments on commit ccc18c4

Please sign in to comment.