-
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
OffCanvasEditor: Only allow some blocks to be converted to submenus #47974
Conversation
Size Change: +52 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Flaky tests detected in 05666e2. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4173111874
|
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.
This change makes perfect sense, thank you for fixing this 👏🏻
I restarted some of the tests. |
packages/block-editor/src/components/off-canvas-editor/leaf-more-menu.js
Outdated
Show resolved
Hide resolved
packages/block-editor/src/components/off-canvas-editor/leaf-more-menu.js
Outdated
Show resolved
Hide resolved
packages/block-editor/src/components/off-canvas-editor/leaf-more-menu.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!
…re-menu.js Co-authored-by: Dave Smith <getdavemail@gmail.com>
449e708
to
05666e2
Compare
…47974) * OffCanvasEditor: Only allow some blocks to be converted to submenus * make the option disabled * Update packages/block-editor/src/components/off-canvas-editor/leaf-more-menu.js Co-authored-by: Dave Smith <getdavemail@gmail.com> --------- Co-authored-by: Dave Smith <getdavemail@gmail.com>
I just cherry-picked this PR to the wp/6.2 branch to get it included in the next release: 6786a14 |
What?
The "Add submenu item" option should only be available for navigation link and navigation submenu blocks. Fixes #47971
Why?
It's not possible to convert other blocks to navigation submenus.
How?
Adds an allow list of blocks that can be converted.
Testing Instructions
Screenshots or screencast