Skip to content

Wrap thumbnails in nav tag to get proper ARIA role #663

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

Merged
merged 1 commit into from
May 9, 2022

Conversation

alexdelgado
Copy link
Contributor

While running an accessibility test on a project using this package we found the following error: aria-label attribute is not well supported on a div with no valid role attribute.

You could simply add a role="navigation" to the div, but changing the div to nav will do that and be more semantically correct.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
While running an accessibility test on a project using this package we found the following error: `aria-label attribute is not well supported on a div with no valid role attribute`.

You could simply add a `role="navigation"` to the div, but changing the `div` to `nav` will do that and be more semantically correct.
@xiaolin xiaolin self-assigned this Apr 22, 2022
@xiaolin xiaolin merged commit 5137871 into xiaolin:master May 9, 2022
xiaolin pushed a commit that referenced this pull request Jul 21, 2023
While running an accessibility test on a project using this package we found the following error: `aria-label attribute is not well supported on a div with no valid role attribute`.

You could simply add a `role="navigation"` to the div, but changing the `div` to `nav` will do that and be more semantically correct.
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.

None yet

2 participants