From da8681f7e99a3ac1b0311db7849ba52363d6b85c Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Tue, 5 Nov 2024 11:27:17 +0100 Subject: [PATCH 1/3] Increase complementary area and tabbed sidebar X close button size. --- packages/block-editor/src/components/tabbed-sidebar/index.js | 2 +- .../block-editor/src/components/tabbed-sidebar/style.scss | 2 +- packages/editor/src/components/sidebar/style.scss | 4 +--- .../src/components/complementary-area-header/style.scss | 4 ++-- packages/interface/src/components/complementary-area/index.js | 2 +- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/block-editor/src/components/tabbed-sidebar/index.js b/packages/block-editor/src/components/tabbed-sidebar/index.js index a0cb510c720904..c9ff6bbf6555f0 100644 --- a/packages/block-editor/src/components/tabbed-sidebar/index.js +++ b/packages/block-editor/src/components/tabbed-sidebar/index.js @@ -33,7 +33,7 @@ function TabbedSidebar( icon={ closeSmall } label={ closeButtonLabel } onClick={ () => onClose() } - size="small" + size="compact" /> disableComplementaryArea( scope ) } toggleButtonProps={ { label: closeLabel, - size: 'small', + size: 'compact', shortcut: toggleShortcut, scope, identifier, From 3a63c35fd8daadf590dd4d952a0b310a218f4f7b Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Tue, 5 Nov 2024 13:03:52 +0100 Subject: [PATCH 2/3] Adjust widgets header actions right padding and gap. --- packages/edit-widgets/src/components/header/style.scss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/edit-widgets/src/components/header/style.scss b/packages/edit-widgets/src/components/header/style.scss index 7bd3c41a6a22ad..642a641e6e5952 100644 --- a/packages/edit-widgets/src/components/header/style.scss +++ b/packages/edit-widgets/src/components/header/style.scss @@ -94,12 +94,13 @@ .edit-widgets-header__actions { display: flex; align-items: center; - padding-right: $grid-unit-20; - gap: $grid-unit-05; + padding-right: $grid-unit-05; @include break-small() { - gap: $grid-unit-10; + padding-right: $grid-unit-10; } + + gap: $grid-unit-10; } .edit-widgets-header-toolbar { From bb21ba166d5dc394d9e6c25b734d4c2c05d6e98b Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Tue, 5 Nov 2024 13:15:01 +0100 Subject: [PATCH 3/3] Adjust edit widgets list view X close button size. --- .../src/components/secondary-sidebar/list-view-sidebar.js | 2 +- .../edit-widgets/src/components/secondary-sidebar/style.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/edit-widgets/src/components/secondary-sidebar/list-view-sidebar.js b/packages/edit-widgets/src/components/secondary-sidebar/list-view-sidebar.js index 1bb850393ad023..fc645fd3bbd0d4 100644 --- a/packages/edit-widgets/src/components/secondary-sidebar/list-view-sidebar.js +++ b/packages/edit-widgets/src/components/secondary-sidebar/list-view-sidebar.js @@ -51,10 +51,10 @@ export default function ListViewSidebar() {
{ __( 'List View' ) }