Skip to content

Commit

Permalink
CircularOptionPicker: Update Button sizes (#67285)
Browse files Browse the repository at this point in the history
* CircularOptionPicker: Update Button sizes

* Add changelog

* Update snapshot

* Fixup changelog

Co-authored-by: mirka <[email protected]>
Co-authored-by: tyxla <[email protected]>
  • Loading branch information
3 people authored Nov 26, 2024
1 parent de7b09b commit 8c34d91
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ exports[`ColorPaletteControl matches the snapshot 1`] = `
<button
aria-label="Color: red"
aria-selected="true"
class="components-button components-circular-option-picker__option"
class="components-button components-circular-option-picker__option is-next-40px-default-size"
data-active-item="true"
id="components-circular-option-picker-0-0"
role="option"
Expand Down Expand Up @@ -247,7 +247,7 @@ exports[`ColorPaletteControl matches the snapshot 1`] = `
class="components-circular-option-picker__custom-clear-wrapper"
>
<button
class="components-button components-circular-option-picker__clear is-tertiary"
class="components-button components-circular-option-picker__clear is-next-40px-default-size is-tertiary"
type="button"
>
Clear
Expand Down
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
- `ColorPicker`: Update sizes of color format select and copy button ([#67093](https://github.com/WordPress/gutenberg/pull/67093)).
- `ComboboxControl`: Update reset button size ([#67215](https://github.com/WordPress/gutenberg/pull/67215)).
- `Autocomplete`: Increase option height ([#67214](https://github.com/WordPress/gutenberg/pull/67214)).
- `CircularOptionPicker`: Update `Button` sizes to be ready for 40px default size ([#67285](https://github.com/WordPress/gutenberg/pull/67285)).

### Experimental

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function ButtonAction( {
}: WordPressComponentProps< ButtonAsButtonProps, 'button', false > ) {
return (
<Button
__next40pxDefaultSize
className={ clsx(
'components-circular-option-picker__clear',
className
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export function Option( {
const commonProps = {
id,
className: 'components-circular-option-picker__option',
__next40pxDefaultSize: true,
...additionalProps,
};

Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/circular-option-picker/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
aspect-ratio: 1;
border: none;
border-radius: $radius-round;
background: transparent;
Expand Down

0 comments on commit 8c34d91

Please sign in to comment.