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

Elements with aria-hidden under element with role=tablist cause rule validation #4399

Closed
Seaviello opened this issue Apr 4, 2024 · 2 comments
Labels
info needed More information or research is needed to continue question

Comments

@Seaviello
Copy link

Seaviello commented Apr 4, 2024

Product

axe-core

Question

This question might be related to issue

Currently following code

<div role="tablist">
   <a aria-current="page" aria-selected="true" role="tab" href="...">Link 1</a>
   <div aria-hidden="true" ></div>
   <a aria-selected="false" role="tab" href="..." >Link 2</a>
</div>

cause a rule validation informing about child element being without role="tab"

When aria-hidden attribute is replaced with role="presentation" the validation error disappears. Using together aria-hidden with role attribute on the other hand still causes validation issue. Is that an expected behaviour?

@Seaviello Seaviello added question ungroomed Ticket needs a maintainer to prioritize and label labels Apr 4, 2024
@straker
Copy link
Contributor

straker commented Apr 8, 2024

Thanks for the issue. Unfortunately we're not able to reproduce this issue. When I run the code I don't get any violations. Which rule is giving the violation (I assume aria-required-child)?

Also which version of axe-core are you using? This sound similar to #4090 which was fixed in v4.8.0.

@straker straker added info needed More information or research is needed to continue and removed ungroomed Ticket needs a maintainer to prioritize and label labels Apr 8, 2024
@Seaviello
Copy link
Author

@straker We used version v4.6, updating solved an issue. Thank you and sorry for trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info needed More information or research is needed to continue question
Projects
None yet
Development

No branches or pull requests

2 participants