-
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
Group Block: Add border radius #27665
Conversation
Size Change: +19 B (0%) Total Size: 1.3 MB
ℹ️ View Unchanged
|
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.
Working well. 👍
The direction regarding border radius block support and new sidebar controls/panels has changed. Until the new sidebar controls & component system lands, the preferred approach is to allow this sort of functionality via theme.json and attributes only, avoiding adding new panels or controls to the editor sidebar. Given this PR is just a simple opt-in for the block support, the code hasn't changed, but the method of testing this should. The testing instructions have been updated accordingly. |
095ef45
to
610f8d7
Compare
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.
Retested and confirmed this is working as expected. 👍
610f8d7
to
a9798b9
Compare
I've rebased and re-run tests on this PR. The failing e2e test appears unrelated and looks to have also been failing for a fair few other commits onto master. So I'll proceed with merging this.
|
@aaronrobertshaw do you happen to know whether this work is available in WordPress 5.8 proper please? Because, I can not get anything to work with Group block and border in Based on your merge timeline and the release of WordPress 5.8 then I'm assuming it was rolled in to WP 5.8, but I'm not privy to how to truly figure that out (beside making assumptions based on time stamps 😄 ) |
Hi @colorful-tones 👋 The border block support is still officially experimental. For that reason, it didn't land in WP 5.8. The behaviour you describe is to be expected. If you wish to leverage border support, you'll need to also use the Gutenberg plugin until it lands in a WordPress release. The theme.json docs outline the currently available settings in both WordPress core and Gutenberg. I hope that helps!
|
Thanks for the clarification @aaronrobertshaw 👍 |
Fixes: #26556
Description
Opts into border radius support for the group block.
How has this been tested?
Manually.
Testing Instructions
lib/experiment-default-theme.json
file into your active theme's root folder asexperimental-theme.json
core/group
context to your current theme.json file from step 2. It must be a top level property in the JSON as perglobal
.border.customRadius
flagNote:
Instead of turning on the sidebar controls, the border radius attribute can be set via the code editor and the following block code.
Screenshots
Editor:
Frontend:
Types of changes
Enhancement/New Feature
Checklist: