Skip to content

feat(mat-option): Add aria-selected="false" back when used with single-selection #26642

Open
@clamli

Description

@clamli

Feature Description

When mat-option is used with single-selection, the unselected option does not have aira-selected="false" set. This violates WCAG Success Criteria: 4.1.2 Name, Role, Value (A) as the aria-selected attribute is a required attribute for elements with role="option".

Expected behavior

  • When mat-option is not selected, set aria-selected="false"
  • When mat-option is selected, set aria-selected="true"

Use Case

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    AccessibilityThis issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/autocompletearea: material/corearea: material/selectfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions