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

🐛 (key indicator) fix broken animation / TAS-535 #3755

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

sophiamersmann
Copy link
Member

@sophiamersmann sophiamersmann commented Jul 1, 2024

#3527 attempted to fix a bug where - after opening an accordion item using the keyboard - the focus unexpectedly jumped to the top of the page. This was fixed by programmatically focusing the content area after opening an accordion. Unfortunately, this breaks the scroll-into-view animation. To avoid interrupting the scroll-into-view animation, we wait a few hundred ms to focus the content area. But we don't really know how much time the animation needs, so the timeout time is set through experimentation. If you're extremely quick to continue navigating, you'll still jump to the top page and then back. This only happens in Safari though – I can't repro the original bug in Chrome or Firefox.

Not really happy with this fix, but can't think of another way...

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @sophiamersmann and the rest of your teammates on Graphite Graphite

@sophiamersmann sophiamersmann changed the title 🐛 (key indicator) fix broken animation 🐛 (key indicator) fix broken animation / TAS-535 Jul 1, 2024
Copy link

@owidbot
Copy link
Contributor

owidbot commented Jul 1, 2024

Quick links (staging server):

Site Admin Wizard

Login: ssh owid@staging-site-key-indicator-animation

SVG tester:

Number of differences (default views): 0 ✅
Number of differences (all views): 0 ✅

Edited: 2024-07-01 08:34:40 UTC
Execution time: 1.19 seconds

@sophiamersmann sophiamersmann force-pushed the key-indicator-animation branch from 49f24c7 to 53561e6 Compare July 1, 2024 08:38
@sophiamersmann sophiamersmann marked this pull request as ready for review July 5, 2024 08:39
@sophiamersmann sophiamersmann requested a review from ikesau July 5, 2024 08:39
Copy link

This PR has had no activity within the last two weeks. It is considered stale and will be closed in 3 days if no further activity is detected.

@github-actions github-actions bot added the stale label Jul 20, 2024
Copy link
Member

@ikesau ikesau left a comment

Choose a reason for hiding this comment

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

sorry for the late review! works for me :]

@github-actions github-actions bot removed the stale label Jul 23, 2024
@sophiamersmann sophiamersmann merged commit b655ffa into master Jul 23, 2024
24 checks passed
@sophiamersmann sophiamersmann deleted the key-indicator-animation branch July 23, 2024 08:57
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