diff --git a/apps/docs/src/data/structures/templates/templates.js b/apps/docs/src/data/structures/templates/templates.js index 530fc4c3f8..ac8247aac2 100644 --- a/apps/docs/src/data/structures/templates/templates.js +++ b/apps/docs/src/data/structures/templates/templates.js @@ -15,9 +15,9 @@ export const templates = [ name: 'Ascending navigation', available: true, cardOrder: 101, - description: `The Ascending Button for Navigation allows - the user to navigate to a parent page from a child page - by moving upward in the application or website hierarchy.`, + description: `Ascending navigation enables users + to move up one level in an application’s hierarchy, + from a child page back to its parent.`, preview: { image: { src: { diff --git a/apps/docs/src/examples/templates/ascending-navigation/AscendingNavigationAnatomy.js b/apps/docs/src/examples/templates/ascending-navigation/AscendingNavigationAnatomy.js deleted file mode 100644 index fbd373057d..0000000000 --- a/apps/docs/src/examples/templates/ascending-navigation/AscendingNavigationAnatomy.js +++ /dev/null @@ -1,85 +0,0 @@ -import React, { useContext } from 'react'; -import { - Box, - Image, - Grid, - Diagram, - Stack, - ThemeContext, - ResponsiveContext, -} from 'grommet'; -import { Annotation } from '../../../layouts'; - -const color = 'border'; -const anchor = 'vertical'; -const thickness = 'hair'; -const type = 'direct'; - -const connections = [ - { - anchor, - type, - color, - thickness, - fromTarget: '1', - toTarget: 'leftVisual', - }, - { - anchor, - type, - color, - thickness, - fromTarget: '2', - toTarget: 'rightVisual', - }, -]; - -const AnatomyGrid = ({ ...rest }) => { - const size = useContext(ResponsiveContext); - return ( - - ); -}; - -export const AscendingNavigationAnatomy = () => { - const theme = useContext(ThemeContext); - return ( - - - - - - test - - - test - - - - - ); -}; diff --git a/apps/docs/src/examples/templates/ascending-navigation/AscendingNavigationCodeExample.js b/apps/docs/src/examples/templates/ascending-navigation/AscendingNavigationCodeExample.js new file mode 100644 index 0000000000..b3ee59844e --- /dev/null +++ b/apps/docs/src/examples/templates/ascending-navigation/AscendingNavigationCodeExample.js @@ -0,0 +1,23 @@ +/* eslint-disable react/prop-types */ +import React from 'react'; +import { Anchor, Button, PageHeader } from 'grommet'; +import { Left } from '@hpe-design/icons-grommet'; + +export const AscendingNavigationCodeExample = () => { + return ( + } + a11yTitle="Link to the home page" + /> + } + actions={