Skip to content

Rule · Accessibility

ARIA button/link/menuitem has no accessible name

a11y/aria-command-nameerrorvoid a11yupdated

Why it matters

Elements with role button, link or menuitem that have no text are announced only by their role, so users cannot tell what they do.

How to fix it

Add visible text content, or aria-label / aria-labelledby when the control is icon-only.

References

void a11y reports 48 rules in this category. WCAG 2.2 AA through axe-core, plus checks axe can't do alone: visible keyboard focus, 24/44px target size on mobile, 320px reflow and disabled zoom.