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
accessibility: tabindex is always 1 now #152
Comments
I'm wondering if it's better to set |
Hi @idiotWu I am not sure actually. I am quite new to accessibility. I saw for react-select, they set to 0 by default and provide an option. So maybe you are right! https://github.com/JedWatson/react-select/blob/82910d9225f7aff73ac5052da9dc1e7f52f13de7/lib/Select.js#L1046 |
I'm not sure too. But now I think
So set What do you think? |
I feel providing a number by default, and then provide user an option is best solution. -1 or 0 by default is really out of my knowledge... Hope someone can help us. |
-1 makes the scrollbar container unfocusable, but the elements inside it are still focusable! IMO it's the most native-like behavior so far. You can try it on the demo page (change |
This is a little hard to implement. The logic may be:
|
Got it, then I think maybe go with -1 is best solution at now! |
@hongbo-miao I've made some updates on the accessibility branch, would you mind giving it some tests? 😁 |
Sure, I will test this weekend! |
@idiotWu @hongbo-miao Hello, I was auditing my site with Lighthouse and this came up: #160 seems to fix this. Is there anything else to do to get it merged into master? |
@alejost848 it looks good to me, but I think we may need some more tests. Can you guys help me test the PR #160 ? |
@idiotWu Can you merge it into the master branch ? It's really important for google lighthouse audit. |
@alejost848 @antoninlanglade fixed in |
Environment
Issue Summary
Current tabindex is always 1.
smooth-scrollbar/src/scrollbar.ts
Line 150 in 768f80e
It would be great to give user ability to change tabindex number
The text was updated successfully, but these errors were encountered: