-
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
Show the spacer block background on hover. #28129
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jasmussen
added
[Type] Enhancement
A suggestion for improvement.
[Feature] Full Site Editing
labels
Jan 12, 2021
Size Change: +90 B (0%) Total Size: 1.28 MB
ℹ️ View Unchanged
|
aristath
approved these changes
Jan 14, 2021
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.
LGTM 👍
Great enhancement, thank you! Spacer blocks are pretty hard to perceive, this PR makes things a lot easier.
youknowriad
added
[Block] Spacer
Affects the Spacer Block
and removed
[Feature] Full Site Editing
labels
Jan 14, 2021
youknowriad
changed the title
Try: Show spacer background even on hover.
Show the spacer block background on hover.
Jan 14, 2021
This was referenced Feb 22, 2021
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The spacer block is useful. But when you're in the site editor and hovering blocks, it doesn't appear visually as a spacer. This issue is inspired by this video: https://wordpress.slack.com/archives/C015GUFFC00/p1610073841174300, thank you to @brentjett @cdils.
This PR changes it so that the spacer background color is visible not just when you select the block, but when you hover it too.
Before:
After:
This is just one small step, and I would like to see global styles expanding the range of capabilities with regards to margins and paddings, so spacers can be used less. But in the mean time, this might improve things slightly.
Edit: the GIF recording tool did not capture the hover style at all, the compression was too high, so I replaced with screenshots.