-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 support for hiding breadcrumbs in the Site Editor #49518
Conversation
Size Change: +235 B (0%) Total Size: 1.34 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.
Looks good. One final step would be to add a default value for this preference here:
gutenberg/packages/edit-site/src/index.js
Lines 62 to 70 in c60c26c
dispatch( preferencesStore ).setDefaults( 'core/edit-site', { | |
editorMode: 'visual', | |
fixedToolbar: false, | |
focusMode: false, | |
keepCaretInsideBlock: false, | |
welcomeGuide: true, | |
welcomeGuideStyles: true, | |
showListViewByDefault: false, | |
} ); |
At the moment it'll be hidden by default once this PR is merged as the default is undefined
. Even if it should stay hidden by default it'd be good to set an explicit false
in the code above.
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.
Confirmed working as expected. LGTM after the changes from Dan are made 👍
Matches functionality of the post editor
Flaky tests detected in 83963cd. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4602013788
|
What?
Adds a preference to turn off block breadcrumbs within the footer of the Site Editor.
Why?
The Block Editor supports hiding of the block breadcrumbs; the Site Editor should as well.
How?
showBlockBreadcrumbs
to the Site Editor Preferences panel.showBlockBreadcrumbs
before rendering the breadcrumbs.Testing Instructions
Screenshots or screencast
CleanShot.2023-03-31.at.14.31.32.mp4