From c9c6ea7df4ad83b2d1e3f4fe05a85d17b2b0885f Mon Sep 17 00:00:00 2001 From: ntsekouras Date: Mon, 1 Apr 2024 10:26:39 +0300 Subject: [PATCH] use secondary variant --- packages/edit-site/src/components/add-new-pattern/index.js | 6 +++--- packages/edit-site/src/components/page-pages/index.js | 2 +- .../page-templates-template-parts/add-new-template-part.js | 5 ++++- .../src/components/page-templates-template-parts/index.js | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/edit-site/src/components/add-new-pattern/index.js b/packages/edit-site/src/components/add-new-pattern/index.js index e37b2d440c767c..669f6db06b2f0c 100644 --- a/packages/edit-site/src/components/add-new-pattern/index.js +++ b/packages/edit-site/src/components/add-new-pattern/index.js @@ -104,11 +104,11 @@ export default function AddNewPattern( { showTextButton } ) { controls={ controls } toggleProps={ { as: showTextButton ? Button : SidebarButton, - variant: showTextButton ? 'primary' : undefined, + variant: showTextButton ? 'secondary' : undefined, } } icon={ showTextButton ? null : plus } - label={ showTextButton ? undefined : __( 'Create pattern' ) } - text={ showTextButton ? __( 'Create pattern' ) : undefined } + label={ showTextButton ? undefined : __( 'Add new pattern' ) } + text={ showTextButton ? __( 'Add new pattern' ) : undefined } /> { showPatternModal && ( - { showAddPageModal && ( diff --git a/packages/edit-site/src/components/page-templates-template-parts/add-new-template-part.js b/packages/edit-site/src/components/page-templates-template-parts/add-new-template-part.js index 8d46010587242a..d11b4c70871edc 100644 --- a/packages/edit-site/src/components/page-templates-template-parts/add-new-template-part.js +++ b/packages/edit-site/src/components/page-templates-template-parts/add-new-template-part.js @@ -37,7 +37,10 @@ export default function AddNewTemplatePart() { return ( <> - { isModalOpen && ( diff --git a/packages/edit-site/src/components/page-templates-template-parts/index.js b/packages/edit-site/src/components/page-templates-template-parts/index.js index 6e808aa6672ba4..9ec70f3b7aba81 100644 --- a/packages/edit-site/src/components/page-templates-template-parts/index.js +++ b/packages/edit-site/src/components/page-templates-template-parts/index.js @@ -385,7 +385,7 @@ export default function PageTemplatesTemplateParts( { postType } ) { ) : (