From df9f8579bf65b7811e0f125f26dbe720bbbb608f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=86?= <31400297+ddryo@users.noreply.github.com> Date: Mon, 18 Dec 2023 15:59:12 +0900 Subject: [PATCH] Replace isSmall prop #53560 (#53599) Co-authored-by: Lena Morita --- packages/block-editor/src/components/block-card/index.js | 2 +- .../src/components/border-radius-control/linked-button.js | 2 +- .../src/components/image-size-control/index.js | 7 +++++-- .../input-controls/spacing-input-control.js | 2 +- .../block-library/src/cover/edit/inspector-controls.js | 2 +- packages/block-library/src/search/edit.js | 2 +- .../border-box-control-linked-button/component.tsx | 2 +- .../border-control-style-picker/component.tsx | 2 +- packages/components/src/box-control/index.tsx | 2 +- packages/components/src/box-control/linked-button.tsx | 2 +- packages/components/src/color-picker/color-copy-button.tsx | 2 +- packages/components/src/font-size-picker/index.tsx | 2 +- packages/components/src/navigation/menu/menu-title.tsx | 2 +- packages/components/src/number-control/index.tsx | 4 ++-- packages/components/src/palette-edit/index.tsx | 6 +++--- packages/components/src/range-control/index.tsx | 2 +- 16 files changed, 23 insertions(+), 20 deletions(-) diff --git a/packages/block-editor/src/components/block-card/index.js b/packages/block-editor/src/components/block-card/index.js index fd89697a54c5d7..4b5478485d87a3 100644 --- a/packages/block-editor/src/components/block-card/index.js +++ b/packages/block-editor/src/components/block-card/index.js @@ -56,7 +56,7 @@ function BlockCard( { title, icon, description, blockType, className } ) { { minWidth: 24, padding: 0 } } icon={ isRTL() ? chevronRight : chevronLeft } - isSmall + size="small" /> ) } diff --git a/packages/block-editor/src/components/border-radius-control/linked-button.js b/packages/block-editor/src/components/border-radius-control/linked-button.js index 5d8443e57629e2..82752c91de6470 100644 --- a/packages/block-editor/src/components/border-radius-control/linked-button.js +++ b/packages/block-editor/src/components/border-radius-control/linked-button.js @@ -13,7 +13,7 @@ export default function LinkedButton( { isLinked, ...props } ) { diff --git a/packages/block-editor/src/components/spacing-sizes-control/input-controls/spacing-input-control.js b/packages/block-editor/src/components/spacing-sizes-control/input-controls/spacing-input-control.js index 7ef5c17f82943c..c2b6ae30de7ac9 100644 --- a/packages/block-editor/src/components/spacing-sizes-control/input-controls/spacing-input-control.js +++ b/packages/block-editor/src/components/spacing-sizes-control/input-controls/spacing-input-control.js @@ -317,7 +317,7 @@ export default function SpacingInputControl( { setShowCustomValueControl( ! showCustomValueControl ); } } isPressed={ showCustomValueControl } - isSmall + size="small" className="spacing-sizes-control__custom-toggle" iconSize={ 24 } /> diff --git a/packages/block-library/src/cover/edit/inspector-controls.js b/packages/block-library/src/cover/edit/inspector-controls.js index 38757f90c2deec..4aa655b7229e50 100644 --- a/packages/block-library/src/cover/edit/inspector-controls.js +++ b/packages/block-library/src/cover/edit/inspector-controls.js @@ -220,7 +220,7 @@ export default function CoverInspectorControls( {