[Other - Accessibility] - Screen reader announces heading from footer when closing modal (00.00.1) #51155
Labels
a11y-defect-1
Critical accessibility issue that should be fixed before launch or in the next sprint
accessibility
CC-Dashboard
To be included in Collab Cycle Dashboard
CCIssue00.00
collab-cycle-feedback
For VSP Collaboration cycle feedback assigned to VFS
launch-blocking
launch blocking issue found in Collab Cycle
Public Websites
Global Unauthenticated Experience team for va.gov. Products include home page, content hubs...
Staging
VA.gov homepage
Milestone
General Information
VFS team name
Sitewide
VFS product name
VA.gov Homepage
VFS feature name
Redesigned homepage
Point of Contact/Reviewers
Brian DeConinck - @briandeconinck - Accessibility
*For more information on how to interpret this ticket, please refer to the Anatomy of a Staging Review issue ticket guidance on Platform Website.
Platform Issue
Screen reader announces heading from footer when closing modal
Issue Details
This is a known issue (va.gov-cms-#12008) but I'm noting it here as a launch-blocking issue.
When an NVDA user closes the modal to remain on the current homepage, the footer H2 "Veteran programs and services" is announced, even though focus is moved to the skip link (or possibly elsewhere, depending on va.gov-cms-#12045). This is misleading to screen reader users, telling them they're in a different place on the page than where their keyboard focus actually is. Even a user who is very familiar with the current homepage might struggle to figure out where they are on the page, and would likely have to explore a little to understand where focus was moved to.
Update: Some more details on what's happening after a chat with @laflannery...
This behavior is only happening for NVDA users, and appears to be related to an unresolved bug in NVDA reported in 2016. When the modal is open, NVDA moves focus to the point in the page where the modal lives -- in this case, just before the
<footer>
. When the modal closes, NVDA starts announcing the content from there (starting with the first heading in the footer), before recognizing that focus has been moved back to the top of the page.Per the 2021 WebAIM screen reader user survey, NVDA is the primary screen reader for about 31% of users (second-highest market share), and is reported as "commonly used" by about 59% of screen reader users. Given the popularity of NVDA, we can expect that a good share of screen reader users who opt to stay on the current homepage will get this confusing interaction.
With that said, this is an acknowledged bug in third-party software that we don't support, and not an implementation issue with the modal code itself. As it exists now, I would still classify this as a launch-blocking issue. But that's important context to keep in mind.
Laura and I came up with a few potential workarounds, documented in the update to the Platform Recommendation section below.
Link, screenshot or steps to recreate
Info landmark heading level 2 Veteran programs and services
before announcing the skip link.VA.gov Experience Standard
Category Number 00, Issue Number 00
Other References
Platform Recommendation
It looks like there's already a fix in the works, so hopefully this one is easy to close out without any drama. Still documenting it here just to note that it is launch-blocking and needs to be resolved prior to launch.Update: Working with Laura, we've identified three potential workarounds that may resolve the issue.
div
that receives focus instead of the skip link may satisfy the workaround proposed by James Teh from NVDA.va-modal
component to the point in the document that matches where we want users go to seems like it might resolve the issue.Laura is working with the team to try these workarounds.
VFS Guidance
Platform directions
The text was updated successfully, but these errors were encountered: