Skip to content

LG-5213: Reset scroll position on FormSteps content replacements#5552

Merged
aduth merged 5 commits intomainfrom
aduth-lg-5213-scroll-reset
Oct 29, 2021
Merged

LG-5213: Reset scroll position on FormSteps content replacements#5552
aduth merged 5 commits intomainfrom
aduth-lg-5213-scroll-reset

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Oct 27, 2021

Follow-up to #5534

Why: To reflect the fact that content has been replaced, both focus and scroll position should reset to match user expectations that a new page has been presented. This already existed for formalized steps, but was being emulated (incompletely) for in-step content replacements such as capture troubleshooting tips. These changes seek to bring consistency to this behavior / implementation.

Video:

output2.mp4

aduth added 4 commits October 27, 2021 15:58
**Why**: To reflect the fact that content has been replaced, both focus and scroll position should reset to match user expectations that a new page has been presented. This already existed for formalized steps, but was being emulated (incompletely) for in-step content replacements such as capture troubleshooting tips.
@aduth aduth marked this pull request as ready for review October 28, 2021 12:47
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM, seems simpler overall, love it!

Copy link
Contributor

@anniehirshman-gsa anniehirshman-gsa left a comment

Choose a reason for hiding this comment

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

Video looks good, thanks for including it!

@aduth aduth merged commit 0645f27 into main Oct 29, 2021
@aduth aduth deleted the aduth-lg-5213-scroll-reset branch October 29, 2021 13:50
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.

3 participants