Closed albernaz closed 3 years ago
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
ion-checkbox generated HTML markup has an accessibility issue on Lighthouse Audit.
Ionic version:
[x] 5
Current behavior:
Lighthouse Audit: Buttons do not have an accessible name Failing Elements button
Expected behavior:
Should pass Lighthouse Audit Test.
Steps to reproduce:
Related code:
Other information:
https://github.com/ionic-team/ionic/blob/master/core/src/components/checkbox/checkbox.tsx line 168-169 Just add line bellow to the Button HTML tag: aria-labelledby={labelId}
This must fix it.
Ionic info: