-
Notifications
You must be signed in to change notification settings - Fork 787
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
Implement acessibility features #4
Comments
Will check this, thanks |
Tiny-slider is still in progress right now, please give more ideas if possible. |
Great, thanks
|
Hey, |
Thanks, I will check as soon as I can and get back to you! |
Hello, Sorry it's been so long! So I had time to check and here is my feeback:
For touch screens I'm sorry but my Javascript skills are very limited, I can't help you... Hope this helps! |
Thanks @epigeyre for your feedback. |
Will update in next main version, since this will cause a DOM change.
Done |
|
This will be done from v2.0 |
How to place navigation and pagination under carousel? |
@Eric-Draven The best way is probably to use |
Thank you, I know this, but it would be nice to be able to change through the options. |
@ganlanyuan @epigeyre Regarding tabindex="0" on the controls container what was the reason behind it? Is that really needed? We use a company to audit our site and they logged this as an issue that tabindex="0" causes and extra tab which is not needed. |
@OD-fraja So that it can be focused (instead of prev, next button been focused) and user can control the slider using arrow keys. |
@ganlanyuan Aha I see, makes sense. I did not know that you could use arrow keys to control the slider. That makes sense now. Thanks for your prompt reply. |
@OD-fraja You're welcome |
I'm just checking out the sliders on the demo page. I can see that the tabindex is set as described above, but I still can't seem to tab past a carousel without going through each slide. Is some JS that is programmatically focusing the inactive slides on tab? |
@missmatsuko Hey, it's because of the |
@ganlanyuan Hmm, I see. I think the content inside the inactive slides really shouldn't be focusable, even if they have links in them. |
You're right. |
The problem we're having with this, is that we are lazy loading the images so if we tab through and the images haven't loaded (which a user may do), then it shows an invalid image which is not ideal. I have went ahead and targeted our links and disabled the tab index just so this does not occur. However, I think it would provide a better UX if the tab index was only enabled for elements within the visible slide? |
Hi, I think it might be reasonable to check for focusable child elements, and make them tabindex -1. A technique I've seen used is to store the element's previous tabindex value in a data attribute, and "restore" it from that attribute when it's visible again. I'm going to open this up as a separate new issue and attempt to fix on my own fork. |
@ganlanyuan @epigeyre the tabindex= -1 is causing issues if using navigation arrows outside of the nav container (setting custom prevButton and nextButton). Is there a way to only set tabindex= -1 if the nav is set to true? |
Live Push 2021-07-03: fix visible slide range calculation
Please check the page below:
https://www.w3.org/WAI/EO/Drafts/tutorials/sliders/
The text was updated successfully, but these errors were encountered: