Repository navigation
Clean up Tabs animation logic - #65878
Conversation
…mprove/clean-up-tabs-animation-logic
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
ciampo
left a comment
There was a problem hiding this comment.
LGTM 🚀
- ✅ Code changes look good
- ✅ Tests well in Storybook
- ✅ No regressions in the editor
|
Flaky tests detected in 143bc3d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11180870751
|
|
I just cherry-picked this PR to the release/19.4 branch to get it included in the next release: a1b696d |
* Clean up and misc improvements. * Move utility from ToggleGroupControl to utils. * Clean up Tabs.Tablist * Clean up ToggleGroupControl and update utility from latest trunk version * Clean up scroll utility * Remove unnecessary null. * CHANGELOG --------- Co-authored-by: DaniGuardiola <daniguardiola@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
* Clean up and misc improvements. * Move utility from ToggleGroupControl to utils. * Clean up Tabs.Tablist * Clean up ToggleGroupControl and update utility from latest trunk version * Clean up scroll utility * Remove unnecessary null. * CHANGELOG --------- Co-authored-by: DaniGuardiola <daniguardiola@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
Follow-up to #65808
What?
Moved the
useAnimatedOffsetRectto the utils dir which is now used from Tabs. Also, cleaned up tabs a bit and extracted the scroll logic into a hook (inlined in the file).This will also fix some issues in the indicator animation that make it skip around in some cases.
Testing Instructions
Try the Tabs stories in Storybook, and tabs instances in WP.