-
Notifications
You must be signed in to change notification settings - Fork 628
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
Addition of role='navigation' to the <ul> element causes a Lighthouse failure #459
Comments
Getting a similar error when using axe:
The solution @stevejay provided would fix this accessibility issue. Another option would be to wrap the unordered list in a |
Same problem facing! How to I change/assign
|
Update:- I was trying to fix myself and found a solution.
|
The solution mentioned by @racingfoxs didn't work. the |
+1. I tried to added "nav" wrapper with arai-label, but problem still actual. |
Having same issue, looks like the role for a ul needs to be list. Also tried wrapping in nav but doesn't change that the role "navigation" is being applied to the ul, which is the issue according to axe. Axe test is saying:
using "jest-axe": "^5.0.1", So the fix as @stevejay would solve this. |
Further to this, the So I'm going to stick with 8.1.3 for now and wrap it in my own |
Hey Hi Hello, any updates how to fix this issue? |
Please use the fork : https://github.com/amitt2202/react-paginate-fts.git |
@kubaf13 The simplest option right now is to stick with v8.1.3 and avoid any newer versions. Despite the above comment, although @amitt2202's fork has removed the |
+1 to the PR at #494 that fixes this issue. Thanks @kroney for making it. For others stuck in the same situation, our project decided to use patch-package to modify the |
+1 to PR at #494 |
If I run Lighthouse on our pagination component, Lighthouse complains that
List items (<li>) are not contained within <ul> or <ol> parent elements.
:AFAIK the 'navigation' role overrides the natural 'list' role of the
<ul>
element.The addition of this role was a recent change, and the release notes link to this page to explain its addition. However, that page shows the use of the navigation role as wrapping the
<ul>
element, not added to it:Is there some way to avoid this role being added? It would be preferable if it was configurable.
The text was updated successfully, but these errors were encountered: