From 95f0a7264e179564a97f42fe8a7c8e1f56550793 Mon Sep 17 00:00:00 2001 From: Damon Cook Date: Fri, 15 Dec 2023 17:15:17 -0500 Subject: [PATCH] Toggle classname for inserter --- packages/edit-post/src/components/layout/index.js | 1 + packages/edit-site/src/components/editor/index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/edit-post/src/components/layout/index.js b/packages/edit-post/src/components/layout/index.js index eb67cc82783e4a..31bc60833781eb 100644 --- a/packages/edit-post/src/components/layout/index.js +++ b/packages/edit-post/src/components/layout/index.js @@ -253,6 +253,7 @@ function Layout() { const className = classnames( 'edit-post-layout', 'is-mode-' + mode, { 'is-sidebar-opened': sidebarIsOpened, + 'is-inserter-opened': isInserterOpened, 'has-metaboxes': hasActiveMetaboxes, 'is-distraction-free': isDistractionFree && isWideViewport, 'is-entity-save-view-open': !! entitiesSavedStatesCallback, diff --git a/packages/edit-site/src/components/editor/index.js b/packages/edit-site/src/components/editor/index.js index 295f4ec3cf5c60..0a028c6c0a21ce 100644 --- a/packages/edit-site/src/components/editor/index.js +++ b/packages/edit-site/src/components/editor/index.js @@ -222,6 +222,7 @@ export default function Editor( { listViewToggleElement, isLoading } ) { 'edit-site-editor__interface-skeleton', { 'show-icon-labels': showIconLabels, + 'is-inserter-opened': isInserterOpen, } ) } notices={ }