calcite-design-system
calcite-design-system copied to clipboard
Tree component should probably use treegrid role now that it has actions at the end
Summary
Now that we added actions at the end of the tree, the role should change from tree to tree grid in order to correctly support actionable content with a tree.
Actual Behavior
Role still uses tree even when there are actions at the end.
Expected Behavior
Role uses treegrid when there are actions at the end.
Reproduction Sample
https://codepen.io/nwhittaker-esri/pen/poObpdK
Reproduction Steps
- See sample
- Notice its using tree role
Reproduction Version
1.4.x
Working W3C Example/Tutorial
https://www.w3.org/WAI/ARIA/apg/patterns/treegrid/
Relevant Info
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/treegrid_role https://www.w3.org/WAI/ARIA/apg/patterns/treegrid/
Related to
https://github.com/Esri/calcite-components/issues/6509
Regression?
No
Priority impact
p4 - not time sensitive
Esri team
N/A