-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
ARIA accessibility error in Lighthouse #4435
Comments
not sure where did you find it, but Swiper doesn't set any roles to wrapper |
hey @nolimits4web! because in my case, my wrapper already has the thank you for standing by! |
Is there any way to allow the role="tabpanel" to the wrapper? ARIA is giving the warning as I have tabs present but since I cannot control the wrapper, I cannot give it the tabpanel role. |
Has this been resolved yet? I am getting the same error flagging role="group" on all swiper-slide elements. Setting slideRole in Javascript does nothing at all. Apologies for that, I was setting it incorrectly! Below did the trick
|
Hey there 🌳 🌻
by default swiper gives the wrapper element a
role="list"
and all of its children slides arole="group"
. Based on what Lighthouse says, this is not how its supposed to be done. Arole="list"
element should contain at least one children withrole="listitem"
. Please have a look at the ARIA documentation.Would be super lovely if this would be changed. Or am I missing something here?
Thank you @nolimits4web!
🙏🏻
The text was updated successfully, but these errors were encountered: