Skip to content

Commit

Permalink
Polish "Delete" modal (#63392)
Browse files Browse the repository at this point in the history
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
  • Loading branch information
3 people authored Jul 11, 2024
1 parent 8c6ccaf commit 387acef
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,18 @@ export function BlockRemovalWarningModal( { rules } ) {
>
<p>{ message }</p>
<HStack justify="right">
<Button variant="tertiary" onClick={ clearBlockRemovalPrompt }>
<Button
variant="tertiary"
onClick={ clearBlockRemovalPrompt }
__next40pxDefaultSize
>
{ __( 'Cancel' ) }
</Button>
<Button variant="primary" onClick={ onConfirmRemoval }>
<Button
variant="primary"
onClick={ onConfirmRemoval }
__next40pxDefaultSize
>
{ __( 'Delete' ) }
</Button>
</HStack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export default function NavigationMenuDeleteControl( { onDelete } ) {
setIsConfirmDialogVisible( false );
} }
confirmButtonText={ __( 'Delete' ) }
size="medium"
>
{ __(
'Are you sure you want to delete this Navigation Menu?'
Expand Down
2 changes: 2 additions & 0 deletions packages/editor/src/dataviews/actions/delete-post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const deletePostAction: Action< Post > = {
onClick={ closeModal }
disabled={ isBusy }
accessibleWhenDisabled
__next40pxDefaultSize
>
{ __( 'Cancel' ) }
</Button>
Expand All @@ -95,6 +96,7 @@ const deletePostAction: Action< Post > = {
isBusy={ isBusy }
disabled={ isBusy }
accessibleWhenDisabled
__next40pxDefaultSize
>
{ __( 'Delete' ) }
</Button>
Expand Down

0 comments on commit 387acef

Please sign in to comment.