-
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
Style Book: should persist when browsing global styles panels #59261
Conversation
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. |
Size Change: +51 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
Flaky tests detected in c1f2ddb. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/8013519730
|
Tested this on WP Playground and it works great! Thanks for jumping on this. The only oddity I noticed is the way the zoomed out view of the template moves "up" into place when you switch back to the style book. Not sure why that's happening or if we can mitigate it. I'd rather have that as a problem though than not be able to switch into the style book with ease: Screen.Recording.2024-02-22.at.11.16.35.AM.mov |
Thanks for testing! This is a feature of the zoom out view I believe, or at least the attached animation, as the frame resizes and repositions itself. |
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.
Nice fix @ramonjd this is working seamlessly for me!
2024-02-23.11.59.38.mp4
✅ Confirmed on trunk
that opening the style book resets the path
✅ With this PR applied, I can toggle the style book within global styles (style variations, block-level styles, etc) and the sub-screen I'm on is persisted 👍
✅ Revisions toggle will still force the redirect to the revisions screen as expected
LGTM! ✨
…bal styles panel. Adds exceptions for the revisions panel. If it's closed, the panel should close by returning to root. E2E tests as well :)
…ook should remain open when closing the revisions panel
dfaff61
to
c1f2ddb
Compare
* Ensures that the style book remains open when browsing around the global styles panel. Adds exceptions for the revisions panel. If it's closed, the panel should close by returning to root. E2E tests as well :) * With the style book activated in global styles revisions, the style book should remain open when closing the revisions panel * We don't need to set the current path Co-authored-by: ramonjd <[email protected]> Co-authored-by: andrewserong <[email protected]> Co-authored-by: annezazu <[email protected]>
I just cherry-picked this PR to the cherry-pick-wp-6-5-beta-3 branch to get it included in the next release: 83ef19f |
* Ensures that the style book remains open when browsing around the global styles panel. Adds exceptions for the revisions panel. If it's closed, the panel should close by returning to root. E2E tests as well :) * With the style book activated in global styles revisions, the style book should remain open when closing the revisions panel * We don't need to set the current path Co-authored-by: ramonjd <[email protected]> Co-authored-by: andrewserong <[email protected]> Co-authored-by: annezazu <[email protected]>
What?
Resolves #59223
Hi!
This PR ensures that the style book remains open, if activated, when browsing around the global styles panel.
Why?
It could be pretty handy to have the style book remain open when changing global styles, e.g.,
How?
A bit of if else faffery.
If the editor canvas container toggles the "style book", stay on the same global styles panel.
Exceptions:
/
Testing Instructions
Test cases:
Screenshots or screencast
Before
2024-02-22.15.20.46.mp4
After
2024-02-22.15.22.39.mp4