-
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
Site Editor Sidebar: display preview in the frame when hovering mouse over a page #50647
Site Editor Sidebar: display preview in the frame when hovering mouse over a page #50647
Conversation
…review the page in the editor by fiddling with the history stack. The downside is that the event adds to the stack and I don't believe there's a documented way to remove items.
Size Change: +62 B (0%) Total Size: 1.39 MB
ℹ️ View Unchanged
|
This looks interesting! |
It's only anecdotal, but I've helped a few people building websites on WordPress.com recently, and they've all asked why we don't display the pages in the frame on hover. This seems like a handy affordance to me, and helps set some expectations around what will happen when you click the page. We can potentially apply the same behavior in the Templates / Parts panels too. |
My general rule, if I want to look at something, I will click on it. May not be an accessibility issue, just not UX I would find useful. |
What?
This is an experiment to test the UX of hovering/focus over page items to preview the page in the editor (view mode).
See:
Why?
To play around with it.
How?
By fiddling with the history stack.
Thoughts
Testing Instructions
First make sure you have a few pages on your site.
Run this a few times if you're like me:
wp post create --post_type=page --post_title="A new post" --post_status='publish'
Head over to the site editor and navigate to the Site Editor (Appearance > Editor)
In the sidebar, click on "Pages", and then hover over the items.
See what happens.
The page should load in the editor.
Clicking on the page item should take you to the single page route in the sidebar.
Play with the browser's back button.
Testing Instructions for Keyboard
When navigating the page list using a keyboard, the pages should load in the browser
onFocus
as well.Screenshots or screencast
2023-05-16.13.10.26.mp4