From b3c6e713c36f750cfe1e7a01835b80a5edf97acb Mon Sep 17 00:00:00 2001 From: Matt Sherman Date: Tue, 28 May 2024 13:53:10 -0400 Subject: [PATCH] Inserter: Encapsulate styles for tablist and close button (#61760) Co-authored-by: mattsherman Co-authored-by: retrofox --- .../block-editor/src/components/inserter/style.scss | 13 +++++++++++++ .../block-editor/src/components/inserter/tabs.js | 4 ++-- .../edit-widgets/src/components/layout/style.scss | 2 +- .../src/components/inserter-sidebar/style.scss | 13 ------------- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/block-editor/src/components/inserter/style.scss b/packages/block-editor/src/components/inserter/style.scss index 354a0fa70ffc55..722afbdc2a83ed 100644 --- a/packages/block-editor/src/components/inserter/style.scss +++ b/packages/block-editor/src/components/inserter/style.scss @@ -115,6 +115,19 @@ $block-inserter-tabs-height: 44px; flex-direction: column; overflow: hidden; + .block-editor-inserter__tablist-and-close-button { + border-bottom: $border-width solid $gray-300; + padding-right: $grid-unit-15; + display: flex; + justify-content: space-between; + } + + .block-editor-inserter__close-button { + /* stylelint-disable-next-line property-disallowed-list -- This should be refactored to avoid order if possible */ + order: 1; + align-self: center; + } + .block-editor-inserter__tablist { width: 100%; margin-bottom: -$border-width; diff --git a/packages/block-editor/src/components/inserter/tabs.js b/packages/block-editor/src/components/inserter/tabs.js index d3ce5d80993d3f..b46e4bfdaf0148 100644 --- a/packages/block-editor/src/components/inserter/tabs.js +++ b/packages/block-editor/src/components/inserter/tabs.js @@ -39,9 +39,9 @@ function InserterTabs( { onSelect, children, onClose, selectedTab }, ref ) { return (
-
+