-
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
Add back link to Design heading in site editor navigation to return to Dashboard #47950
Conversation
@@ -12,10 +12,11 @@ import useNavigator from '../use-navigator'; | |||
import type { NavigatorBackButtonProps } from '../types'; | |||
|
|||
export function useNavigatorBackButton( | |||
props: WordPressComponentProps< NavigatorBackButtonProps, 'button' > | |||
props: WordPressComponentProps< NavigatorBackButtonProps, 'button' > | any |
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.
just a temporary hack of course until we decide if href
should be added to this component or not.
Size Change: +45 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Need to do some investigation into why the |
Flaky tests detected in 7cf4947. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4167695723
|
packages/edit-site/src/components/sidebar-navigation-screen/index.js
Outdated
Show resolved
Hide resolved
packages/edit-site/src/components/sidebar-navigation-screen/index.js
Outdated
Show resolved
Hide resolved
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 👍 I'd appreciate a quick check from design cc @jameskoster
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.
The inconsistent behavior of this button feels a bit awkward, and that's a shame. But it's important to acknowledge the feedback in #47583, and with one eye on the future I think it makes sense to merge this change.
450eaa2
to
7cf4947
Compare
I just cherry-picked this PR to the wp/6.2 branch to get it included in the next release: 0342acd |
Thank you @glendaviesnz for working on this PR! |
What?
Adds a backlink to the Design heading in the Site Editor browse mode nav panel
Why?
To provide a more obvious link back to the Dashboard
Fixes: #47583
How?
Adds a
Button
component with anhref
back to the Dashboard. ANavigatorBackButton
was not used as it does not have anhref
param and is designed for navigation within theNavigator
component only.Testing Instructions
Screenshots or screencast
Before:
After: