-
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
Try read only navigation sidebar in browse mode #48971
Conversation
Size Change: +107 B (0%) Total Size: 1.34 MB
ℹ️ View Unchanged
|
Thanks for putting this together, it's helpful to get feel for how the panel would work without edit capabilities. A couple of notes:
nav.mp4If we could display the children of Page List that would help. I'm not sure how it would feel so perhaps something to try: being able to see blocs like Search might help, even if you can't do anything with them. It would clarify the connection between the sidebar and the frame a bit. They could be simply styled with no hover effects. We might do the same for Custom Links. |
@jameskoster I missed the page list from filtering great catch 😆 I will push a commit with this in. Edit: done in ae73512 - @jameskoster try your example now, the need to show non link blocks is less. I do agree I should try to stryle custom links so that they don't show pointer on hover. |
For me the most annoying part is that clicking on an item that has a chevron to expand, navigates instead of expanding! It's so easy to mistake click! |
Since this is read only, do we need to display the Page List parent / structure? The appearance is broken (Page List is selectable, children have odd background): Simply displaying the children as root level items would likely be better, and fix the chevron issue you mentioned (for Page List at least, submenus are another story).
It is less, but I still think it's worth a try, purely because it makes that connection with the frame 1:1. Crude example: |
Yes, I dislike the page list too showing up there like a parent ... I remember @jorgefilipecosta had an approach to hide it ... Edit: yes in #48725 we try to hide the parent - but only if the menu is only a page list. Given that the page list block could be filtered by parent ID this makes things a bit more complicated. |
One small detail we might consider here, since the menu items are read only: Adding a drilldown indicator (chevron) to the relevant items. Related: #48962 |
Given the work in #49043 which hides the navigation screen in core this exploration can be closed. |
What?
Alternative to #48933
Complementary to #48935
Makes the navigation in browse mode unable to edit the menu it displays. It works only as a way to browse through the site using the primary navigation menu which should be visible on the site already.
Why?
The editing experience in the navigation sidebar is very rough around the edges. The feature itself - being able to browse the website and edit each page you browse to - is extremely valuable in the site editor. However editing the navigation can be better accomplished using the navigation block.
We can follow up later on this feature and make it able to edit the navigation as well.
How?
For now, pretty hack-y:
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
read-only-navigation.mp4
👋🏻 @jorgefilipecosta this PR is pretty rough - I meant it as a way to see how having this as a last reasort feels. Not sure on my implementation choices.