Skip to content

Commit

Permalink
fix(ui): fix aria-expanded on nav-hamburger
Browse files Browse the repository at this point in the history
  • Loading branch information
AliKdhim87 committed Feb 1, 2024
1 parent 5e5e7f3 commit 5410a02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/src/components/Navigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const Navigation = forwardRef(
<NavToggleButton
text={toggleButton?.openText}
icon="hamburger"
aria-expanded={visible}
aria-expanded={drawerVisible}
aria-label="Open menu"
onClick={() => setDrawerVisible(!drawerVisible)}
/>
Expand All @@ -105,7 +105,7 @@ export const Navigation = forwardRef(
<NavToggleButton
text={toggleButton?.closeText}
icon="close"
aria-expanded={visible}
aria-expanded={drawerVisible}
aria-label="Close menu"
onClick={() => setDrawerVisible(!drawerVisible)}
/>
Expand Down

0 comments on commit 5410a02

Please sign in to comment.