In short
role="text" (a non-standard role some browsers support) is used to stop screen readers splitting styled text into pieces. But it hides the meaning of anything inside, so a link or button within it becomes focusable yet unnamed. Remove the role from containers that hold interactive elements. Weight 7.
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.



