Skip to content

Commit

Permalink
make change for outlineMode instead
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed Jul 22, 2024
1 parent ef669f9 commit bfaac73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/block-list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ function Root( { className, ...settings } ) {
getTemporarilyEditingAsBlocks,
isTyping,
} = unlock( select( blockEditorStore ) );
const { outlineMode, focusMode, isDistractionFree } = getSettings();
const { outlineMode, focusMode } = getSettings();
return {
isOutlineMode: outlineMode && ! isDistractionFree && ! isTyping(),
isOutlineMode: outlineMode && ! isTyping(),
isFocusMode: focusMode,
editorMode: __unstableGetEditorMode(),
temporarilyEditingAsBlocks: getTemporarilyEditingAsBlocks(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bfaac73

Please sign in to comment.