Skip to content

Accessibility - current page in sidebar should have aria-current="page" #2226

Description

@kburk1997

Feature request

Problem or desire

Currently, screen readers such as VoiceOver, JAWS, or NVDA cannot differentiate between selected and non-selected links.

Proposal

Use aria-current="page" on the selected link, and leave non-selected links as-is

Implementation

DOM tree:
Screenshot of DOM tree with active link highlighted. Active link has aria-current="page"

VoiceOver screen recordings:

Without aria-current:

Screen.Recording.2023-09-12.at.11.43.55.AM.mov

With aria-current:

Screen.Recording.2023-09-12.at.11.37.30.AM.mov

Reference: MDN - aria-current

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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