-
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
Theme JSON: Add border radius to the theme styles schema #27791
Theme JSON: Add border radius to the theme styles schema #27791
Conversation
Size Change: +5 B (0%) Total Size: 1.28 MB
ℹ️ View Unchanged
|
The direction for this has changed for the time being. 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. This PR has been updated to opt-out of This approach should still allow for themes and patterns to provide border radii. |
e35cb5c
to
806f210
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.
Nice work here, it's working as advertised and the UI controls aren't shown unless a theme explicitly wants them.
I've also noticed that we have a border-radius control for the button block. As a follow-up to this PR it'd be nice to migrate the button block to use the hook instead. |
Thanks for the review 👍
I'm in the process of adding this border radius support to a few blocks (group, image & search), I'll include a PR for switching the buttons block to use the new hook. |
Description
How has this been tested?
Manually.
experimental-default-theme.json
with a new block context adding a style for border radius.wp-block-group
CSS classScreenshots
Editor:
Frontend:
Types of changes
Bug fix
Checklist: