No focusable descendants inside role=text
Last updated:
How to fix focusable descendants inside role=text?
Remove focusable elements from inside the role=text container, or restructure the content so the text role is not needed:
a link inside role=text is focusable
<span role="text">
Read more about <a href="/topic">accessibility</a>
</span>
remove role=text and use plain markup
<span>
Read more about <a href="/topic">accessibility</a>
</span>
if role=text is needed, keep only non-focusable content
<span role="text">Read more about accessibility</span>
role=text is intended to group inline text nodes so screen readers treat them as a single phrase rather than separate elements. It should only wrap plain text.
Why is this important?
Screen readers handle role=text by reading the grouped text as one unit. When a focusable element is inside, the reading order and focus behavior become unpredictable. Users may miss content or encounter errors when navigating by keyboard or assistive technology.
More info:
Rule info
Standard
User impact
Serious impact Significantly hinders users with disabilities. Should be fixed as a high priority. Critical : blocks access entirely Serious : significantly hinders use Moderate : causes difficulty Minor : minimal disruptionFix complexity
High level of required technical expertise To resolve this issue, you need technical expertise in software engineering. Resolving this issue requires modifying the software code, for which you need a background in software engineering.Affects
Free Website Accessibility Audit