-
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
Adds top toolbar improvements to site editor #49489
Adds top toolbar improvements to site editor #49489
Conversation
- wraps the edit post header in a slot fill provider - implements a temporary behavior that shows document tools when no block is selected - updates the block tools and parent selector to appear properly in the new place
…slot fill provider
- restores fixed toolbar on mobile viewports - adds hover states to toolbar toggles - adds the correct level up icon - moves CSS to the right files Co-authored-by: Joen A. <1204802+jasmussen@users.noreply.github.com> Co-authored-by: James Koster <846565+jameskoster@users.noreply.github.com>
Size Change: +2.88 kB (0%) Total Size: 1.35 MB
ℹ️ View Unchanged
|
Flaky tests detected in 8182479. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4566409911
|
Thanks for putting the PR together. It brings #29673 into stark visibility, but even with correct alignment it seems we wouldn't have enough space to accommodate everything nicely on smaller screens. The duplicated template part name is also awkward: I think this could use some design exploration to get right. |
We might want to fade out / hide that center element when a block is selected, at the very least on smaller viewport widths. |
That's an option, but if it becomes the way to invoke the Command Center in the full-screen editor as discussed, then it's importance goes up quite a bit, and I'd be a little nervous about hiding it. Perhaps we start with that though, and see how it feels? For the duplicated template part name issue, maybe we hide the one in the center element when top toolbar is enabled? We might be able to remove it altogether in the future. |
I'm thinking of it more as the top toolbar being entirely contextual. Just to visualize across the spectrum: That includes an in-exploration new document selector as mocked up by @SaxonF. |
So the premise is: because I selected a block, I'm working on that block, and won't want to invoke the command center during that process? That makes sense to me conceptually, but the idea of having to deselect a block before being able to invoke the command center (outside of the keyboard shortcut) seems a little bit unexpected. Especially if we can see per-block commands "make this text sound more formal" being added in the future. Still, probably fine in the short term 👍 |
b85ff40
to
0988ac3
Compare
Closed in favor of #49634 which also includes site editor in the update. |
Continues #47277
To make things easier to review this patch applies the top toolbar improvements to the site editor.
site-editor-improved-top-toolbar.mp4