In short
Each ARIA role supports only certain aria-* attributes. PageSpeed flags elements using an attribute their role doesn't allow, such as aria-checked on a plain button. Screen readers may ignore it or announce something wrong. Remove the attribute, or change the role to one that supports it (for example role="switch" or role="checkbox"). Weight 10.
This guide isn't affiliated with or endorsed by Google.
Related issues
Sources and references
Chrome for Developers, Lighthouse accessibility score

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.
![[aria-*] Attributes Do Not Match Their Roles (PageSpeed Insights)](/uploads/pagespeed-aria-allowed-attr-cover.webp)


