Skip to content

Accessibility issue using mat-checkbox,mat-slide-toggle and mat-select #11757

@chetankumar45

Description

@chetankumar45

On running accessibility tool AMP, below issues are identified due to mat checkbox and select.

  1. Provide alternative text for images - The svg added for check mark dose not have alt text.


capture
1

  1. Ensure ARIA roles, states, and properties are valid - Not able to added aria-checked, how can we added fix this issue.

If the same mat-checkbox is replaced by input type="checkbox" none of the issue will be reproduced.

Checkbox code -
<mat-checkbox aria-label="Select" (click)="checkboxSelected($event,row)" (change)="$event ? selection.toggle(row) : null" [checked]="selection.isSelected(row)">
Select

Toggle code -

{{broadcastMessageToggleValue}}

Please validate and provide the solution.

Thanks,
Chetan

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