department-of-veterans-affairs / va-forms-system-core

VA Forms System Core will be a React library hosted in NPM that will allow engineers and designers to easily interact with Forms inside of vets-website.
https://department-of-veterans-affairs.github.io/va-forms-system-core/
6 stars 4 forks source link

[A11y]: VA Forms System Core [Demo Content]: Link text is not descriptive #551

Closed AngelaFowler82 closed 2 years ago

AngelaFowler82 commented 2 years ago

Point of contact

Angela Fowler

Severity level

2, Serious. Should be fixed in 1-2 sprints post-launch.

Details

...

User Story or Problem Statement

As a screen reader user, I should be able to navigate the content of the page and understand link context. The link text that appears in my screen reader rotor or element list should convey the link purpose for each available link.

Details

Currently, Step 10: Review Your Application includes EDIT links for each form step summary. For screen reader users, it can be difficult to determine what form section the EDIT link is associated with since they all display the same text.

Acceptance Criteria

Environment

...

Steps to Recreate

  1. Enter https://staging.va.gov/burial-poc-v6/ in browser address bar

  2. Navigate to Step 10: Review Your Application

  3. Verify that there are repetitive EDIT links on the page that provide no context to screen readers as to which section they will be editing upon click

Proposed Solution (if known)

Add in additional text for screen readers to indicate which section the EDIT link is referring to. This can be achieved with an aria-label attribute (see example below).

Example:


<h2 id=”veteran-information-burial”>Deceased Veteran Information</h2>

<a …. aria-label=”Edit Deceased Veteran Information”>Edit</a>

...

WCAG or Vendor Guidance (optional)

Screenshots or Trace Logs

Type of issue

obliviga commented 2 years ago

The aria-label attribute needs to be added to the Link component inside src/form-data/ReviewPage.tsx.

obliviga commented 2 years ago

This issue will be addressed in the following PR: https://github.com/department-of-veterans-affairs/va-forms-system-core/pull/565

obliviga commented 2 years ago

Verified fix has been deployed to the main branch.