From 387acefdeb14d4d8aeb2885b840c2ffa50562b64 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Thu, 11 Jul 2024 14:29:03 +0900 Subject: [PATCH] Polish "Delete" modal (#63392) Co-authored-by: t-hamano Co-authored-by: Mamaduka --- .../components/block-removal-warning-modal/index.js | 12 ++++++++++-- .../edit/navigation-menu-delete-control.js | 1 + .../editor/src/dataviews/actions/delete-post.tsx | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/block-removal-warning-modal/index.js b/packages/block-editor/src/components/block-removal-warning-modal/index.js index fca8098c4cd398..2f716e875fb604 100644 --- a/packages/block-editor/src/components/block-removal-warning-modal/index.js +++ b/packages/block-editor/src/components/block-removal-warning-modal/index.js @@ -53,10 +53,18 @@ export function BlockRemovalWarningModal( { rules } ) { >

{ message }

- - diff --git a/packages/block-library/src/navigation/edit/navigation-menu-delete-control.js b/packages/block-library/src/navigation/edit/navigation-menu-delete-control.js index 567e2a79abf4e5..dcef345581a765 100644 --- a/packages/block-library/src/navigation/edit/navigation-menu-delete-control.js +++ b/packages/block-library/src/navigation/edit/navigation-menu-delete-control.js @@ -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?' diff --git a/packages/editor/src/dataviews/actions/delete-post.tsx b/packages/editor/src/dataviews/actions/delete-post.tsx index e6af8e963d5878..381c2964f943f6 100644 --- a/packages/editor/src/dataviews/actions/delete-post.tsx +++ b/packages/editor/src/dataviews/actions/delete-post.tsx @@ -78,6 +78,7 @@ const deletePostAction: Action< Post > = { onClick={ closeModal } disabled={ isBusy } accessibleWhenDisabled + __next40pxDefaultSize > { __( 'Cancel' ) } @@ -95,6 +96,7 @@ const deletePostAction: Action< Post > = { isBusy={ isBusy } disabled={ isBusy } accessibleWhenDisabled + __next40pxDefaultSize > { __( 'Delete' ) }