dgreene1 / react-accessible-treeview

A react component that implements the treeview pattern as described by the WAI-ARIA Authoring Practices.
https://dgreene1.github.io/react-accessible-treeview
MIT License
277 stars 37 forks source link

Fix issue with adding focus classes on a tree without any interaction. #136

Closed kpustakhod closed 1 year ago

kpustakhod commented 1 year ago

When on initial tree loading propagation automatically selects any parent node, first node in a tree gets --focused style, thus if consumers use this styles in addition to :visual-focus pseudo-class this causes a confusion that visually there is a focused tree element on a page without any interaction.

Ref: UIEN-4502