Skip to content

Accessibility: Missing label association in Select #47419

@swapnilchafale

Description

@swapnilchafale

Steps to reproduce

The Basic Select example in the documentation does not pass accessibility checks.
An accessibility audit reports: "Missing form label: A form control does not have a corresponding label."

Screenshot:

Image

Steps to reproduce:

  1. Visit https://mui.com/material-ui/react-select/
  2. Inspect the example under "Basic select".
  3. Accessibility checker reports: "Missing form label". (Crome Extension - WAVE Evaluation Tool)

Current behavior

No response

Expected behavior

The example should properly associate the label with the Select component using labelId and id attributes, or provide an aria-label for compliance with WCAG.

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: Accessibility, Select

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to the documentation.type: expected behaviorThe current behavior is already the one expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions