From 9c0a740814bee866532283ec8eb6638e7b3c3882 Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Fri, 29 Nov 2024 16:35:30 +0100 Subject: [PATCH] Refactor global styles sidebar wrapper preview menu --- .../sidebar-global-styles-wrapper/index.js | 65 ++++++++++--------- 1 file changed, 36 insertions(+), 29 deletions(-) diff --git a/packages/edit-site/src/components/sidebar-global-styles-wrapper/index.js b/packages/edit-site/src/components/sidebar-global-styles-wrapper/index.js index 980f20c49821b0..0cf16b65e464fa 100644 --- a/packages/edit-site/src/components/sidebar-global-styles-wrapper/index.js +++ b/packages/edit-site/src/components/sidebar-global-styles-wrapper/index.js @@ -28,36 +28,43 @@ const GlobalStylesPageActions = ( { setIsStyleBookOpened, } ) => { return ( - - { __( 'Preview' ) } - - } - > - setIsStyleBookOpened( true ) } - defaultChecked - > - { __( 'Style book' ) } - - { __( 'Preview blocks and styles.' ) } - - - setIsStyleBookOpened( false ) } + + + } > - { __( 'Site' ) } - - { __( 'Preview your site.' ) } - - + { __( 'Preview' ) } + + + setIsStyleBookOpened( true ) } + defaultChecked + > + { __( 'Style book' ) } + + { __( 'Preview blocks and styles.' ) } + + + setIsStyleBookOpened( false ) } + > + { __( 'Site' ) } + + { __( 'Preview your site.' ) } + + + ); };