diff --git a/packages/components/src/navigator/stories/index.story.tsx b/packages/components/src/navigator/stories/index.story.tsx index 218580a4cc3ba2..633d5897678cbf 100644 --- a/packages/components/src/navigator/stories/index.story.tsx +++ b/packages/components/src/navigator/stories/index.story.tsx @@ -15,7 +15,6 @@ import { NavigatorScreen, NavigatorButton, NavigatorBackButton, - NavigatorToParentButton, useNavigator, } from '..'; @@ -261,9 +260,9 @@ export const NestedNavigator: StoryObj< typeof NavigatorProvider > = { This is the first child - + Go back to parent - + @@ -271,9 +270,9 @@ export const NestedNavigator: StoryObj< typeof NavigatorProvider > = { This is the second child - + Go back to parent - + = { This is the grand child - + Go back to parent - + @@ -345,9 +344,9 @@ export const SkipFocus: StoryObj< typeof NavigatorProvider > = { } } >

Child screen

- + Go to parent screen. - + diff --git a/packages/edit-site/src/components/global-styles/font-library-modal/font-collection.js b/packages/edit-site/src/components/global-styles/font-library-modal/font-collection.js index 357bcba1d93137..5c8263c0df1024 100644 --- a/packages/edit-site/src/components/global-styles/font-library-modal/font-collection.js +++ b/packages/edit-site/src/components/global-styles/font-library-modal/font-collection.js @@ -15,7 +15,7 @@ import { __experimentalVStack as VStack, __experimentalNavigatorProvider as NavigatorProvider, __experimentalNavigatorScreen as NavigatorScreen, - __experimentalNavigatorToParentButton as NavigatorToParentButton, + __experimentalNavigatorBackButton as NavigatorBackButton, __experimentalHeading as Heading, Notice, SelectControl, @@ -382,7 +382,7 @@ function FontCollection( { slug } ) { - { diff --git a/packages/edit-site/src/components/global-styles/font-library-modal/installed-fonts.js b/packages/edit-site/src/components/global-styles/font-library-modal/installed-fonts.js index 9896a9a525d446..281ec0b30f7627 100644 --- a/packages/edit-site/src/components/global-styles/font-library-modal/installed-fonts.js +++ b/packages/edit-site/src/components/global-styles/font-library-modal/installed-fonts.js @@ -8,7 +8,7 @@ import { __experimentalHeading as Heading, __experimentalNavigatorProvider as NavigatorProvider, __experimentalNavigatorScreen as NavigatorScreen, - __experimentalNavigatorToParentButton as NavigatorToParentButton, + __experimentalNavigatorBackButton as NavigatorBackButton, __experimentalUseNavigator as useNavigator, __experimentalSpacer as Spacer, __experimentalText as Text, @@ -353,7 +353,7 @@ function InstalledFonts() { /> - { diff --git a/packages/edit-site/src/components/global-styles/header.js b/packages/edit-site/src/components/global-styles/header.js index fdddc54a07ad71..1d9de84183aef7 100644 --- a/packages/edit-site/src/components/global-styles/header.js +++ b/packages/edit-site/src/components/global-styles/header.js @@ -7,7 +7,7 @@ import { __experimentalSpacer as Spacer, __experimentalHeading as Heading, __experimentalView as View, - __experimentalNavigatorToParentButton as NavigatorToParentButton, + __experimentalNavigatorBackButton as NavigatorBackButton, } from '@wordpress/components'; import { isRTL, __ } from '@wordpress/i18n'; import { chevronRight, chevronLeft } from '@wordpress/icons'; @@ -18,12 +18,7 @@ function ScreenHeader( { title, description, onBack } ) { - - ); + return ; } export { NavigationButtonAsItem, NavigationBackButtonAsItem };