-
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
Site Editor: Clarify that the site icon is a back button using an animation #63986
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +3.76 kB (+0.21%) Total Size: 1.76 MB
ℹ️ View Unchanged
|
Flaky tests detected in 3fd252b. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10109616292
|
It's a little finicky, especially if the site icon is not 1:1 ratio. CleanShot.2024-07-26.at.09.03.20.mp4 |
I'm still not 100% sure that the The An alternative to try could be a |
It could work, but to me the action is a little more profound than opening a panel, like that icon suggests. I'm inclined to think that the label will inform the icon. Is "Open navigation" the right label? |
Can we get some consensus for a v1 here, happy to go with any direction. |
I like this idea too. |
How do set no-square icons as site icons. The site icon upload button forces me to crop the images to be square? |
I simplified the animation for the "w" icon. @jameskoster The issue of the instance change was caused by the I think this is shippable but I would personally argue that we should aim to simplify the animation further. Avoid clip path animation for instance, maybe we can avoid animating the icon itself and just make sure a back icon appears on top of it or something like that. |
If you use a non-square site logo and check "Use as site icon" in the Site Logo block options. Agree the animation can be tweaked separately. |
I wonder if this should be possible or if we should force the ratio somehow there as it's forced when you pick and site icon from the settings page. |
Probably not. |
@jameskoster Fixed the aspect ratio of non square site icons. |
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.
That fixed it 👍
There are several small details to potentially refine like the icon, tooltip/label, and animation. But to avoid holding this up they can be explored in follow-ups.
Followed up here: #64161 |
/* stylelint-disable -- Disable reason: View Transitions not supported properly by stylelint. */ | ||
view-transition-name: toggle; | ||
/* stylelint-enable */ | ||
position: fixed; |
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.
Something about this commit caused the icon to sit low in distraction free. Commenting here because removing the fixed position resolves it in my testing
Screen.Recording.2024-08-02.at.12.00.00.PM.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.
Good catch
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.
Fix in #64261
Looking into this after some vacation, I'm not sure this change helps in any way to clarify how to go back to navigation and exit the editor. A few observations:
It's worth reminding there's already an issue to discuss the overall usage of the WP logo / Site Icon in the editor. The inconsistent behavior between post editor and site editor doesn't help. It's not clear how to exit the site editor. I'd think more radical design changes are necessary to clarify the UI and improve the user experience and I'd encourage to explore alternative solutions in the context of #57813 |
const _context = getEditedPostContext(); | ||
const siteData = getEntityRecord( 'root', '__unstableBase', undefined ); |
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.
Did you add undefined
here intentionally or by accident?
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.
Hard to tell at this point 😬 I don't remember
This is extracted and reworked based on #58924
What?
The idea here is to add a hover animation to the site icon in the editor to clarify its role as a back button.
Notes
siteicon.mov
So while this is not perfect, it seems like a nice improvement over trunk.