diff --git a/packages/edit-site/src/components/layout/index.js b/packages/edit-site/src/components/layout/index.js index 7bdb2a31ec4d79..c5892e1fd4e912 100644 --- a/packages/edit-site/src/components/layout/index.js +++ b/packages/edit-site/src/components/layout/index.js @@ -116,7 +116,7 @@ export default function Layout() { } ); const disableMotion = useReducedMotion(); const showSidebar = - ( isMobileViewport && ! isListPage ) || + ( isMobileViewport && canvasMode === 'view' && ! isListPage ) || ( ! isMobileViewport && ( canvasMode === 'view' || ! isEditorPage ) ); const showCanvas = ( isMobileViewport && isEditorPage && isEditing ) || @@ -282,7 +282,7 @@ export default function Layout() { // (https://github.com/WordPress/gutenberg/pull/51558/files#r1231763003), // so we can't remove the element entirely. Using `inert` will make // it inaccessible to screen readers and keyboard navigation. - inert={ showSidebar ? undefined : 'inert' } + inert={ showSidebar ? undefined : 'true' } animate={ { opacity: showSidebar ? 1 : 0 } } transition={ { type: 'tween',