flickity icon indicating copy to clipboard operation
flickity copied to clipboard

Do not set aria-hidden on elements visible in the viewport

Open ghost opened this issue 2 years ago • 10 comments

This is an amazing library. Kudos to the devs!

I noticed an accessibility issue in the slider. The issue is that aria-hidden attribute is being set to true for elements which are in the slider view. Please see this reproduction I made: https://codepen.io/geon-halfhelix/pen/YzeEbLj

image

ghost avatar May 26 '22 11:05 ghost

Hi. I too have encountered this issue. It's failing Chrome Lighthouse A11y audit.

  • Flickity PACKAGED v2.2.2

neodigm avatar Dec 29 '22 04:12 neodigm

Hello,

We're experiencing this issue on a site. Any word on a fix?

aspatino avatar Jan 12 '23 23:01 aspatino

Thanks for reporting this issue. Add a 👍 reaction to this issue if you would like to see this feature added.

The challenge is calculating which cells are within the viewport any time a slide is selected.

desandro avatar Jan 16 '23 01:01 desandro

Am seeing the same issue. Please include/fix in the next build.

mdoxwp avatar Feb 07 '23 00:02 mdoxwp

I also have this issue, is there a fix incoming or a workaround anyone is aware of? Thanks.

jimrowetpa avatar Jun 08 '23 08:06 jimrowetpa

Same here, would love a fix

adrielklein avatar Jun 08 '23 17:06 adrielklein

Any solutions?

mangitmaharjan avatar Oct 11 '23 11:10 mangitmaharjan

Hi. I can imagine a solution using InterSectionObserver. If anyone is interested, I could write a work around patch, or create a PR. Let me know if I can help.

neodigm avatar Oct 11 '23 17:10 neodigm

my client is being sued because of ADA non-compliance. this issue is a sticking point. I'm interested @neodigm

pirco avatar Nov 07 '23 07:11 pirco

Hi, I've create a patch that should improve the Lighthouse audit results with one or more carousels on the page:

Flick aria-hidden patch

I've tried on a few production sites with good results. Let me know if you've any issues.

neodigm avatar Nov 08 '23 21:11 neodigm