Description
Some links in the application do not have accessible names, failing the link-name axe-core rule.
Current Behavior
Links may contain only images without alt text, or have no text content, making them inaccessible to screen reader users.
Expected Behavior
All links should have accessible names through one of:
- Text content within the link
aria-label attribute
aria-labelledby reference
- Image with alt text inside the link
<!-- Good examples -->
<a href="/lesson">View Lesson</a>
<a href="/lesson" aria-label="View Lesson 1">
<img src="icon.svg" alt="">
</a>
Impact
- Screen reader users hear "link" without knowing the destination
- Users cannot understand the purpose of links
WCAG Criterion
Suggested Fix
- Audit all links in the application
- Add text content or aria-label to links
- For icon-only links, add aria-label describing the action
Description
Some links in the application do not have accessible names, failing the
link-nameaxe-core rule.Current Behavior
Links may contain only images without alt text, or have no text content, making them inaccessible to screen reader users.
Expected Behavior
All links should have accessible names through one of:
aria-labelattributearia-labelledbyreferenceImpact
WCAG Criterion
Suggested Fix