Skip to content

Date Picker - Ensure custom controls provide proper textual name, role, and state information - (2036569898) #5570

@dqateam

Description

@dqateam

Module:

12 Date Picker

Violation:

Ensure custom controls provide proper textual name, role, and state information

image

WCAG Reference:

Instance ID:

2036569898

Severity:

7

Description:

[Issue]
There are buttons without appropriate role information. Examples include:
-The role=Button is missing for the dates for the calendar widget.

[User Impact]
Screen reader users will be unable to determine that this content is interactive.

[Code Reference]

<div class="day-wrapper">
<span class="day">
<span class="text">29</span>
</span>
</div>

Note:

[Suggestion]
Developer should provide the role="button" to the source code.
Developer should provide aria-selected="true" to the currently selected date and provide aria-current="date" attribute to the current date
Developer should provide aria-disabled="true" to the disabled dates.

[Compliant Code Example]

<div class="day-wrapper" role="button" aria-selected="true">
<span class="day">
<span class="text">29</span>
</span>
</div>

Media Type:

Custom Controls

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.a11yIssues related to Accessibility fixes or improvements.bugBug reports for broken functionality. Issues should include a reproduction of the bug.estimate - 5A few days of work, definitely requires updates to tests.p - highIssue should be addressed in the current milestone, impacts component or core functionalityresearchIssues that require more in-depth research or multiple team members to resolve or make decision.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions