The site navigation component is a simple hamburger toggle button on mobile controlled by the aria-expanded
attribute.
Technical Details
- It uses
aria-expanded
attribute to control the state. - The script uses
matchMedia
to check the viewport width.