-
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
Move view site button next to site title #51852
Conversation
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 one! Having the open external link next to the site title creates the association to the site (title).
Size Change: +11 B (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
Thanks @paaljoachim! Let's hold on a merge for a bit though; I would like to get additional feedback before pushing it in. |
In the latest Gutenberg, View Site link is always visible and the position has been adjusted slightly. Is this PR still valid for the current Gutenberg trunk? |
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. |
Can work. Not sure it's better, the big external link icon feels like an icon button that should sit on the right next to other icon buttons. Separately, I have a feeling lots of sites "in the wild" have very long titles. In fact trunk at the moment doesn't handle this too well: It's possible MacRumors uses the tagline to contextually show the verbose description, but the possibility of very long titles remains. How this is handled is something good to consider. Would the external link bump up against the loupe and stay put, causing the title to wrap from that point on? Would the text be elided? If the need is to free up that space for another icon button, another option is this. Resting state: Hover state: That would change the icon button to a glyph and feel part of the title instead. |
I'd echo Joen; it seems sensible to do one or the other:
Iirc, when this was initially implemented the argument against making the title a link was; it might end up feeling like a label for the site icon button, and that the two elements having different behaviours could be unexpected. I don't have a strong feeling about that personally, but wanted to raise it as a valid concern. Separate hover effects for each could help mitigate any confusion there. |
#60885 was submitted to display a fallback URL when the site title does not exist. Once this is merged, the site title text is guaranteed to always be visible, so the above approach should be fine. |
@jasmussen What do you think of this? CleanShot.2024-04-30.at.13.28.27.mp4 |
I spun up #61258 to explore as this effort is quite old. |
I think that can work. |
I'll close this in favor of #61258 then. |
What?
An alternative at the placement of the external link within the site hub.
Other follow-ups could be to make the site title a link itself, and perhaps reduce the externalLink icon to only show up when hovering the site title itself.
Testing Instructions
Screenshots or screencast
Before:
CleanShot.2023-06-23.at.09.57.24.mp4
After:
CleanShot.2023-06-23.at.09.53.55.mp4