calcite-design-system icon indicating copy to clipboard operation
calcite-design-system copied to clipboard

Tree component should probably use treegrid role now that it has actions at the end

Open driskull opened this issue 1 year ago • 0 comments

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

  1. See sample
  2. 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

driskull avatar Jun 01 '23 17:06 driskull