Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Adds focus heading behavior for forms with pages (groups) #4201

Merged
merged 6 commits into from
Aug 26, 2024

Conversation

thiessenp-cds
Copy link
Contributor

@thiessenp-cds thiessenp-cds commented Aug 20, 2024

Summary | Résumé

Adds focus header behavior for forms with lengthy pages. Focussing the group header (H2) navigates the page to the top and also announces the change (heading title) for AT users.

Test

Create a form with a few pages that have a lot of form elements. I found adding a few address component sets helpful for this. Then try navigating back and forth through the form. For each page navigation, the focus should start at the top of the form.

Copy link
Contributor

@thiessenp-cds thiessenp-cds changed the title fix: Adds scroll top behavior for forms with pages fix: Adds focus heading behavior for forms with pages (groups) Aug 22, 2024
@thiessenp-cds thiessenp-cds marked this pull request as ready for review August 22, 2024 17:53
callback,
}: {
language: Language;
callback?: () => void;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering if there's a better name for this maybe just onClick?

callback makes me think of something that's going to happen after a function call happens which isn't exactly what's happing here.

@thiessenp-cds thiessenp-cds merged commit cb31f6e into develop Aug 26, 2024
13 checks passed
@thiessenp-cds thiessenp-cds deleted the fix/4123 branch August 26, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating a multi-page form, continuing to next page does not go to top
2 participants