diff --git a/packages/edit-post/src/components/layout/index.js b/packages/edit-post/src/components/layout/index.js
index 185f97ba45a56f..3bd601f1e3e5eb 100644
--- a/packages/edit-post/src/components/layout/index.js
+++ b/packages/edit-post/src/components/layout/index.js
@@ -36,7 +36,10 @@ import { privateApis as blockLibraryPrivateApis } from '@wordpress/block-library
import { addQueryArgs } from '@wordpress/url';
import { decodeEntities } from '@wordpress/html-entities';
import { store as coreStore } from '@wordpress/core-data';
-import { SlotFillProvider } from '@wordpress/components';
+import {
+ SlotFillProvider,
+ __unstableUseNavigateRegions as useNavigateRegions,
+} from '@wordpress/components';
import { useViewportMatch } from '@wordpress/compose';
/**
@@ -249,6 +252,8 @@ function Layout( {
document.body.classList.remove( 'show-icon-labels' );
}
+ const navigateRegionsProps = useNavigateRegions();
+
const className = clsx( 'edit-post-layout', 'is-mode-' + mode, {
'has-metaboxes': hasActiveMetaboxes,
} );
@@ -334,50 +339,56 @@ function Layout( {
-
- }
- extraContent={
- ! isDistractionFree &&
- showMetaBoxes && (
-
-
-
-
- )
- }
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- { backButton }
-
-
+
+ }
+ extraContent={
+ ! isDistractionFree &&
+ showMetaBoxes && (
+
+
+
+
+ )
+ }
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { backButton }
+
+
+
);
diff --git a/packages/edit-widgets/src/components/layout/index.js b/packages/edit-widgets/src/components/layout/index.js
index 54338d10fb8503..4fc70a6c0c74eb 100644
--- a/packages/edit-widgets/src/components/layout/index.js
+++ b/packages/edit-widgets/src/components/layout/index.js
@@ -5,6 +5,7 @@ import { __, sprintf } from '@wordpress/i18n';
import { useDispatch } from '@wordpress/data';
import { PluginArea } from '@wordpress/plugins';
import { store as noticesStore } from '@wordpress/notices';
+import { __unstableUseNavigateRegions as useNavigateRegions } from '@wordpress/components';
/**
* Internal dependencies
@@ -31,17 +32,25 @@ function Layout( { blockEditorSettings } ) {
);
}
+ const navigateRegionsProps = useNavigateRegions();
+
return (
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
);
}
diff --git a/packages/interface/src/components/interface-skeleton/index.js b/packages/interface/src/components/interface-skeleton/index.js
index 4e630dd25e2184..0a49db4f159d88 100644
--- a/packages/interface/src/components/interface-skeleton/index.js
+++ b/packages/interface/src/components/interface-skeleton/index.js
@@ -8,13 +8,11 @@ import clsx from 'clsx';
*/
import { forwardRef, useEffect } from '@wordpress/element';
import {
- __unstableUseNavigateRegions as useNavigateRegions,
__unstableMotion as motion,
__unstableAnimatePresence as AnimatePresence,
} from '@wordpress/components';
import { __, _x } from '@wordpress/i18n';
import {
- useMergeRefs,
useReducedMotion,
useViewportMatch,
useResizeObserver,
@@ -85,7 +83,6 @@ function InterfaceSkeleton(
actions,
labels,
className,
- enableRegionNavigation = true,
},
ref
) {
@@ -98,7 +95,6 @@ function InterfaceSkeleton(
duration: disableMotion ? 0 : ANIMATION_DURATION,
ease: [ 0.6, 0, 0.4, 1 ],
};
- const navigateRegionsProps = useNavigateRegions();
useHTMLClass( 'interface-interface-skeleton__html-container' );
const defaultLabels = {
@@ -120,15 +116,10 @@ function InterfaceSkeleton(
return (