-
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
Update the document title in the site editor to open the command tool #50369
Conversation
Fast work, nice bootstrap! @jameskoster what are good next steps? |
Size Change: -1.51 kB (0%) Total Size: 1.4 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.
Thanks Riad, this looks good!
I was wondering if the removed info from that heading section is still considered valuable and if we plan on moving them to a different place of the UI or not.
Also one small nitpick is that the heading seems like a button
but only part of it is. Should we have the icon inside the button?
The reason I chose to do this is because (as shown in the screenshot in the description) we do want to add other buttons within that piece of UI (like the preview icon on the right).
I've confirmed with designers that this is the direction we want to go and that the info/UI there might not be as necessary as it used to be. |
We need an issue to capture the full scope of the document title, #48641 can potentially serve that purpose. This PR is working well, a couple of minor requests:
We also need to nail down which commands to show as suggestions when opening the command center in this context. But I assume that would be something to tackle separately? |
We can't especially since I assume we want to use text-ellipsis. We would have been able to center it using position absolute for the left/right buttons but since we don't know the width of these buttons, we don't know how much space we can use for the title in the middle.
The icon in the designs is gray, I'm happy to update if there's consensus here though.
Specially, the most important part for me here, is the behavior we want for these contextual commands. What happens when I hit |
Provided some feedback here re post type icon and ensuring this works with the content vs template changes |
This only works because we don't have anything on the left, but we know we can show the page title there which width is variable. This is why I chose not to solve this "virtually". |
ca3fb41
to
f06af5c
Compare
Flaky tests detected in 5b74050. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5001270263
|
f06af5c
to
483b752
Compare
We can in this PR of course, but when we'll introduce "back" buttons... we won't be anymore because we can't have buttons within buttons
Sure
Sure |
@jameskoster that should be fixed now. |
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.
Thanks.
I added a little bit of space around the button to provide some separation between it and other tools on small screens.
Seems good to go now.
1e84e49
to
d6be278
Compare
Nice to see the red cleanup as well :) |
…dd/static-closures * 'trunk' of https://github.com/WordPress/gutenberg: (26 commits) Add transparent outline to input control BackdropUI focus style. (#50772) Added wrapper element for RichText in File block (#50607) Remove the experimental flag of the command center (#50781) Update the document title in the site editor to open the command center (#50369) Remove `unwrap` from transforms and add `ungroup` to more blocks (#50385) Add new experimental version of DropdownMenu (#49473) Force display of in custom css input boxes to LTR (#50768) Polish experimental navigation block (#50670) Support negation operator in selectors in the Interactivity API (#50732) Minor updates to theme.json schema pages (#50742) $revisions_controller is not used. Let's delete it. (#50763) Remove OffCanvasEditor (#50705) Mobile - E2E test - Update code to use the new navigateUp helper (#50736) Try: Smaller external link icon (#50728) Block Editor: Remove unused 'useIsDimensionsSupportValid' method (#50735) Fix flaky media inserter drag-and-dropping e2e test (#50740) docs: Fix change log typo (#50737) Edit Site: Fix `useEditedEntityRecord()` loading state (#50730) Fix labelling, description, and focus style of the block transform to pattern previews (#50577) Fix Global Styles sidebar block selection on zoom out mode (#50708) ...
What?
Now that we have a command center, we need to improve its discoverability. The idea of this PR is to update the document title a little bit to be able to trigger the command center from there. It has been tossed around several times that this area should become something close to the url bar of the browser. This is kind of a step in that direction.
At the moment I've implemented the following changes:
The next steps will be:
Testing instructions