Skip to content

Commit

Permalink
BorderControl: Use __next40pxDefaultSize prop for Reset button (#65682
Browse files Browse the repository at this point in the history
)

* BorderControl: Use __next40pxDefaultSize prop for Reset button

* CHANGELOG

Co-authored-by: tyxla <tyxla@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>
  • Loading branch information
3 people authored Sep 26, 2024
1 parent 3fd5a61 commit 1cfb070
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- `DatePicker`: Use compact button size. ([#65653](https://github.com/WordPress/gutenberg/pull/65653)).
- `Navigator`: add support for exit animation ([#64777](https://github.com/WordPress/gutenberg/pull/64777)).
- `Guide`: Update finish button to use the new default size ([#65680](https://github.com/WordPress/gutenberg/pull/65680)).
- `BorderControl`: Use `__next40pxDefaultSize` prop for Reset button ([#65682](https://github.com/WordPress/gutenberg/pull/65682)).

## 28.8.0 (2024-09-19)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ const BorderControlDropdown = (
onReset();
onClose();
} }
__next40pxDefaultSize
>
{ __( 'Reset' ) }
</Button>
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/border-control/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ export const resetButton = css`
border-top: ${ CONFIG.borderWidth } solid ${ COLORS.gray[ 400 ] };
border-top-left-radius: 0;
border-top-right-radius: 0;
height: 40px;
}
`;

Expand Down

0 comments on commit 1cfb070

Please sign in to comment.