Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

va-date has inaccurate aria-labels that are confusing to screen reader users #3569

Open
2 of 6 tasks
coforma-jamie opened this issue Dec 4, 2024 · 1 comment
Open
2 of 6 tasks
Labels
accessibility Any Section 508 or accessibility issue bug Something isn't working platform-design-system-team va-date DS Date component

Comments

@coforma-jamie
Copy link
Contributor

coforma-jamie commented Dec 4, 2024

Bug Report

  • I’ve searched for any related issues and avoided creating a duplicate issue.

What happened

For <va-date>:

  • The Month <select> has an aria-label - "Please enter two digits for the month"
  • The Day <select> has an aria-label - "Please enter two digits for the day"
    Image

These aria-labels are inaccurate - a user needs to select the month or day via dropdown, either by using their mouse to scroll, keyboard to scroll, or type in the first character of the option they want to select.
Image

Using JAWS, a screen reader user hears the name of the field, then the aria-label. They are told incorrect instructions.

What I expected to happen

A screen reader user expects to hear the name of the field ("Month") and the type of field it is, which happens automatically by using a semantic <select>. You likely don't need an aria-label here at all.

Reproducing

  • Device: Windows 10 laptop
  • Browser: Edge
  • Assistive tech: JAWS

Steps to reproduce:

  1. Go to date input in VADS
  2. Turn on a screen reader
  3. Tab to the Month and Date fields in any of the live code examples

Urgency

How urgent is this request? Please select the appropriate option below and/or provide details

  • This bug is blocking work currently in progress
  • This bug is affecting work currently in progress but we have a workaround
  • This bug is blocking work planned within the next few sprints
  • This bug is not blocking any work
  • Other

Details

This isn't blocking anyone's work, but is an issue for screen reader users.

@caw310 caw310 added va-date DS Date component accessibility Any Section 508 or accessibility issue labels Dec 4, 2024
@caw310
Copy link
Contributor

caw310 commented Jan 6, 2025

Provide your estimate of 1, 2, 3, 5, 8 or 13
@Andrew565 - 2
@ataker -
@harshil1793 -
@it-harrison -
@jamigibbs -
@micahchiang -
@powellkerry -
@rmessina1010 -
@rsmithadhoc -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Any Section 508 or accessibility issue bug Something isn't working platform-design-system-team va-date DS Date component
Projects
None yet
Development

No branches or pull requests

2 participants