-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Move document tools motion to header-edit-mode layout level #55904
Conversation
Moving the motion up to the layout level for the header keeps the navigation document tools and the animation of it separated for a cleaner implementation.
Size Change: -30 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Flaky tests detected in 142272a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6773814136
|
Fixed in #55678 by @t-hamano. Thanks for the research and fix!
What?
Moving the motion div up to the layout level for the edit site header keeps the navigation document tools and the animation of it separated. Now all the animations are in the edit-site-header rather than being passed into the document tools navigation.
Why?
Fewer props passed. Animation of header logic stays in one file, so it's easier to reason about. The navigation has no need to know about how it's animated.
How?
Move the animation div up a level.
Testing Instructions
Open the site editor.
Click on the editor pane.
Check there are no console errors.
Header animation should match
trunk