Skip to content

Rule · Accessibility

Duplicate id referenced by ARIA

a11y/duplicate-id-ariaerrorvoid a11yupdated

Why it matters

When several elements share an id, aria-labelledby, aria-describedby and aria-controls resolve to the first match only, so controls get the wrong label.

How to fix it

Make every id referenced by an ARIA attribute unique on the page. Generate ids per component instance (React useId).

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.