Skip to content

Commit

Permalink
ConfirmDialog: Add __next40pxDefaultSize to buttons (#58421)
Browse files Browse the repository at this point in the history
* ConfirmDialog: Add `__next40pxDefaultSize` to buttons

* Update changelog
  • Loading branch information
t-hamano authored Jan 30, 2024
1 parent e6e0516 commit 7934adc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Enhancements

- `ConfirmDialog`: Add `__next40pxDefaultSize` to buttons ([#58421](https://github.com/WordPress/gutenberg/pull/58421)).

### Bug Fix

- `DateTime`: Add a timezone offset value for display purposes. ([#56682](https://github.com/WordPress/gutenberg/pull/56682)).
Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/confirm-dialog/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,15 @@ const UnconnectedConfirmDialog = (
<Text>{ children }</Text>
<Flex direction="row" justify="flex-end">
<Button
__next40pxDefaultSize
ref={ cancelButtonRef }
variant="tertiary"
onClick={ handleEvent( onCancel ) }
>
{ cancelLabel }
</Button>
<Button
__next40pxDefaultSize
ref={ confirmButtonRef }
variant="primary"
onClick={ handleEvent( onConfirm ) }
Expand Down

0 comments on commit 7934adc

Please sign in to comment.