Input buttons must have discernible text via value, aria-label, or aria-labelledby

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

Input buttons must have discernible text via value, aria-label, or aria-labelledby.

Input buttons (<input type='submit'>, type='button', type='reset'>) need accessible names so users know what action the button performs. Add a value attribute with descriptive text (e.g., value='Submit Form'), or use aria-label if the value must differ from the accessible name.

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

Introduced in @accesslint/core v0.8.0