TreeView: Remove aria-describedby when leading and trailing visuals do not exist #4457
Labels
bug
Something isn't working
component: TreeView
Issues related to the TreeView component
react
size: pebble
Description
We are using TreeView in the NestedListView and I came across this warning in the axe tests:
ARIA attribute element ID does not exist on the page: aria-describedby=":r3: :r4:"
. Thearia-describedby
is set in the TreeView Primer component by the leading visual and the trailing visual. Because the NestedListView does not use the TreeView.LeadingVisual and TreeView.TrailingVisual, theid
s do not exist on the page.Steps to reproduce
Version
v36.12.0
Browser
Chrome
The text was updated successfully, but these errors were encountered: