-
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
DocumentActions: Animate between page and template mode #51224
Conversation
Size Change: +493 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
Flaky tests detected in ff08eb9. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5174127824
|
Works well for me. We discussed using AnimatePresence but decided plain CSS was more lightweight for now. |
) * DocumentActions: Animate between page and template mode * Remove unnecessary setHasEditedTemplate() * refine toolbar animation --------- Co-authored-by: Saxon Fletcher <[email protected]>
What?
Follows #50857.
Makes the
DocumentActions
control (at the top of the screen) animate between page editing mode and template editing mode.Why?
How?
I just used CSS
@keyframes
. Briefly consideredframer
but it would require refactoringDocumentActions
a little bit to get theexit
effect working and also it would be a new dependency in@wordpress/edit-site
. KISS.Testing Instructions
Screenshots or screencast
Kapture.2023-06-05.at.16.42.33.mp4