Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(PPDSC-2149): Updated structured-list page link #195

Merged
merged 15 commits into from
May 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions site/pages/components/structured-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const StructuredListComponent = (layoutProps: LayoutProps) => (
}}
layoutProps={layoutProps}
pageIntroduction={{
type: 'Component',
type: 'Layout',
name: 'Structured List',
hero: {
src: 'static/button-hero.svg',
Expand Down Expand Up @@ -154,7 +154,6 @@ const StructuredListComponent = (layoutProps: LayoutProps) => (
optional: undefined,
},
],
media: {},
}}
states={{
introduction:
Expand Down
8 changes: 8 additions & 0 deletions site/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,14 @@ export default [
'A low-level foundational component used to layout items in a horizontal or vertical stack.',
illustration: 'components/stack-illustration',
},
{
title: 'Structured List',
page: true,
id: '/components/structured-list',
description:
'Structured lists group content that is similar or related.',
illustration: 'components/standfirst-illustration',
},
{
title: 'Visibility',
page: true,
Expand Down
4 changes: 3 additions & 1 deletion site/templates/template-sections/anatomy-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ export const AnatomySection: React.FC<AnatomySectionProps> = ({
id="anatomy"
introduction={introduction}
>
<ComponentPageCell>{renderAnatomy(media, rows)}</ComponentPageCell>
<ComponentPageCell>
{media && renderAnatomy(media, rows)}
</ComponentPageCell>
</CommonSection>
</>
)}
Expand Down