Skip to content

Conversation

@andrewhick
Copy link
Contributor

What’s changed

This PR adds aria-current="page" to the currently highlighted menu item in the page header. I believe this fixes #403, an accessibility issue where the currently active link was only conveyed using a change of colour.

I've tested this on the example site using VoiceOver on Safari and Chrome. The currently active page reads correctly as "current page", and any non-current pages do not include this label.

Identifying a user need

This came out of accessibility testing in the WCAG Primer working group by Shabana Ali. As the information is only conveyed visually and not programmatically, we believe it currently fails WCAG (1.3.1 Info and Relationships - level A).

Copy link
Contributor

@tombye tombye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this Andrew. Works as expected when tested with the WCAG primer (Notify doesn't link to docs pages in our header so I can't test with our docs).

It also touches code that will just be the same whatever flavour of docs you have so good to go 👍🏻

@andrewhick andrewhick merged commit da7be2b into main Jun 16, 2025
3 checks passed
@andrewhick andrewhick deleted the identify-current-page branch June 16, 2025 07:41
@romaricpascal romaricpascal mentioned this pull request Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Currently active menu item is not conveyed programmatically in the header

3 participants