-
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
Update radius #63447
Update radius #63447
Conversation
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
Size Change: +200 B (+0.01%) Total Size: 1.75 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.
Gave this a quick look and couldn't spot any major concerns.
I haven't checked yet if we missed any occurrences, and I haven't tested the code in Storybook and the editor.
$block-padding: 14px; // Used to define space between block footprint and surrouding borders. | ||
|
||
$radius-block-ui: $radius; |
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 add linter rules to prevent folks from using those. and eventually remove them from the package.
It will also help us to make sure we're not missing any occurrences in this refactor.
$radius-10: $radius * 1; | ||
$radius-20: $radius * 2; | ||
$radius-30: $radius * 3; | ||
$radius-full: $radius * 999; |
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.
Checking here that this is on purpose vs using values like 50%
or 100%
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.
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.
Sounds good, I just wanted to make sure the intended meaning of "full" radius 👌
radiusPrimitive: '4px', | ||
radiusSmallContainer: '8px', | ||
radiusLargeContainer: '12px', | ||
radiusFull: '999px', |
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.
Super nitty 😅 but technically radiusFull
should be 4 * 999 = 3996px
in order to mimic the sass counterpart
@@ -43,6 +43,11 @@ export default Object.assign( {}, CONTROL_PROPS, TOGGLE_GROUP_CONTROL_PROPS, { | |||
colorScrollbarTrack: 'rgba(0, 0, 0, 0.04)', | |||
elevationIntensity: 1, | |||
radiusBlockUi: '2px', |
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.
Should we remove radiusBlockUi
, since it's not exported from the package?
@ciampo do you have suggestions about how to ship a change like this? Should it be broken down into smaller pieces? I'm conscious of how many files are touched here. |
The more cautious way to introduce these changes would be to split the work across a few PRs:
What do you think? |
Sounds like a plan. |
Closing this in favor of a more iterative rollout. |
This PR implements the radius scale outlined in #63703. It is a proof of concept meant only to test different values in the proposed scale, applied across the app.