Skip to content

[tree view][TreeItem] Checkbox selection - Form elements do not have associated labels - Accessibility(A11y) #15520

@Matt-Butler

Description

@Matt-Butler

Steps to reproduce

Steps:

  1. Navigate to the checkbox example for either simple tree view or rich tree view.
  2. Run an accessibility audit using google lighthouse.
    Screenshot 2024-11-20 at 1 15 32 PM

Current behavior

Accessibility tests fail on checkboxes missing labels.

Expected behavior

Accessibility tests pass

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: Tree, Accessibility

Metadata

Metadata

Labels

accessibilitya11yscope: tree viewChanges related to the tree view. This includes TreeView, TreeItem.type: bugIt doesn't behave as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions