-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Closed
Copy link
Labels
4 - verifiedIssues that have been tested, confirmed as mitigated, and are ready to close.Issues that have been tested, confirmed as mitigated, and are ready to close.a11yIssues related to Accessibility fixes or improvements.Issues related to Accessibility fixes or improvements.bugBug reports for broken functionality. Issues should include a reproduction of the bug.Bug reports for broken functionality. Issues should include a reproduction of the bug.estimate - 3A day or two of work, likely requires updates to tests.A day or two of work, likely requires updates to tests.p - mediumIssue is non core or affecting less that 60% of people using the libraryIssue is non core or affecting less that 60% of people using the library
Milestone
Description
Module:
17a Input Date Picker
Violation:
Avoid use of placeholder values to label or explain input
WCAG Reference:
Instance ID:
2036569968
Severity:
8
Description:
[Issue]
There are form fields that rely on the placeholder attribute to supply their accessible name. Examples include:
- All input "date-picker" elements.
[User Impact]
Users with cognitive disabilities may be unable to determine the purpose of the field after the placeholder disappears. Some assistive technologies will not use the placeholder attribute as a field's accessible name, so screen reader users will have difficulty determining what fields are for and speech input users will have difficulty navigating to them.
[Code Reference]
<input aria-label="" class="" enterkeyhint="" inputmode="" placeholder="MM/DD/YYYY" type="text">
Note:
[Suggestion]
Avoid use of placeholder values to label or explain input.
Labels must meet the following requirements:
- The label must be visible.
- The label must be persistent. That is, a label must not disappear when text is entered into the field or an option is selected.
- The label must be programmatically associated with the form field. The most common way to do this is with a
<label>
element with a for attribute set to the ID of the field. - The label must provide the accessible name of the field, or the label's exact text must be included in the accessible name.
[Compliant Code Example]
N/A
Media Type:
Forms
Additional Resources:
- Report Source: Product accessibility evaluation conducted on the Calcite Design System in August, 2022.
Metadata
Metadata
Assignees
Labels
4 - verifiedIssues that have been tested, confirmed as mitigated, and are ready to close.Issues that have been tested, confirmed as mitigated, and are ready to close.a11yIssues related to Accessibility fixes or improvements.Issues related to Accessibility fixes or improvements.bugBug reports for broken functionality. Issues should include a reproduction of the bug.Bug reports for broken functionality. Issues should include a reproduction of the bug.estimate - 3A day or two of work, likely requires updates to tests.A day or two of work, likely requires updates to tests.p - mediumIssue is non core or affecting less that 60% of people using the libraryIssue is non core or affecting less that 60% of people using the library