-
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
Connected/synced blocks: show backdrop across all #65911
base: trunk
Are you sure you want to change the base?
Conversation
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. |
Thank you for adding this Joen. This will be helpful. |
Size Change: +50 B (0%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
To be clear, the motivation here is to apply identical treatment to any block that is "connected" in any capacity whatsoever. To that end, it would be both synced patterns, blocks with bindings, and sure, even template parts. How would you feel about this treatment being applied to that as well? (Good catch.) |
Down the road I reckon it might be worth exploring an iteration that distinguishes between partially synced/connected and fully-synced. But that doesn't need to hold this up :) |
Is it worth landing this one, then? Not with urgency, it's not going to be a 6.7 thing, just wondering. |
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 should probably include template parts in the post editor before merging, no? |
Oh yes, good catch, I'll do that. |
What?
Followup to #65233. Show the connected block "backdrop" across synced blocks as well. Before:
After:
Why?
The main purpose of the backdrop is to provide further differentiation between standard blocks and special blocks. Whether synced or connected to data sources, both types are "special", and differentiating further between the two may not be worth it.
Testing Instructions
Test connected, default, and synced blocks, be sure to test the focus style which should be unchanged. An easy way to test a connected block is to drop this in your functions.php:
Then go add the random_image source to your Image block.