Skip to content

Commit

Permalink
CustomGradientPicker: Prepare Buttons for 40px default size
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Nov 25, 2024
1 parent 08d8b86 commit 0cb1c06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function ControlPointButton( {
aria-describedby={ descriptionId }
aria-haspopup="true"
aria-expanded={ isOpen }
__next40pxDefaultSize
className={ clsx(
'components-custom-gradient-picker__control-point-button',
{
Expand Down Expand Up @@ -349,6 +350,7 @@ function InsertPoint( {
} }
renderToggle={ ( { isOpen, onToggle } ) => (
<Button
__next40pxDefaultSize
aria-expanded={ isOpen }
aria-haspopup="true"
onClick={ () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/custom-gradient-picker/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ $components-custom-gradient-picker__padding: $grid-unit-20; // 48px container, 1
// Same size as the .components-custom-gradient-picker__control-point-dropdown parent
height: inherit;
width: inherit;
min-width: $grid-unit-20;
min-width: $grid-unit-20 !important;
border-radius: $radius-round;

background: $white;
Expand Down

0 comments on commit 0cb1c06

Please sign in to comment.