Open
Description
508-defect-1
Feedback framework
- ❗️ Must for if the feedback must be applied
⚠️ Should if the feedback is best practice- ✔️ Consider for suggestions/enhancements
Definition of done
- Review and acknowledge feedback.
- Fix and/or document decisions made.
- Accessibility specialist will close ticket after reviewing documented decisions / validating fix.
Point of Contact
VFS Point of Contact: Josh
User Story or Problem Statement
As a keyboard user, I would expect the form elements within the wizard to not cause the wizard to collapse when I press Enter
Details
The wizard "Let's get started" button is acting like a submit button and being toggled when any form element "see" the Enter key and attempts to submit the form.
- The wizard collapsing is jarring & unexpected
- The expanded wizard should be persistent
- Focus is lost
- This problem occurs in production
Acceptance Criteria
- Prevent closing the wizard when Enter is pressed
- Maintain focus on the form element
Environment
- Operating System: any
- Browser: any
- Screenreading device: any
- Server destination: production
Steps to Recreate
- Go to https://www.va.gov/disability/how-to-file-claim/
- Click on the green "Let's get started" wizard button - it will turn blue and show the first wizard question.
- Once open use the Tab to navigate to the active duty radio group
- Press Space to make a choice and see the wizard reveal the next step.
- While still focused on the radio, press Enter
- The "Let's get started button" will once again turn green and collapse the wizard
- Focus is lost, but will focus on the link after the wizard start button if Tab is pressed.
- Clicking on the "Let's get started" button will reveal the wizard in its previous state.
Proposed Solution (if known)
This problem may be fixed by adding a type="button"
to the wizard toggle
<button
+ type="button"
aria-expanded={this.state.expanded ? 'true' : 'false'}
aria-controls="wizardOptions"
className={buttonClasses}
onClick={() => this.setState({ expanded: !this.state.expanded })}
>
{buttonText}
</button>
-->
WCAG or Vendor Guidance (optional)
Screenshots or Trace Logs
Screen.Recording.2021-02-11.at.1.05.31.PM.mov
Metadata
Metadata
Assignees
Labels
Cognitive considerations - https://developer.paciellogroup.com/blog/2018/03/wcag-2-1-success-criteriFocus Management - https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-focus-order.htmlCritical accessibility issue that should be fixed before launch or in the next sprintWork associated with the Veteran-facing Services Applications contract
Activity