From dd31d299c047cffed6ea862278ba0e05ccc8d6a8 Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Tue, 23 Jul 2024 09:19:26 -0400 Subject: [PATCH] Make hover block outlines not present in Distraction Free (#63819) --- .../editor/src/components/provider/use-block-editor-settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/components/provider/use-block-editor-settings.js b/packages/editor/src/components/provider/use-block-editor-settings.js index 1c1881bb00f405..6aa2763cf9db06 100644 --- a/packages/editor/src/components/provider/use-block-editor-settings.js +++ b/packages/editor/src/components/provider/use-block-editor-settings.js @@ -311,7 +311,7 @@ function useBlockEditorSettings( settings, postType, postId, renderingMode ) { __experimentalUndo: undo, // Check whether we want all site editor frames to have outlines // including the navigation / pattern / parts editors. - outlineMode: postType === 'wp_template', + outlineMode: ! isDistractionFree && postType === 'wp_template', // Check these two properties: they were not present in the site editor. __experimentalCreatePageEntity: createPageEntity, __experimentalUserCanCreatePages: userCanCreatePages,