From 4d6900f7694d6c0d43b764466deac935daa6468e Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Wed, 21 Jun 2023 08:32:53 +0200 Subject: [PATCH] Unify welcome guides labels. (#51700) --- packages/edit-site/src/components/welcome-guide/editor.js | 2 +- packages/edit-site/src/components/welcome-guide/styles.js | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/edit-site/src/components/welcome-guide/editor.js b/packages/edit-site/src/components/welcome-guide/editor.js index c7a1072bf7905..2dcc1fa9b565b 100644 --- a/packages/edit-site/src/components/welcome-guide/editor.js +++ b/packages/edit-site/src/components/welcome-guide/editor.js @@ -32,7 +32,7 @@ export default function WelcomeGuideEditor() { toggle( 'core/edit-site', 'welcomeGuide' ) } pages={ [ { diff --git a/packages/edit-site/src/components/welcome-guide/styles.js b/packages/edit-site/src/components/welcome-guide/styles.js index 6cc664c6373fa..d60d41d7a1a4f 100644 --- a/packages/edit-site/src/components/welcome-guide/styles.js +++ b/packages/edit-site/src/components/welcome-guide/styles.js @@ -34,11 +34,13 @@ export default function WelcomeGuideStyles() { return null; } + const welcomeLabel = __( 'Welcome to Styles' ); + return ( toggle( 'core/edit-site', 'welcomeGuideStyles' ) } pages={ [ { @@ -51,7 +53,7 @@ export default function WelcomeGuideStyles() { content: ( <>

- { __( 'Welcome to Styles' ) } + { welcomeLabel }

{ __(