-
Notifications
You must be signed in to change notification settings - Fork 219
Add universal border radius for form elements and components #11193
Conversation
Script Dependencies ReportThere is no changed script dependency between this branch and trunk. This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
Size Change: -8.6 kB (-1%) Total Size: 1.48 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.
Thanks for working on this, @mikejolley. The majority of elements and components look good. That said, I noticed that the checkboxes are still using the old border radius. The corresponding SCSS code is located in
border-radius: 2px; |
This leads to this result:
I also wonder if we should apply the border radios to the country dropdown box: The corresponding SCSS code is located on woocommerce-blocks/assets/js/base/components/combobox/style.scss Lines 64 to 80 in 6bb21dc
If we'd apply the following code border-bottom-left-radius: $universal-border-radius;
border-bottom-right-radius: $universal-border-radius; |
@nielslange Ill add those changes once the other styling PRs merge because they'll conflict. |
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.
Look good Mike, good spot, 🚢 it
What
Adds a variable for a shared border radius property to make components more consistent across blocks. This is also now applied to the payment and shipping selector areas. I've replaced all radii of around 4px with this variable.
Fixes #11147
Why
Prevents the need to manual set border radius when working on new components and creates consistency.
Testing Instructions
Since this is visual I don't think it needs to be tested by global step.
Please consider any edge cases this change may have, and also other areas of the product this may impact.
Screenshots or screencast
WooCommerce Visibility
Required:
Checklist
Required:
[type]
label or a[skip-changelog]
label.Conditional:
[skip-changelog]
label is not present).Changelog