OM-058
Each checkbox must have a visible label that is programmatically linked to it.
The requirement (from the design system site)
Each checkbox must have a visible label that is programmatically linked to it.
Why it matters to users
Someone on a phone wants to tap the option text, not just the tiny box, and a screen-reader user needs to hear that text when they reach the box. If the text is not linked in code, both lose the connection between the box and what it means.
How to fix it
Give each checkbox visible label text and link it with label for, by wrapping the input in its label, or by using gup-checkbox, rather than relying on aria-label alone. Then scan again.
How we measure it
axe label rule passes and the accessible name comes from visible text (label[for] or wrapping label), not aria-label only. Hidden CSS-toggle checkboxes are skipped as in OM-057.
The rule on the design system site