TreeTable: aria-expanded attribute should not be on leaf nodes #4368
Labels
Component: Accessibility
Issue or pull request is related to WCAG or ARIA
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
from https://www.w3.org/WAI/ARIA/apg/patterns/treegrid/:
"Rows that do not control display of child rows do not have the aria-expanded attribute because, if they were to have it, they would be incorrectly described to assistive technologies as parent rows."
Reproducer
https://primevue.org/treetable/
PrimeVue version
3.32.2
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Inspect the html of any example in the TreeTable documentation page
Expected behavior
Leaf rows in a TreeTable do not have the aria-expanded attribute
The text was updated successfully, but these errors were encountered: