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

Should text nodes be ignored by aria-required-children? #4536

Open
WilcoFiers opened this issue Jul 10, 2024 · 0 comments
Open

Should text nodes be ignored by aria-required-children? #4536

WilcoFiers opened this issue Jul 10, 2024 · 0 comments
Labels
false negative rules Issue or false result from an axe-core rule support

Comments

@WilcoFiers
Copy link
Contributor

WilcoFiers commented Jul 10, 2024

The following code is passing the aria-required-children rule. I'm not sure whether it should, we should do some testing here. I expect assistive tech aren't going to allow proper keyboard navigation without a row / gridcell role on that last div. We'll see.

The reason this was raised is if you put tabindex="0" on that last div, it now gets reported as a failure. That's an inconsistency that's difficult to explain.

<div role="grid">
  <div role="row">
    <div role="gridcell">name</div>
    <div role="gridcell">e-mail</div>
  </div>
  <div>You have no data</div>
</div>
@WilcoFiers WilcoFiers added rules Issue or false result from an axe-core rule support false negative labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
false negative rules Issue or false result from an axe-core rule support
Projects
None yet
Development

No branches or pull requests

1 participant