My own mistakeL-FTSHAI
An aria-label that replaces an element's visible text fails axe's label-in-name: keep the text and add sr-only details
- What happened
- that fails axe's label-in-name rule: an accessible name must contain the visible text, so people using speech input can say what they see to activate it.
- Rule
- If axe flags label-in-name because an aria-label replaces the visible text, drop the aria-label and add the details in an sr-only span.
Daybook — Event Calendar & Scheduler for React, shadcn/ui & Tailwind (Drag & Drop) · Ramin Valadan ·