-
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
Navigation: Add a 'open list view' button #46335
Conversation
Size Change: +198 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
Thanks for including a video. This is a replacement for the "Edit" button, right? It makes sense to me, and the icon plus tab connective tissue is valuable. Seems like it could work, and would love @SaxonF to also see this. |
packages/edit-post/src/plugins/navigation-list-view-menu-item.js
Outdated
Show resolved
Hide resolved
Thanks for the ping @jasmussen . I don't feel too strongly about this though just including an "Edit menu" label might be clearer, at least to start with until the navigation block is more widely adopted? |
Since it's presumably easy to swap between the two, and I know these are seeing some testing by @annezazu, it seems we can pick one and then swap out if need be. In that light, I'd personally start with less (i.e. the icon), but not a strong opinion, and happy to refer to one. |
af50294
to
ad269d1
Compare
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 works as described.
Not your fault, but I find it disconcerting that we have code for adding stuff to the Nav block which has to live directly inside
- Site Editor
- Post Editor
It really should be possible to add the code within the block's directory itself and then register it to those locations.
It is possible, that was the way I did it at first, but then we tie the block to the edit-post and edit-site packages! |
ad269d1
to
1f6c135
Compare
2ab7fde
to
a804064
Compare
In the edit-post plugin, the component prevents the LinkUI from showing, which I don't understand, but removing it seems to fix the tests :/ |
4b2af15
to
e059227
Compare
Is this still a problem? You merged so I guess not? |
What?
This is a replacement for #45853.
This updates the list view button on the navigation block in the site editor to open the inspector controls, and also adds a new button to the navigation block in the post editor to open the inspector controls.
Why?
This is a bit controversial - on the one hand we shouldn't need a button to simply open the inspector controls. On the other hand, if users have the navigation block selected but they don't have the inspector controls open, this could be a useful prompt to open them.
How?
Adds a plugin to the edit-post package and updates the current list view button in edit-site.
Testing Instructions
5. Click the button and confirm it opens the inspector controls for the Navigation block:
6. Do the same test in the site editor
Testing Instructions for Keyboard
Screenshots or screencast
Dec-06-2022.17-01-10.mp4