Skip to content
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

sets always slide tabindex to -1 #1462

Open
akashmdkml opened this issue Dec 11, 2018 · 2 comments
Open

sets always slide tabindex to -1 #1462

akashmdkml opened this issue Dec 11, 2018 · 2 comments

Comments

@akashmdkml
Copy link

akashmdkml commented Dec 11, 2018

Is there any way to overwrite tabIndex to make slides accessible. please refer my use case https://codesandbox.io/s/myqq0yz54y
voiceover should read left-arrow --> current slide(active slide) --> next-arrow
to achieve this we should set current slide tabIndex to 0 and rest all slides tabIndex to -1

@LuigiClaudio
Copy link

LuigiClaudio commented Jan 24, 2019

There's a problem here https://github.com/akiran/react-slick/blob/master/src/slider.js#L183 where the slide content gets a tabindex value of '-1' - Also I could see on track.js some hard-coded values for the tabindex set once again to '-1': https://github.com/akiran/react-slick/blob/master/src/track.js although I think those work as intended.

@jons-disco
Copy link

Why is it set to -1 anyways. This breaks accessibility and is a sticking point for us to not use this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants