-
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
Remove actions from SidebarNavigationScreenWrapper #48935
Conversation
Size Change: -162 B (0%) Total Size: 1.34 MB
ℹ️ View Unchanged
|
The PR tests well, and the + icon is indeed removed. However, now I don't know if this is the best approach if users can still edit menu items using the three dots icon on each item. I think if we are going to remove the + icons, we might need to also remove all link editing functionality from the Navigation panel. 🤔 |
Just tested with this PR and while it does properly remove the inserter (nicely done), I agree that we should also limit what can be done to each item as Nick points out above. Of note, there are more issues found here including lack of clarity around which menu is shown #48897, an overstretched view of a menu item with extra characters in the URL, and a strange UX/copy when there's no navigation items in place: navigation.browse.mode.mov |
This is not related to this PR specifically, but I just ran into another issue around submenus in the Navigation Panel. See the video below. This strengthens my suggestion to remove all editing functionality for 6.2. It can and should stay in Gutenberg for further iteration, but I am concerned about 6.2. submenu-issues.mov |
|
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 code changes look good to me and work as advertised. The inserter is removed from the sidebar navigation as expected.
After this, PR is backported in 6.2. We should add the inserter back in the Gutenberg plugin and decide what type of inserter we want. If we want to show a block list normally or automatically insert page links like I'm proposing at #48745.
I just cherry-picked this PR to the wp/6.2 branch to get it included in the next release: 9708fc4 |
For me in custom-link-sidebar-nav.mp4 |
This PR just removes the + from the top — reducing the flow of adding a link, then not being able to customize it. If you add the link elsewhere (i.e. off canvas) then you customize it when you add. |
What?
The current flow of editing existing navigation items within the Site Editor sidebar navigation has a number of rough edges, as indicated in these issues: #48675, #48593, #48612, #48741
We don't have time to refine those further before the WordPress 6.2 release, but we can reduce the likelihood of friction by temporality removing the ability to add new blocks to the navigation (from the sidebar view).
How?
Removes the actions passed in the SidebarNavigationScreenWrapper.
Testing Instructions
Screenshots or screencast
Before:
After: