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

jsx-a11y/aria-activedescendant-has-tabindex rule is incompatible with w3c wai-aria examples #673

Closed
KuSh opened this issue Mar 20, 2020 · 1 comment · Fixed by #708
Closed
Assignees
Labels

Comments

@KuSh
Copy link

KuSh commented Mar 20, 2020

Hi,

I'm trying to implement wai-aria compatible components following w3c wai-aria-practices examples and the following rule causes me problems :
https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/7bcea2006f1d79b399e4aaec82e9cbbbe6ef8cc4/src/rules/aria-activedescendant-has-tabindex.js#L46-L49

This rule doesn't validate w3c following example as it uses negative tabIndex

regards,
Nicolas

@jessebeach
Copy link
Collaborator

@KuSh ya, you're totally right. Thank you for bringing this to our attention!

Collapsible_Dropdown_Listbox_Example___WAI-ARIA_Authoring_Practices_1_1

Let's remove the restriction on it being negative.

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