-
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
Synchronize the sidebar state in the url #46433
Conversation
Size Change: +55 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
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.
Nice! Works for me.
If you can get a pair of eyes on the code, it would be good.
f0e9de9
to
45bdb9a
Compare
45bdb9a
to
87166aa
Compare
When I exit edit mode, I now land in the right section, but I still expect the current template to be selected instead of the back button? |
It should be the case? |
Unrelated: would be nice to be able to click a preview to edit it. |
@ellatrix You mean "focused" maybe? It's not really clear to me what should be focused, I guess right now, it's just the first element in the sidebar. |
@youknowriad This is what I'm seeing: |
I know "double clicking" was being considered, but I also know that the idea is that ultimately, you'd be able to actually navigate the site when you click the preview. |
@ellatrix That's because you've clicked "browse all templates" which navigates to another page (the browse all templates page), so this new page is what is selected on the sidebar, if you click the "w" button instead, your current template will be selected. Potentially, we should consider updating what the "browse all templates" does. Maybe it shouldn't go to that view (all templates) but instead just opens the sidebar. |
Follow-up to #45100
What?
This PR does two things:
Testing Instructions
1- Navigate the site editor
2- Notice that when you exit the "edit" mode, you're back in the same state of the sidebar that was before entering the "edit" mode.