Link without a name
Why it matters
A link with only an icon, an image with empty alt, or nothing inside is announced as just "link" (Lighthouse: links do not have a discernible name).
Fix
Add aria-label, or visible or sr-only text inside the link.
Credit
From Deque
The axe rule link-name requires links to have discernible text.
From W3C Web Accessibility Initiative
WCAG 2.4.4 requires the purpose of each link to be determinable.
References
- Links must have discernible textDeque University
- Understanding Success Criterion 2.4.4: Link Purpose (In Context)W3C
- <a> HTML anchor elementMDN Web Docs