-
Notifications
You must be signed in to change notification settings - Fork 49
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
UseGroupRole = false generate an error #41
Comments
Hi @rianfloo! Can you share the markup you are using too? The config options look fine to me, so I'm guessing there is more going on. |
Hi Jason here it is.
I am using WordPress and ACF to generate fields. You can have a look to the slider live here: https://42.fr/le-campus-de-paris/42-paris-campus/#campus I need to achieve that in order to get French RGAA norm. 🙏 Btw, most of all events (e.g afterChange) crashes when trying to use them. Is there any DOM issues? It's wrapped around a document ready function. Thanks a lot. 🙏 |
It looks like there is indeed a bug that happens when you set I've prepared a fix for this which will modify the In your use case, though, I really don't think the ARIA group role should be disabled. Each slide contains an image with an Sighted users can easily see which content belongs to which slide because they are grouped together visually, but blind and low-vision screen reader users would probably think that the content is structured more like this: The staggered red outlines show what a screen reader would think is a slide, since headings are expected to be the beginning of a section of a content. Without the ARIA |
Hi @jasonwebb, Thanks for your fast answer. It would be amazing to get the fix this week. 🍾 The agency responsible for the audit suggested to delete useGroupRole and to add a focus & tabindex to the first active item. Then when it slides, move the focus to the next active slide. I planned to use afterChange event witch contains currentSlide. (Hope your fix, will also make afterChange usable again). The only condition to let useGroupRole would be to be able to change aria-label content but I don't think your library provides that option. Anyway, thanks for the feedback, I will share it with the agency :) |
Sure thing! Personally I would suggest pushing back on the agency's request to remove the ARIA group role, since it seems necessary in this use case to satisfy WCAG 1.3.1 given there is related content preceding each heading in these slides. Making slides focusable with Finally, I'm not able to replicate the issues you're having with API events like |
I am gonna talk to the agency. I guess this is also related to aria-label issue. I've got the same error :) I am gonna try your fix! Is there any new NPM version? Thanks a lot 🍾 |
Hi @jasonwebb any news regarding NPM package? I use your library with NPm and webpack |
Hi @jasonwebb, do you know when NPM package will be updated? Last version was published 10 months ago and I need to finish the project by updating with your fix. Thanks a lot :) |
@rianfloo Sorry, but I am no longer a maintainer for this project, so this would need to be done by someone at the @Accessible360 organization. This is a small one-line fix that you can make in a fork on your own if you need it right away. However, as noted above, the ARIA group role seems very much appropriate for your use case, and definitely not a WCAG violation, so I still recommend leaving it in place for a better user experience. |
Hi @jasonwebb, thanks for you answer. I will try your solution. Good luck for your new project :) |
Just bumping this, I am running into the same issue |
Hi @damnsamn @jasonwebb has merged the fix on master. You should be able to get the updated code and fix your issue but you will not able to use the library with NPM as the last version has not been published on it. I managed to make it works on my project by minifing the code from the new version. The only last problem is that aria-labels injected by the new version show as undefined in the markeup. You can use onInit Event to destroy all aria-label by looping on all slides. cc @Accessible360 |
Issue closed as fixed on master, will be in the next minor release. Separate issue created for "aria-labels injected by the new version show as undefined in the markup" for investigation. #66 |
Hello :)
I am using slick accessible but when I add option :
useGroupRole: false
it generates a JS error.Cannot read property 'replace' of undefined
Any solution? Here is my code :)
Thanks a lot!
The text was updated successfully, but these errors were encountered: