Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Getting missing Form label for mat-list-option for angular material 15 after MDC migration #1221

@shwetanikam12

Description

@shwetanikam12
  • After angular material upgrade to version 15 and MDC upgrade we are getting an accessibility error from the WAVE tool.
  • We are getting missing-form-label error for every checkbox for the mat-list-option. We have tried adding aria-label ,alt-text, title and even tried adding mat-label inside the mat-list-option, nothing has been worked till yet.
  • Inside input field is getting created on the fly for which this error is coming.
  • We have found one solution in which with the help of DOM manipulation we are able to resolve this issue, since DOM manipulation is not recommended is there some other solution for it.
  • This issue was not present before version 15 upgrade, even on the official material website we are able to see this issue for mat-selection-list.

Angular Material Version 14:
image

Angular Material Version 15:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions