Closed
Description
Describe the bug
The aria-label
of the role="tree"
element does not get set to the treeLabel
property of a Tree
component since the property is not passed on to the treeInformation
object.
To Reproduce
Steps to reproduce the behavior:
- Pick any example that uses the
treeLabel
property, for example https://rct.lukasbach.com/docs/guides/search - Use the accessibility view in Chrome dev tools to view the accessibility tree.
- See that the label is empty (
""
)
Expected behavior
The label should be assigned (via aria-label
attribute).
Additional context
Related code:
react-complex-tree/packages/core/src/tree/Tree.tsx
Lines 48 to 75 in 90d24f6
This copies the treeId
and rootItem
properties but not the treeLabel
and treeLabelledBy
properties that are expected by the TreeConfiguration
interface that TreeInformation
inherits.
react-complex-tree/packages/core/src/types.ts
Lines 352 to 357 in 90d24f6
Metadata
Metadata
Assignees
Labels
No labels