Closed TiffanyPender closed 2 years ago
@TiffanyPender Should focus be set on the form
element itself, or on the h1
element? Thanks!
@obliviga My recommendation is to either set focus on the h1
element or on the step indicator. This will help screen reader users know that they have moved on to the next page of the form and will help other users to visually see the top/beginning of the new form content.
@TiffanyPender, thanks. I'll set focus on the h1
since the step indicator is a design system component that cannot be focused on. If an h1
inside the form does not exist, then focus will be set on the default location, which is the body
. Let me know what you think :)
Verified that this fix has been deployed to the main branch.
-508-defect-1: ❗️Critical. Must be fixed before launch
User Story or Problem Statement
As someone who navigates with a keyboard or mouse, when navigating a form that takes me through different steps and pages via BACK and CONTINUE style buttons, I expect for the screen to shift to the top of the form content of the page post-click/select. This helps me understand where on the page I am in relation to all content and keep my understanding of the flow of the form in tact.
Details
When clicking on either the BACK or CONTINUE button on any step of the form, the screen does not shift focus to scroll up to the top of the form content on the loaded page.
Acceptance Criteria
Environment
<Version 12.4>
<Version 102.0.5005.61>
Steps to Recreate
document.activeElement
WCAG or Vendor Guidance (optional)