Skip to content

TreeView: Remove aria-describedby when leading and trailing visuals do not exist #4457

@JelloBagel

Description

@JelloBagel

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:". The aria-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, the ids do not exist on the page.

Steps to reproduce

  1. Go to Storybook Recipes > NestedListView > Example
  2. Open Accessibility tab in the Add Ons panel
  3. Click the Incomplete tab to view test warnings
  4. Notice "ARIA attributes must conform to valid values"

Version

v36.12.0

Browser

Chrome

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions