Skip to content

Add ARIA landmark roles for screen reader navigation - #396

Merged
Mikey-222 merged 2 commits into
Hel-Phone:mainfrom
Stellar-Land:a11y/aria-landmarks
Aug 26, 2026
Merged

Add ARIA landmark roles for screen reader navigation#396
Mikey-222 merged 2 commits into
Hel-Phone:mainfrom
Stellar-Land:a11y/aria-landmarks

Conversation

@wandooadzer-cmyk

Copy link
Copy Markdown
Contributor

Wraps the top navigation in a header/banner landmark, marks nav bars with role="navigation", wraps primary content in

, and gives the Help page's sidebar an explicit complementary role/label so assistive tech can jump between page regions.

Body:

Summary

  • Add role="banner" around the top nav (App.jsx) and mark all nav bars with role="navigation" so assistive
    tech can distinguish site chrome from content.
  • Wrap primary content in <main> on the landing page, /help, and /ranking, replacing plain <div> wrappers.
  • Give the /help sidebar an explicit role="complementary" / aria-label="Request panel" so it reads as a
    distinct landmark from the map.

Addresses the missing ARIA landmark roles (banner, main, navigation, contentinfo) called out in the accessibility
issue — structural navigation via landmarks was previously unavailable to screen reader users.

Test plan

  • npm run build succeeds
  • npx vitest run test/a11y-components.test.jsx test/ranking.test.jsx test/sidebar-class.test.js test/sanity.test.jsx pass
  • Manual screen reader pass (VoiceOver/NVDA) confirming landmark navigation on /, /help, /ranking

Note: the pre-commit hook (Prettier via lint-staged) reformatted the two touched files that weren't previously
Prettier-clean (App.jsx, Ranking.jsx), so the diff includes unrelated whitespace/quote-style changes alongside
the landmark edits.

Closes #94
Closes #97
Closes #96
Closes #95

Wraps the top navigation in a header/banner landmark, marks nav bars
with role="navigation", wraps primary content in <main>, and gives
the Help page's sidebar an explicit complementary role/label so
assistive tech can jump between page regions.
@drips-wave

drips-wave Bot commented Aug 26, 2026

Copy link
Copy Markdown

@wandooadzer-cmyk Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Mikey-222
Mikey-222 merged commit f47bb83 into Hel-Phone:main Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants