department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
282 stars 203 forks source link

Staging Review finding: Abbreviated link text difficult to understand for screen reader users #84242

Closed shiragoodman closed 4 months ago

shiragoodman commented 4 months ago

Need help? Please review how to read a Staging Review ticket. Tag @platform-governance-team-members on Slack if you need further assistance.

Product Information

Team: Cartographers Product: MHV on VA.gov Feature: MHV Secondary Nav

Findings details

VA.gov Experience Standard - issue: User can't perceive an element. VA.gov Experience Standard - category: Comprehension Launch-blocking: No Design System review: No Collab Cycle Reviewer: @briandeconinck (Accessibility)

Description

On small screens and at high zoom, the Appointments and Medications links are shortened to "Appts" and "Meds." To provide intelligible link text to screen reader users, those shortened versions are presented using the abbr element, eg:

<span class="mhv-u-sec-nav-short-title ">
        <abbr title="Appointments">Appts</abbr>
</span>

However, the expanded "Appointments" does not read out consistently on all screen readers, and "Appts" isn't very easy to recognize for what it's supposed to mean. Adrian Roselli has a good exploration of the abbr element and its lack of support across screen readers. His conclusion is:

Don’t use with or without title. Exposure continues to be inconsistent across browsers and assistive technologies. Some set of users will always miss some piece of information.

Recommended action

One challenge here is that we have to support two different assistive technology interaction models. Screen reader users need to hear something that they can recognize and understand, and voice command software users need to see something that they can say out loud ("Click [link text]") that will be matched to the right element. Using an aria-label ensures something intelligible is announced to screen reader users, but when an aria-label doesn't match the visible text, that typically breaks the voice command matching.

Thinking about those different assistive tech interactions, here's what I'm going to recommend:

The thought process behind this recommendation:

But note that the Section 508 Office might have a different take on this when you submit your audit.

References


Next Steps for the VFS Team

Cartographers ACs

brea11y commented 4 months ago

I agree with the recommended updates and would move forward with these changes.

allanto-ah commented 4 months ago

Environment: Staging

Verified using VoiceOver on macOS and Narrator on Windows that "Appts" will be read as "Appointments" and "Meds" as "Meds"