-
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
[WIP] Border Radius Support: Allow zero, min and max border radius values #28541
Conversation
This still needs access to Global Styles border radius value to better set the control value when its reset button is pressed. Current workaround for demo purposes is adding a default value to the theme.json settings.
Size Change: +59 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
This PR is testing well for me manually, and the
I see what you mean. In gutenberg/lib/global-styles.php Line 246 in b0d4e1f
Alternately, Is it possible to try to use the |
Thanks for taking a look at this one!
I did try using the The more styles added via block support and configurable via global styles the more reason I see to have this available in the core block editor. Being able to handle the default values correctly certainly reduces unexpected behaviour in the UI for users. |
I might be misremembering this but I think those were actual CSS styles so not exactly easy to extract the theme.json set value from. |
Closing this trial PR.
|
Description
Issues with this approach
defaultRadius
value to the theme.json settings for the block context. Assuming that matches the style value, then the reset would appear to work correctly.How has this been tested?
Manually.
Testing instructions
0
value border radius and it takes affect.Screenshots
Types of changes
Bug fix.
Checklist: