-
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
CircularOptionPicker: Update Button sizes #67285
Conversation
@@ -67,8 +67,8 @@ $color-palette-circle-spacing: 12px; | |||
.components-circular-option-picker__option { | |||
display: inline-block; | |||
vertical-align: top; | |||
height: 100%; | |||
width: 100%; | |||
height: 100% !important; |
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.
Unfortunate override. Needs some kind of unstyled Button variant.
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.
Yeah, quite a bummer with these overrides. I think it would make sense to explore an unstyled variant at some point. Perhaps opening an issue is a good first step to keep it documented?
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.
Done ✅ #67320
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
@@ -47,6 +47,7 @@ export function ButtonAction( { | |||
}: WordPressComponentProps< ButtonAsButtonProps, 'button', false > ) { | |||
return ( | |||
<Button | |||
__next40pxDefaultSize |
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.
The other Button instance in this file doesn't need the prop because it is the link
variant.
Size Change: +13 B (0%) Total Size: 1.82 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.
LGTM 👍
Bummer those heavy style overrides exist, since we're currently just satisfying the linter without really doing much more. Definitely something to follow-up with at some point.
@@ -67,8 +67,8 @@ $color-palette-circle-spacing: 12px; | |||
.components-circular-option-picker__option { | |||
display: inline-block; | |||
vertical-align: top; | |||
height: 100%; | |||
width: 100%; | |||
height: 100% !important; |
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.
Yeah, quite a bummer with these overrides. I think it would make sense to explore an unstyled variant at some point. Perhaps opening an issue is a good first step to keep it documented?
Flaky tests detected in aa80495. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12034833965
|
In preparation for #65751
What?
Update
Button
sizes inCircularOptionPicker
so they are ready for the 40px default size.Testing Instructions
See the Storybook stories for CircularOptionPicker. There should be no visual changes except for the size of the Clear button in the "With Button Action" story.