diff --git a/packages/react-core/src/components/Page/examples/PageCenteredSection.tsx b/packages/react-core/src/components/Page/examples/PageCenteredSection.tsx index b475f1da08d..113ac60fff2 100644 --- a/packages/react-core/src/components/Page/examples/PageCenteredSection.tsx +++ b/packages/react-core/src/components/Page/examples/PageCenteredSection.tsx @@ -68,7 +68,7 @@ export const PageCenteredSection: React.FunctionComponent = () => { return ( - + When a width limited page section is wider than the value of diff --git a/packages/react-core/src/components/Page/examples/PageGroupSection.tsx b/packages/react-core/src/components/Page/examples/PageGroupSection.tsx index 4c113527085..2afbef70a96 100644 --- a/packages/react-core/src/components/Page/examples/PageGroupSection.tsx +++ b/packages/react-core/src/components/Page/examples/PageGroupSection.tsx @@ -101,10 +101,16 @@ export const PageGroupSection: React.FunctionComponent = () => { - Grouped section + +

Grouped section

+
- Section 1 - Section 2 + +

Grouped example section 1

+
+ +

Grouped example section 2

+
); }; diff --git a/packages/react-core/src/components/Page/examples/PageHorizontalNav.tsx b/packages/react-core/src/components/Page/examples/PageHorizontalNav.tsx index bb3b4b44d42..d711dcc6797 100644 --- a/packages/react-core/src/components/Page/examples/PageHorizontalNav.tsx +++ b/packages/react-core/src/components/Page/examples/PageHorizontalNav.tsx @@ -36,9 +36,15 @@ export const PageHorizontalNav: React.FunctionComponent = () => { return ( - Section 1 - Section 2 with secondary variant styling - Section 3 + +

Horizontal nav example section 1

+
+ +

Horizontal nav example section 2 with secondary variant styling

+
+ +

Horizontal nav example section 3

+
); }; diff --git a/packages/react-core/src/components/Page/examples/PageMainSectionPadding.tsx b/packages/react-core/src/components/Page/examples/PageMainSectionPadding.tsx index 96eabf69958..d3b8459bafb 100644 --- a/packages/react-core/src/components/Page/examples/PageMainSectionPadding.tsx +++ b/packages/react-core/src/components/Page/examples/PageMainSectionPadding.tsx @@ -64,10 +64,18 @@ export const PageMainSectionPadding: React.FunctionComponent = () => { return ( - Section with default padding - Section with no padding - Section with padding on medium - Section with no padding on medium + +

Section with default padding

+
+ +

Section with no padding

+
+ +

Section with padding on medium

+
+ +

Section with no padding on medium

+
); }; diff --git a/packages/react-core/src/components/Page/examples/PageMainSectionVariations.tsx b/packages/react-core/src/components/Page/examples/PageMainSectionVariations.tsx index a510177e9d3..24e90688458 100644 --- a/packages/react-core/src/components/Page/examples/PageMainSectionVariations.tsx +++ b/packages/react-core/src/components/Page/examples/PageMainSectionVariations.tsx @@ -64,22 +64,22 @@ export const PageMainSectionPadding: React.FunctionComponent = () => { return ( - + Section with type="subnav" for horizontal subnav navigation - + Section with type="nav" for tertiary navigation - + Section with type="tabs" for tabs - + Section with type="breadcrumb" for breadcrumbs - + Section without type prop or type="default" for main sections - + Section with type="wizard" for wizards diff --git a/packages/react-core/src/components/Page/examples/PageMultipleSidebarBody.tsx b/packages/react-core/src/components/Page/examples/PageMultipleSidebarBody.tsx index 9b4943792bb..8d9ef03a760 100644 --- a/packages/react-core/src/components/Page/examples/PageMultipleSidebarBody.tsx +++ b/packages/react-core/src/components/Page/examples/PageMultipleSidebarBody.tsx @@ -71,9 +71,15 @@ export const PageMultipleSidebarBody: React.FunctionComponent = () => { return ( - Section 1 - Section 2 - Section 3 + +

Multiple sidebar body example section 1

+
+ +

Multiple sidebar body example section 2

+
+ +

Multiple sidebar body example section 3

+
); }; diff --git a/packages/react-core/src/components/Page/examples/PageUncontrolledNav.tsx b/packages/react-core/src/components/Page/examples/PageUncontrolledNav.tsx index 716246d5302..229d3282ed3 100644 --- a/packages/react-core/src/components/Page/examples/PageUncontrolledNav.tsx +++ b/packages/react-core/src/components/Page/examples/PageUncontrolledNav.tsx @@ -51,9 +51,15 @@ export const PageUncontrolledNav: React.FunctionComponent = () => { return ( - Section 1 - Section 2 - Section 3 + +

Uncontrolled nav example section 1

+
+ +

Uncontrolled nav example section 2

+
+ +

Uncontrolled nav example section 3

+
); }; diff --git a/packages/react-core/src/components/Page/examples/PageVerticalNav.tsx b/packages/react-core/src/components/Page/examples/PageVerticalNav.tsx index f14baa5cc15..40a8bec260a 100644 --- a/packages/react-core/src/components/Page/examples/PageVerticalNav.tsx +++ b/packages/react-core/src/components/Page/examples/PageVerticalNav.tsx @@ -64,9 +64,15 @@ export const PageVerticalNav: React.FunctionComponent = () => { return ( - Section 1 - Section 2 with secondary variant styling - Section 3 + +

Vertical nav example section 1

+
+ +

Vertical nav example section 2 with secondary variant styling

+
+ +

Vertical nav example section 3

+
); }; diff --git a/packages/react-core/src/components/Page/examples/PageWithOrWithoutFill.tsx b/packages/react-core/src/components/Page/examples/PageWithOrWithoutFill.tsx index 10286dc1fc5..e1ed070a173 100644 --- a/packages/react-core/src/components/Page/examples/PageWithOrWithoutFill.tsx +++ b/packages/react-core/src/components/Page/examples/PageWithOrWithoutFill.tsx @@ -64,11 +64,15 @@ export const PageWithOrWithoutFill: React.FunctionComponent = () => { return ( - A default page section - - This section fills the available space. + +

Section without fill

+
+ +

Section with fill

+
+ +

Another section without fill

- A default page section
); }; diff --git a/packages/react-core/src/demos/Banner.md b/packages/react-core/src/demos/Banner.md index 7bf37f2dbef..f933f6ff7db 100644 --- a/packages/react-core/src/demos/Banner.md +++ b/packages/react-core/src/demos/Banner.md @@ -39,16 +39,16 @@ class BannerDemo extends React.Component { return ( - + -

Main title

+

Main title

Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because
of it’s relative line height of 1.5.

- + {Array.from({ length: 30 }).map((_value, index) => ( @@ -112,9 +112,9 @@ class BannerDemo extends React.Component { - + -

Main title

+

Main title

Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because{' '}
@@ -122,7 +122,7 @@ class BannerDemo extends React.Component {

- + {Array.from({ length: 30 }).map((_value, index) => ( diff --git a/packages/react-core/src/demos/CardView/examples/CardView.tsx b/packages/react-core/src/demos/CardView/examples/CardView.tsx index d28cf150a52..2ebb1370775 100644 --- a/packages/react-core/src/demos/CardView/examples/CardView.tsx +++ b/packages/react-core/src/demos/CardView/examples/CardView.tsx @@ -465,16 +465,16 @@ export const CardViewBasic: React.FunctionComponent = () => { return ( - + -

Projects

+

Projects

This is a demo that showcases PatternFly cards.

{toolbarItems}
- + @@ -546,7 +546,12 @@ export const CardViewBasic: React.FunctionComponent = () => { ))} - + { return ( - + - Projects + + Projects + This is a demo that showcases PatternFly Data List - + {!isDeleted && ( diff --git a/packages/react-core/src/demos/DataList/examples/DataListBasic.tsx b/packages/react-core/src/demos/DataList/examples/DataListBasic.tsx index cd9cf0594e8..1452fa1837c 100644 --- a/packages/react-core/src/demos/DataList/examples/DataListBasic.tsx +++ b/packages/react-core/src/demos/DataList/examples/DataListBasic.tsx @@ -69,9 +69,9 @@ export const DataListBasic: React.FunctionComponent = () => { return ( - + -

Projects

+

Projects

This is a demo that showcases PatternFly data list

diff --git a/packages/react-core/src/demos/DataList/examples/DataListExpandableControlInToolbar.tsx b/packages/react-core/src/demos/DataList/examples/DataListExpandableControlInToolbar.tsx index 503d731bdd1..371720dfbce 100644 --- a/packages/react-core/src/demos/DataList/examples/DataListExpandableControlInToolbar.tsx +++ b/packages/react-core/src/demos/DataList/examples/DataListExpandableControlInToolbar.tsx @@ -133,9 +133,9 @@ export const DataListExpandableControlInToolbar: React.FunctionComponent = () => return ( - + -

Projects

+

Projects

This is a demo that showcases PatternFly data list

diff --git a/packages/react-core/src/demos/DataList/examples/DataListStaticBottomPagination.tsx b/packages/react-core/src/demos/DataList/examples/DataListStaticBottomPagination.tsx index df6916d24c6..229aa2e6b8c 100644 --- a/packages/react-core/src/demos/DataList/examples/DataListStaticBottomPagination.tsx +++ b/packages/react-core/src/demos/DataList/examples/DataListStaticBottomPagination.tsx @@ -113,9 +113,11 @@ export const DataListStaticBottomPagination: React.FunctionComponent = () => { return ( - + - Projects + + Projects + This is a demo that showcases PatternFly Data List diff --git a/packages/react-core/src/demos/DescriptionList/examples/DescriptionListBasic.tsx b/packages/react-core/src/demos/DescriptionList/examples/DescriptionListBasic.tsx index eb8b8e29bd8..6e5c7d8d246 100644 --- a/packages/react-core/src/demos/DescriptionList/examples/DescriptionListBasic.tsx +++ b/packages/react-core/src/demos/DescriptionList/examples/DescriptionListBasic.tsx @@ -18,16 +18,16 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard export const DescriptionListBasic: React.FunctionComponent = () => ( - + - Projects +

Projects

This is a full page demo
- + - + <Title headingLevel="h2" size="lg" id="details"> Details diff --git a/packages/react-core/src/demos/DescriptionList/examples/DescriptionListInDrawer.tsx b/packages/react-core/src/demos/DescriptionList/examples/DescriptionListInDrawer.tsx index 11986bea3e2..186468edcd2 100644 --- a/packages/react-core/src/demos/DescriptionList/examples/DescriptionListInDrawer.tsx +++ b/packages/react-core/src/demos/DescriptionList/examples/DescriptionListInDrawer.tsx @@ -150,13 +150,15 @@ export const DescriptionListInDrawer: React.FunctionComponent = () => { isNotificationDrawerExpanded={isExpanded} onNotificationDrawerExpand={onExpand} > - + - Main title + + Main title + This is a full page demo. - {drawerContent} + {drawerContent}
); }; diff --git a/packages/react-core/src/demos/JumpLinks.md b/packages/react-core/src/demos/JumpLinks.md index 5213798b16e..9a84154de56 100644 --- a/packages/react-core/src/demos/JumpLinks.md +++ b/packages/react-core/src/demos/JumpLinks.md @@ -79,8 +79,8 @@ ScrollspyH2 = () => { return ( - - + <PageSection aria-labelledby='main-title'> + <Title headingLevel="h1" size="2xl" id='main-title'> Main title { onChange={(_event, check) => setIsVertical(check)} /> - + - + { - + {headings.map(i => (
diff --git a/packages/react-core/src/demos/Tabs.md b/packages/react-core/src/demos/Tabs.md index 846321906e0..aae416129a4 100644 --- a/packages/react-core/src/demos/Tabs.md +++ b/packages/react-core/src/demos/Tabs.md @@ -159,7 +159,7 @@ TabsOpenDemo = () => { return ( {tabsBreadcrumb} - + { - + Details} tabContentId={`tabContent${0}`} /> YAML} tabContentId={`tabContent${1}`} /> @@ -187,7 +187,7 @@ TabsOpenDemo = () => { Terminal} tabContentId={`tabContent${4}`} /> - + @@ -355,7 +355,7 @@ TabsOpenWithSecondaryTabsDemo = () => { return ( {tabsBreadcrumb} - + { - + Details} tabContentId={`tabContent${0}`} /> YAML} tabContentId={`tabContent${1}`} /> @@ -383,7 +383,7 @@ TabsOpenWithSecondaryTabsDemo = () => { Terminal} tabContentId={`tabContent${4}`} /> - +