Skip to content

Enhance accessibility: ARIA for navigation and notifications #19

@ayushhh101

Description

@ayushhh101

Description

  • Add aria-label="Open menu" to the navigation hamburger button
  • Add role="navigation" and aria-label="Primary" to the sidebar nav
  • Add aria-live="polite" to notifications list wrapper so screen readers announce updates

Why

  • Improves keyboard and screen reader accessibility
  • Clarifies landmark roles and control purpose
  • Aligns with a11y best practices and inclusive design

Proposed changes

  1. File src/components/Navigation.jsx:
  • Hamburger button: add aria-label="Open menu"
  • Sidebar : add role="navigation" and aria-label="Primary"
  1. File src/components/NotificationList.jsx:
  • Notifications container: add aria-live="polite"

Impact

  • No visual changes or breaking changes
  • Better SR announcements and navigation semantics

Acceptance criteria

  • Lighthouse a11y score does not regress
  • VoiceOver/NVDA reads hamburger as “Open menu”
  • Sidebar landmark recognized as navigation
  • Notifications announced politely when added

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions