EN, Change language
Englishالعربية
OM-069

Ensure the hint is programmatically associated with the form field so screen readers read it when the user focuses the input.

The requirement (from the design system site)

Ensure the hint is programmatically associated with the form field so screen readers read it when the user focuses the input.

Why it matters to users

A sighted user sees the hint under the label, such as "as shown on your ID card", but a screen-reader user hears it on entering the field only if it is linked. Otherwise they type the data in the wrong format and the form is rejected.

How to fix it

Give each hint an id and reference it from the field's aria-describedby, or use gup-form-hint with gup-input-field so the link is made for you. Then scan again.

How we measure it

Each visible hint (gup-form-hint, hint-class text between label and field) has an id referenced by the field's aria-describedby.

The rule on the design system site

Related rules

Hint linked to its field · Oman OM-069 | xfix