-
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: Revisit the appearance of of hover outlines for blocks #44776
Comments
Since the outlines will still appear in the Select mode, I would vote for the option that removes the borders. It would be great to have a keyboard shortcut to switch back and forth between modes easily. |
Agreed. I find them noisy/distracting for sure. What’s the purpose of the different interactions here, between the site and block editors? Because of the header/footer parts? |
Personally I find the hover outlines to be very useful when working with the more complex layouts we tend to find in templates. Consider the gif below: Here the outlines are critical in helping me determine which block will be selected on click. Though I would say that they (the outlines) do not need to persist on selection. |
Any preference on the attached PRs? Or do we need to try a different direction? |
Oh that's interesting. That could be worth a shot. I also think we're at a point where we can kill the floating inserter button, don't you think? |
The black one? Potentially, yes! |
Rebased both PRs and recorded fresh GIFs in a gray theme that may be more representative. Just to compare, here's trunk: PR #44774
Subtle outlines: PR #44775
Inverted outlines: Just a quick experiment, didn't work well at all since the selected style overlaps with focused style. But nevertheless showing for comparison: 1.5px hover, 1px selected. No selected outline: Just to try what we discussed, no outline for the selected state: It doesn't really work that well in practice, because there's still an outline on block focus. So it just means the outline disappears when selecting outside. So at this point, I think we might need to do curate and refine what we have, and perhaps revisit at a later time. For example, an easier way to deselect all blocks (click header, etc.), changes to select mode, and further refinements to when/how often the sibling inserter appears. What do you think? |
Yeah I agree. It feels like we should take a comprehensive look at everything that selecting a block entails. With the site editor there are so many nuances to consider... getting it right will require a deeper dive. |
Just leaving a note here for when we revisit. Another argument for the borders is that they help to clarify the space a block occupies within a layout: This will be relevant when we get to merging #45364 and other advanced layout tools. |
If anything, I would want more hover borders for blocks (especially container-type blocks) everywhere in the Gutenberg editor (when editing a page or post for example), not less; as it is currently, it is very difficult to be able to "spot" invisible interactive elements (including spacers, columns, groups, rows, stacks, etc.). Is there a ticket specifically about that problem? |
Agree here, though you're almost always with a selected block in the site editor. This here is quite distracting: CleanShot.2023-12-07.at.14.55.03.mp4 |
I think that is more related to the menu and could be resolved when the block tools menu switches to the new component. First menu here is the current component, second is the new one: menus.mp4 |
When editing in the site editor, there are block boundary outlines shown on hover, in addition to select:
Notably the hover outlines can feel a bit noisy and distracting at times. Should we remove them? This draft PR explores doing so:
An alternate approach is to reduce the emphasis of the outlines, make them less distracting This draft PR explores just that, with thin text-color outlines:
Try the PRs out, get a feel for it. What's a good configuration of these? Keep in mind, we can adjust:
Note, for color it's probably best to lean towards text-color or theme color, as arbitrary colors can blend into backgrounds otherwise.
The text was updated successfully, but these errors were encountered: