Buttons must have discernible text

labels-and-names/button-name · WCAG 4.1.2 · Level A

Buttons must have discernible text.

Screen reader users need to know what a button does. Add visible text content, aria-label, or aria-labelledby. For icon buttons, use aria-label describing the action (e.g., aria-label='Close'). If the button contains an image, ensure the image has alt text describing the button's action.

Scan a page or repo for issues like this · All rules

Introduced in @accesslint/core v0.8.0