Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'aria-current' to selected nav item #53

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Add 'aria-current' to selected nav item #53

merged 1 commit into from
Nov 20, 2024

Conversation

jakewheeler
Copy link
Collaborator

This PR ensures that aria-current="page" is added to the link element of the page we're currently looking at. Additionally, I've slightly modified the NavigationLink so that navigating to child pages will allow the top-level parent page's nav link to remain underlined.

For example, navigating to the /products/ecr-viewer page will keep the Our products link underlined in the nav.

@jakewheeler jakewheeler marked this pull request as ready for review November 20, 2024 14:33
@nickbristow nickbristow merged commit 472c2a7 into next Nov 20, 2024
2 checks passed
@nickbristow nickbristow deleted the nav-impr branch November 20, 2024 17:31
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.

2 participants