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

[SCREENREADER]: VAOS Scheduler - Certain alert messages should be announced to assistive technology #2863

Closed 1Copenut closed 4 years ago

1Copenut commented 5 years ago

Description

I found two places the alert messages are being added to screens dynamically. These are potential stops in the schedule flow, and should be announced to assistive technology users. Screenshots and code recommendations attached below.

Point of Contact

VFS Point of Contact: Trevor

Acceptance Criteria

Environment

Possible Fixes (optional)

We could add an empty <div> to the pages listed in the Environment above, and add aria-live and aria-atomic attributes so the alerts will be read aloud. I created a public codepen to show the different behaviors for live regions: https://codepen.io/tpierce_402/pen/JjjXJXp

<div aria-atomic="true" aria-live="assertive">
  <!-- React <Alert /> component
</div>

WCAG or Vendor Guidance (optional)

Screenshots or Trace Logs

Screen Shot 2019-10-29 at 12 13 30 PM


Screen Shot 2019-10-29 at 12 15 35 PM

jenniemc commented 4 years ago

based on design changes, we don't have Pending pages anymore