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

Consider making aria-treeitem-name a WCAG rule #2778

Open
WilcoFiers opened this issue Jan 22, 2021 · 2 comments
Open

Consider making aria-treeitem-name a WCAG rule #2778

WilcoFiers opened this issue Jan 22, 2021 · 2 comments
Labels
feat New feature or enhancement rules Issue or false result from an axe-core rule
Milestone

Comments

@WilcoFiers
Copy link
Contributor

Currently elements with role=treeitem, without an accessible name are failed as a best practice, instead of a WCAG rule. The reason for that was to account for static treeitems. It is hard to argue that those are failures of WCAG.

Another way we could have done that, which is more involved, but I think I would prefer is to make it a WCAG rule, and flag static treeitems for review, so that:

<div role="treeitem">hello</div> <!-- pass -->
<div role="treeitem"></div> <!-- needs review -->
<div role="treeitem" tabindex="0"></div> <!-- violation; wcag2a, wcag412 -->
@dylanb
Copy link
Contributor

dylanb commented Jan 25, 2021

When is an empty treeitem ok?

@WilcoFiers
Copy link
Contributor Author

There's nothing in WCAG that would fail an empty treeitem that is not focusable.

@WilcoFiers WilcoFiers added feat New feature or enhancement rules Issue or false result from an axe-core rule labels Apr 14, 2021
@WilcoFiers WilcoFiers added this to the axe-core 4.3 milestone Apr 14, 2021
@WilcoFiers WilcoFiers modified the milestones: axe-core 4.3, Axe-core 4.4 May 12, 2021
@WilcoFiers WilcoFiers modified the milestones: Axe-core 4.4, Axe-core 4.5 Nov 10, 2021
@straker straker modified the milestones: Axe-core 4.5, Axe-core 4.6 Aug 12, 2022
@WilcoFiers WilcoFiers modified the milestones: Axe-core 4.6, Axe-core 4.7 Nov 2, 2022
@WilcoFiers WilcoFiers modified the milestones: Axe-core 4.8, Axe-core 4.9 Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or enhancement rules Issue or false result from an axe-core rule
Projects
None yet
Development

No branches or pull requests

3 participants