Global style revisions: remove unnecessary goTo navigation call#65810
Conversation
… `Navigator.BackButton` already has default back behaviour.
|
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: 0 B Total Size: 1.77 MB ℹ️ View Unchanged
|
|
Flaky tests detected in 657b5f1. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11135870136
|
Mamaduka
left a comment
There was a problem hiding this comment.
Thank you, @ramonjd! The back navigation works as before.
Side note: I noticed that when I open the Style Book and then the Revisions, the panel does some kind of double rendering/navigation. It could be worth tracking this separately.
Screencast
CleanShot.2024-10-02.at.08.09.10.mp4
Thanks @Mamaduka I'm sure this or something similar came up somewhere else, but now I can't find it 🤔 |
Might be related: |
|
Thanks for fixing this up! |
…rdPress#65810) Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
…call (WordPress#65810)" This reverts commit 7b5f4b2.
…5810) Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
What? How? Why?
Partly addresses #65794
Remove
goTo()call in theonBackcallback for the ScreenHeader sinceNavigator.BackButtonalready has default back behaviour.Testing Instructions
Head over to Global styles revisions.
Check that the header back button returns to the root styles panel.
Screenshots or screencast
2024-10-02.10.39.44.mp4