From 9cbccb6db4f2aedfef79b28bda7d19c6486f3ff2 Mon Sep 17 00:00:00 2001 From: rjchow Date: Mon, 16 Sep 2024 16:50:29 +1000 Subject: [PATCH] align toggle text --- .../launch-your-store/settings/slotfill.js | 54 ++++++++++--------- .../launch-your-store/settings/style.scss | 5 +- 2 files changed, 34 insertions(+), 25 deletions(-) diff --git a/plugins/woocommerce-admin/client/launch-your-store/settings/slotfill.js b/plugins/woocommerce-admin/client/launch-your-store/settings/slotfill.js index f8175f07491..8064fe882ac 100644 --- a/plugins/woocommerce-admin/client/launch-your-store/settings/slotfill.js +++ b/plugins/woocommerce-admin/client/launch-your-store/settings/slotfill.js @@ -203,7 +203,7 @@ const SiteVisibility = () => {

{

{ __( 'Admin bar badge', 'woocommerce' ) }

- - { __( 'Hide admin bar badge', 'woocommerce' ) } -

- { __( - 'Hide the site visibility badge from the admin bar.', - 'woocommerce' - ) } -

- - } - checked={ hideAdminBarBadge === 'yes' } - onChange={ ( checked ) => { - setHideAdminBarBadge( checked ? 'yes' : 'no' ); - recordEvent( - 'site_visibility_hide_admin_bar_badge_toggle', - { - enabled: checked, - } - ); - } } - /> +
+ + { __( 'Hide admin bar badge', 'woocommerce' ) } +

+ { __( + 'Hide the site visibility badge from the admin bar.', + 'woocommerce' + ) } +

+ + } + checked={ hideAdminBarBadge === 'yes' } + onChange={ ( checked ) => { + setHideAdminBarBadge( checked ? 'yes' : 'no' ); + recordEvent( + 'site_visibility_hide_admin_bar_badge_toggle', + { + enabled: checked, + } + ); + } } + /> +
{ formRef.current && saveButtonRef.current ? (