Open CJE001 opened 2 months ago
**Guideline 3.3: Input Assistance "Help users avoid and correct mistakes."
3.3.2 Labels or Instructions WCAG 2.0 Level A**
Labels or instructions are provided when content requires user input. Users with a disability are more likely to make mistakes than others, and recovery from mistakes may be more difficult. Providing simple instructions and examples of expected data format help all users, and especially people with a disability, fill out forms correctly.
Summary
Via Vision Australia assessment: August 2024
Impact: medium
Note: DTA have a 90 day remediation period to address the identified issues within the audit, all issues must be resolved to obtain WCAG 2.2 certification for digital.gov.au
Steps to reproduce
Contact digital.gov.au beta | digital.gov.au (https://www.digital.gov.au/contact)
Observed outcome
The "Subject" and "Message" inputs of the contact form are required fields. While this information is available programmatically for assistive technologies, this information is not provided in text.
Code used
Why this matters
When required fields are not specified, users may struggle to complete forms successfully. This can be especially problematic for users with cognitive or learning disabilities.
Expected outcome
Ensure that users are advised in text when a form contains required fields.
This can be achieved in a number of ways such as:
• Appending the text (required) to all
<label>
elements of required inputs • Appending a symbol, such as an asterisk(*)
to all<label>
elements of required inputs, and explaining the meaning of this asterisk above the form • Appending the text (optional) to all<label>
elements of optional inputs, where all others are then required.Code example
Related issues
For other issues related to this component, please refer to:
• Issue 6 – Label not programmatically associated with input • Issue 7 – Error messages not programmatically associated with input • Issue 12 – Inputs missing autocomplete attribute • Issue 20 – Form input borders have insufficient contrast • Issue 37 – Success message not announced by screen readers