-
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
Site Editor: Change ToolsMoreMenuGroup slot-fill name #36146
Conversation
Size Change: +6 B (0%) Total Size: 1.08 MB
ℹ️ View Unchanged
|
@gziolo, @youknowriad, can I get a second opinion on this PR? Do you think this is the correct way to solve the collision issue? Thanks |
@@ -10,7 +10,7 @@ import { createSlotFill, MenuGroup } from '@wordpress/components'; | |||
import { __ } from '@wordpress/i18n'; | |||
|
|||
const { Fill: ToolsMoreMenuGroup, Slot } = createSlotFill( | |||
'ToolsMoreMenuGroup' | |||
'EditSiteToolsMoreMenuGroup' |
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.
I personally think that those names should become private for the SlotFill and we only keep old names for backward comaptibility.
|
Thanks for the review, @gziolo. |
Cherry picked into the Gutenberg 11.9 release in: 1119b76 |
Description
Changes
ToolsMoreMenuGroup
SlotFill name toEditSiteToolsMoreMenuGroup
. This will help us to avoid collision with the edit post packages'ToolsMoreMenuGroup
.We need package-specific SlotFill to correctly add the "Keyboard shortcuts" and "Welcome Guide" modal menu items.'
Required for #21245 and #32844
How has this been tested?
Screenshots
Types of changes
Bugfix
Checklist:
*.native.js
files for terms that need renaming or removal).