-
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
Make the off-canvas navigation editor the default experience #46995
Conversation
Size Change: -116 B (0%) Total Size: 1.31 MB
ℹ️ View Unchanged
|
Flaky tests detected in 0a58d83. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4015879754
|
Can we please wait with merging this until the accessibility review is completed? |
An accessibility review has been done (see #46939), and as a result the following issues have been created: #47007 Some of these have been closed and others (the harder/bigger ones) are still being worked on. This PR removes the experiment flag so that all users of the plugin will see it. This will help us to get more feedback so that we can get this stable with the hope of landing it in WordPress 6.2. I think it would be good to merge this now, so that we can get this feedback ASAP. There are a couple of factors that mitigate the risk:
|
I'm for it. Let's get this moving. |
292af5c
to
8c908f5
Compare
@@ -243,20 +218,46 @@ function NavigationMenuSelector( { | |||
> | |||
{ __( 'Create new menu' ) } | |||
</MenuItem> | |||
{ isOffCanvasNavigationEditorEnabled && ( | |||
{ process.env.IS_GUTENBERG_PLUGIN ? ( // Show this if the plugin is active - previously used isOffCanvasNavigationEditorEnabled |
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.
We only have this comment here but we use IS_GUTENBERG_PLUGIN in other places too. Isn't it self explanatory?
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 main reason is so that if we have to do a find/replace on this branch of the code in the future the places we need to change will be easier to find.
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 happened in a different PR, so I don't think it should block this... |
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.
Seems like we can land this one and iterate. I'm not sure we need to worry about the Manage Menus button placement in this PR do we?
{ isOffCanvasNavigationEditorEnabled && parentNavBlockClientId && ( | ||
{ parentNavBlockClientId && ( |
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.
It does feel strange exposing this even though I believe it will only apply if there is a parent Nav block and thus won't appear for all blocks.
I feel we ought to have some indication that this is Nav block specific code inside the block editor package. A comment maybe?
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 condition does show it's nav block specific. it's also probably going away as soon as the overall effort to make these drill down panels easily configurable works out.
I am not blocking this but I STILL think we should remove the manage menus before making this the default editing experience.
3fe5ae0
to
025d050
Compare
What?
Removes the experimental flag on the off-canvas navigation editor and adds a new experimental option for the global navigation sidebar for the site editor since that piece is still experimental.
Why?
Closes #46938
How?
I went through each occurrence of where
window.__experimentalEnableOffCanvasNavigationEditor
was used and removed it and simplified the code where possible.The site editor global navigation sidebar was moved to its own experimental flag as that part is still experimental.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast