From 0711717b8a6586212e5a2da03cc34ba92dba0e91 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Tue, 22 Oct 2024 08:52:13 +0200 Subject: [PATCH] Fix Global styles panel header buttons text overlap for 'Show button text labels' (#63243) * Use compact variant for close butotn in complementary area. * Fix global styles header buttons when they show text. * Improve flexbox layout. * Adjust gap. * Set button size to small. * Remove no longer necessary margins. Co-authored-by: afercia Co-authored-by: t-hamano Co-authored-by: ntsekouras Co-authored-by: jameskoster Co-authored-by: aaronrobertshaw --- .../components/global-styles-sidebar/index.js | 66 +++++++++++-------- .../global-styles-sidebar/style.scss | 6 ++ .../complementary-area-header/style.scss | 5 -- 3 files changed, 43 insertions(+), 34 deletions(-) diff --git a/packages/edit-site/src/components/global-styles-sidebar/index.js b/packages/edit-site/src/components/global-styles-sidebar/index.js index 90a3331d14c71..2194f2edbc0f2 100644 --- a/packages/edit-site/src/components/global-styles-sidebar/index.js +++ b/packages/edit-site/src/components/global-styles-sidebar/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { FlexItem, FlexBlock, Flex, Button } from '@wordpress/components'; +import { FlexItem, Flex, Button } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { styles, seen, backup } from '@wordpress/icons'; import { useSelect, useDispatch } from '@wordpress/data'; @@ -130,38 +130,46 @@ export default function GlobalStylesSidebar() { className="edit-site-global-styles-sidebar__header" gap={ 1 } > - +

{ __( 'Styles' ) }

-
- -