Skip to content

Conversation

ritorhymes
Copy link

Description

For the mobile navigation menu, the hamburger icon's click area appears much smaller than what WCAG guidelines recommends for accessibility, which is a minimum of 44px height and width. I personally had difficulty attempting to toggle the menu on my mobile device; I couldn't consistently get it to open or close on each press.

For this fix:

  • Add height and width sizing of 45px to the click area
  • Readjust top and right values to ensure the area is centered with the hamburger icon SVG
  • Add aria-controls to explicitly associate it with the navigation menu

The hamburger icon itself is rather small, so the clickable area is now a greater size and expands around it. This is acceptable from a UX-standpoint since there are no other buttons nearby that could accidently be pressed, and it is expected that this kind of input will be especially sensitive to trigger for ease of access.

@psiinon
Copy link
Member

psiinon commented Sep 18, 2025

Logo
Checkmarx One – Scan Summary & Detailsb6ab47dc-d374-4a9b-a094-fc5fa33e5bbc

Great job! No new security vulnerabilities introduced in this pull request


Use @Checkmarx to reach out to us for assistance.

Just send a PR comment with @Checkmarx followed by a natural language request.

Examples: @Checkmarx how are you able to help me? @Checkmarx rescan this PR

@ritorhymes ritorhymes force-pushed the accessibility/hamburger-hit-area branch from adc1eb6 to f9d5f0d Compare September 18, 2025 11:09
@thc202 thc202 changed the title fix(hamburger): improve mobile touch target and add aria-controls Improve hamburger mobile touch target and add aria-controls Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants