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: wrong scrolling behavior #1615

Merged
merged 1 commit into from Mar 28, 2024
Merged

fix: wrong scrolling behavior #1615

merged 1 commit into from Mar 28, 2024

Conversation

DilaraGueler
Copy link
Contributor

@DilaraGueler DilaraGueler commented Mar 22, 2024

PR Type

[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] CI-related changes
[ ] Documentation content changes
[ ] Application / infrastructure changes
[ ] Other:

What Is the Current Behavior?

When validation messages appear in the PWA during checkout, the page scrolls down, causing the focus to shift away from the message. This disrupts user experience as the message is no longer in view.

Issue Number: Closes #

What Is the New Behavior?

The scroll behavior of the basket validation results component has been simplified. The scroll duration has been set to 0 because in case of a delay the scroll target element might not be available any more if validation results lead to (automatical) route changes.

Does this PR Introduce a Breaking Change?

[ ] Yes
[X] No

Other Information

AB#95248
AB#93133

@DilaraGueler DilaraGueler added the bug Something isn't working label Mar 22, 2024
@DilaraGueler DilaraGueler self-assigned this Mar 22, 2024
@DilaraGueler DilaraGueler marked this pull request as ready for review March 22, 2024 14:32
@shauke shauke added this to the 5.1 milestone Mar 22, 2024
@SGrueber SGrueber requested a review from shauke March 27, 2024 14:43
* the scroll behavior of the basket validation results component has been simplified
* the scroll duration has been set to 0 because in case of a delay the scroll target element might not be available any more if validation results lead to (automatical) route changes
@shauke shauke merged commit 25c2c3f into develop Mar 28, 2024
21 checks passed
@shauke shauke deleted the bugfix/auto-scroll branch March 28, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants