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.
This copies the treeId and rootItem properties but not the treeLabel and treeLabelledBy properties that are expected by the TreeConfiguration interface that TreeInformation inherits.
Describe the bug The
aria-label
of therole="tree"
element does not get set to thetreeLabel
property of aTree
component since the property is not passed on to thetreeInformation
object.To Reproduce Steps to reproduce the behavior:
treeLabel
property, for example https://rct.lukasbach.com/docs/guides/search""
)Expected behavior The label should be assigned (via
aria-label
attribute).Additional context Related code:
https://github.com/lukasbach/react-complex-tree/blob/90d24f64ee3455e019000248cd445fb84e1fb792/packages/core/src/tree/Tree.tsx#L48-L75
This copies the
treeId
androotItem
properties but not thetreeLabel
andtreeLabelledBy
properties that are expected by theTreeConfiguration
interface thatTreeInformation
inherits.https://github.com/lukasbach/react-complex-tree/blob/90d24f64ee3455e019000248cd445fb84e1fb792/packages/core/src/types.ts#L352-L357