-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Connected blocks, add backdrop-color. #65233
Conversation
Size Change: +459 B (+0.03%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
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. |
CC: @WordPress/gutenberg-design, this is not a huge change, it's just a tweak to the existing purple connection color for bound blocks. |
Excellent point. Agreed, and done. |
I'd be curious to try this—the slightly stronger signal makes it more clear at a glance that the block is in a special state. |
There seems to be a scale animation ( Looks good otherwise. |
I agree this looks like an improvement to the current UX. In my tests, it seems the pattern overrides icon doesn't change. Should these styles be applied there? EDIT: If wanted, this could potentially be solved using something like this I believe: .components-button:has( .block-editor-block-icon )::before Additionally, I am not sure if it is on purpose, but I agree the animation feels a bit weird. |
Thanks for all the feedback. I'm back from a bit of AFK and catching up.
Wouldn't that conflict with Aki's feedback, which I agreed with, here? |
I'm not sure I follow that feedback. What I was trying to see is as follows:
|
I think the purple color will be displayed in one of the following situations:
Isn't the purpose of this PR to visually distinguish only connected blocks? Also, I remember that connected blocks used to have a special icon on their toolbar. I don't know why this icon was removed, but instead of adding a background color, would bringing this icon back be another approach? |
Ah, my apologies, I did miss nuance. I don't know that I necessarily agree, though I also don't disagree. Is it a blocker for this PR, though, given the inspector does not use the purple color at all, at the moment?
I think of these as different.
Exactly, this is a slight differentiation. Note, this is a small PR, easy to tune/tweak. Let me know if I'm missing a beat! |
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.
We can iterate. I'm happy with the enhancement for the toolbar 😄
@jasmussen, happy to include in WP 6.7?
Would love it, yes. Thank you. |
@noisysocks and @kevin940726, not sure if it auto-syncs to |
Co-authored-by: jasmussen <[email protected]> Co-authored-by: gziolo <[email protected]> Co-authored-by: t-hamano <[email protected]> Co-authored-by: mtias <[email protected]> Co-authored-by: jameskoster <[email protected]> Co-authored-by: SantosGuillamot <[email protected]>
I just cherry-picked this PR to the wp/6.7 branch to get it included in the next release: 33b287a |
What?
Alternative to #65199. Adds a purple backdrop to the icon itself, so it's easier to tell at a glance.
Before:
After: