@patternfly/react-core 6.3.0-prerelease.1 → 6.3.0-prerelease.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/AboutModal/package.json +1 -1
- package/dist/dynamic/components/Accordion/package.json +1 -1
- package/dist/dynamic/components/ActionList/package.json +1 -1
- package/dist/dynamic/components/Alert/package.json +1 -1
- package/dist/dynamic/components/Avatar/package.json +1 -1
- package/dist/dynamic/components/BackToTop/package.json +1 -1
- package/dist/dynamic/components/Backdrop/package.json +1 -1
- package/dist/dynamic/components/BackgroundImage/package.json +1 -1
- package/dist/dynamic/components/Badge/package.json +1 -1
- package/dist/dynamic/components/Banner/package.json +1 -1
- package/dist/dynamic/components/Brand/package.json +1 -1
- package/dist/dynamic/components/Breadcrumb/package.json +1 -1
- package/dist/dynamic/components/Button/package.json +1 -1
- package/dist/dynamic/components/CalendarMonth/package.json +1 -1
- package/dist/dynamic/components/Card/package.json +1 -1
- package/dist/dynamic/components/Checkbox/package.json +1 -1
- package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/Content/package.json +1 -1
- package/dist/dynamic/components/DataList/package.json +1 -1
- package/dist/dynamic/components/DatePicker/package.json +1 -1
- package/dist/dynamic/components/DescriptionList/package.json +1 -1
- package/dist/dynamic/components/Divider/package.json +1 -1
- package/dist/dynamic/components/Drawer/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -1
- package/dist/dynamic/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/components/EmptyState/package.json +1 -1
- package/dist/dynamic/components/ExpandableSection/package.json +1 -1
- package/dist/dynamic/components/FileUpload/package.json +1 -1
- package/dist/dynamic/components/Form/package.json +1 -1
- package/dist/dynamic/components/FormSelect/package.json +1 -1
- package/dist/dynamic/components/HelperText/package.json +1 -1
- package/dist/dynamic/components/Hint/package.json +1 -1
- package/dist/dynamic/components/Icon/package.json +1 -1
- package/dist/dynamic/components/InputGroup/package.json +1 -1
- package/dist/dynamic/components/JumpLinks/package.json +1 -1
- package/dist/dynamic/components/Label/package.json +1 -1
- package/dist/dynamic/components/List/package.json +1 -1
- package/dist/dynamic/components/LoginPage/package.json +1 -1
- package/dist/dynamic/components/Masthead/package.json +1 -1
- package/dist/dynamic/components/Menu/package.json +1 -1
- package/dist/dynamic/components/MenuToggle/package.json +1 -1
- package/dist/dynamic/components/Modal/package.json +1 -1
- package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
- package/dist/dynamic/components/Nav/package.json +1 -1
- package/dist/dynamic/components/NotificationBadge/package.json +1 -1
- package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
- package/dist/dynamic/components/NumberInput/package.json +1 -1
- package/dist/dynamic/components/OverflowMenu/package.json +1 -1
- package/dist/dynamic/components/Page/package.json +1 -1
- package/dist/dynamic/components/Pagination/package.json +1 -1
- package/dist/dynamic/components/Panel/package.json +1 -1
- package/dist/dynamic/components/Popover/package.json +1 -1
- package/dist/dynamic/components/Progress/package.json +1 -1
- package/dist/dynamic/components/ProgressStepper/package.json +1 -1
- package/dist/dynamic/components/Radio/package.json +1 -1
- package/dist/dynamic/components/SearchInput/package.json +1 -1
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/dynamic/components/Sidebar/package.json +1 -1
- package/dist/dynamic/components/SimpleList/package.json +1 -1
- package/dist/dynamic/components/Skeleton/package.json +1 -1
- package/dist/dynamic/components/SkipToContent/package.json +1 -1
- package/dist/dynamic/components/Slider/package.json +1 -1
- package/dist/dynamic/components/Spinner/package.json +1 -1
- package/dist/dynamic/components/Switch/package.json +1 -1
- package/dist/dynamic/components/Tabs/package.json +1 -1
- package/dist/dynamic/components/TextArea/package.json +1 -1
- package/dist/dynamic/components/TextInput/package.json +1 -1
- package/dist/dynamic/components/TextInputGroup/package.json +1 -1
- package/dist/dynamic/components/TimePicker/package.json +1 -1
- package/dist/dynamic/components/Timestamp/package.json +1 -1
- package/dist/dynamic/components/Title/package.json +1 -1
- package/dist/dynamic/components/ToggleGroup/package.json +1 -1
- package/dist/dynamic/components/Toolbar/package.json +1 -1
- package/dist/dynamic/components/Tooltip/package.json +1 -1
- package/dist/dynamic/components/TreeView/package.json +1 -1
- package/dist/dynamic/components/Truncate/package.json +1 -1
- package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
- package/dist/dynamic/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
- package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
- package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Modal/package.json +1 -1
- package/dist/dynamic/deprecated/components/Tile/package.json +1 -1
- package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
- package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
- package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
- package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
- package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
- package/dist/dynamic/helpers/constants/package.json +1 -1
- package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
- package/dist/dynamic/helpers/fileUtils/package.json +1 -1
- package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
- package/dist/dynamic/helpers/package.json +1 -1
- package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
- package/dist/dynamic/helpers/typeUtils/package.json +1 -1
- package/dist/dynamic/helpers/useInterval/package.json +1 -1
- package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
- package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
- package/dist/dynamic/helpers/util/package.json +1 -1
- package/dist/dynamic/layouts/Bullseye/package.json +1 -1
- package/dist/dynamic/layouts/Flex/package.json +1 -1
- package/dist/dynamic/layouts/Gallery/package.json +1 -1
- package/dist/dynamic/layouts/Grid/package.json +1 -1
- package/dist/dynamic/layouts/Level/package.json +1 -1
- package/dist/dynamic/layouts/Split/package.json +1 -1
- package/dist/dynamic/layouts/Stack/package.json +1 -1
- package/dist/dynamic/styles/package.json +1 -1
- package/dist/esm/components/Form/FormGroupLabelHelp.js +2 -2
- package/dist/esm/components/Form/FormGroupLabelHelp.js.map +1 -1
- package/dist/esm/components/Nav/NavExpandable.d.ts.map +1 -1
- package/dist/esm/components/Nav/NavExpandable.js +1 -1
- package/dist/esm/components/Nav/NavExpandable.js.map +1 -1
- package/dist/esm/components/Truncate/Truncate.d.ts.map +1 -1
- package/dist/esm/components/Truncate/Truncate.js +6 -3
- package/dist/esm/components/Truncate/Truncate.js.map +1 -1
- package/dist/js/components/Form/FormGroupLabelHelp.js +2 -2
- package/dist/js/components/Form/FormGroupLabelHelp.js.map +1 -1
- package/dist/js/components/Nav/NavExpandable.d.ts.map +1 -1
- package/dist/js/components/Nav/NavExpandable.js +1 -1
- package/dist/js/components/Nav/NavExpandable.js.map +1 -1
- package/dist/js/components/Truncate/Truncate.d.ts.map +1 -1
- package/dist/js/components/Truncate/Truncate.js +6 -3
- package/dist/js/components/Truncate/Truncate.js.map +1 -1
- package/dist/umd/assets/{output-ZyJGbFvY.css → output-CuGIDyMV.css} +19216 -19216
- package/dist/umd/react-core.min.js +3 -3
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +2 -2
- package/src/components/Form/FormGroupLabelHelp.tsx +2 -2
- package/src/components/LoginPage/examples/LoginPageBasic.tsx +1 -1
- package/src/components/LoginPage/examples/LoginPageLanguageSelect.tsx +1 -1
- package/src/components/LoginPage/examples/LoginPageShowHidePassword.tsx +1 -1
- package/src/components/Nav/NavExpandable.tsx +6 -1
- package/src/components/Nav/__tests__/Generated/__snapshots__/NavExpandable.test.tsx.snap +1 -0
- package/src/components/Nav/__tests__/NavExpandable.test.tsx +15 -0
- package/src/components/Nav/__tests__/__snapshots__/Nav.test.tsx.snap +3 -0
- package/src/components/Page/examples/Page.md +1 -1
- package/src/components/Page/examples/PageCenteredSection.tsx +3 -4
- package/src/components/Page/examples/PageGroupSection.tsx +9 -3
- package/src/components/Page/examples/PageHorizontalNav.tsx +9 -3
- package/src/components/Page/examples/PageMainSectionPadding.tsx +12 -4
- package/src/components/Page/examples/PageMainSectionVariations.tsx +6 -6
- package/src/components/Page/examples/PageMultipleSidebarBody.tsx +9 -3
- package/src/components/Page/examples/PageUncontrolledNav.tsx +9 -3
- package/src/components/Page/examples/PageVerticalNav.tsx +9 -3
- package/src/components/Page/examples/PageWithOrWithoutFill.tsx +8 -4
- package/src/components/Select/examples/Select.md +3 -26
- package/src/components/Skeleton/examples/SkeletonText.tsx +0 -1
- package/src/components/Truncate/Truncate.tsx +8 -3
- package/src/components/Truncate/__tests__/Truncate.test.tsx +4 -2
- package/src/components/Truncate/__tests__/__snapshots__/Truncate.test.tsx.snap +2 -2
- package/src/demos/Banner.md +6 -6
- package/src/demos/CardDemos.md +1 -1
- package/src/demos/CardView/examples/CardView.tsx +9 -4
- package/src/demos/DataList/examples/DataListActionable.tsx +5 -3
- package/src/demos/DataList/examples/DataListBasic.tsx +2 -2
- package/src/demos/DataList/examples/DataListExpandableControlInToolbar.tsx +2 -2
- package/src/demos/DataList/examples/DataListStaticBottomPagination.tsx +4 -2
- package/src/demos/DescriptionList/examples/DescriptionListBasic.tsx +4 -4
- package/src/demos/DescriptionList/examples/DescriptionListInDrawer.tsx +5 -3
- package/src/demos/JumpLinks.md +5 -5
- package/src/demos/NotificationDrawer/examples/NotificationDrawerBasic.tsx +3 -3
- package/src/demos/NotificationDrawer/examples/NotificationDrawerGrouped.tsx +3 -3
- package/src/demos/PasswordGenerator.md +1 -1
- package/src/demos/RTL/examples/PaginatedTable.jsx +2 -2
- package/src/demos/RTL/examples/PaginatedTable.tsx +2 -2
- package/src/demos/Tabs.md +6 -6
- package/src/demos/examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx +6 -6
- package/src/demos/examples/BackToTop/BackToTopNameDemo.tsx +2 -2
- package/src/demos/examples/Card/CardAggregateStatus.tsx +2 -6
- package/src/demos/examples/Card/CardDetails.tsx +2 -3
- package/src/demos/examples/Card/CardEventsView.tsx +2 -3
- package/src/demos/examples/Card/CardLogView.tsx +2 -3
- package/src/demos/examples/Card/CardStatus.tsx +0 -1
- package/src/demos/examples/Card/CardUtilizationDemo3.tsx +0 -1
- package/src/demos/examples/Masthead/MastheadWithHorizontalNav.tsx +5 -3
- package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +3 -3
- package/src/demos/examples/Nav/NavDefault.tsx +3 -3
- package/src/demos/examples/Nav/NavDrilldown.tsx +1 -1
- package/src/demos/examples/Nav/NavExpandable.tsx +3 -3
- package/src/demos/examples/Nav/NavFlyout.tsx +9 -3
- package/src/demos/examples/Nav/NavGrouped.tsx +14 -6
- package/src/demos/examples/Nav/NavHorizontal.tsx +3 -3
- package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +5 -5
- package/src/demos/examples/Nav/NavManual.tsx +3 -3
- package/src/demos/examples/Nav/NavWithSubnav.tsx +5 -5
- package/src/demos/examples/Page/PageContextSelector.tsx +5 -3
- package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +3 -3
- package/src/demos/examples/Page/PageStickySectionGroup.tsx +3 -3
- package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +3 -3
- package/src/demos/examples/PrimaryDetail/PrimaryDetailCardView.tsx +5 -4
- package/src/demos/examples/PrimaryDetail/PrimaryDetailContentPadding.tsx +3 -3
- package/src/demos/examples/PrimaryDetail/PrimaryDetailDataListInCard.tsx +3 -3
- package/src/demos/examples/PrimaryDetail/PrimaryDetailFullPage.tsx +3 -3
- package/src/demos/examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx +3 -3
- package/src/demos/examples/PrimaryDetail/PrimaryDetailSimpleListInCard.tsx +3 -3
- package/src/demos/examples/Skeleton/SkeletonCard.tsx +5 -3
- package/src/demos/examples/Tabs/ModalTabs.tsx +3 -3
- package/src/demos/examples/Tabs/NestedTabs.tsx +2 -2
- package/src/demos/examples/Tabs/NestedUnindentedTabs.tsx +2 -2
- package/src/demos/examples/Tabs/TabsAndTable.tsx +3 -3
- package/src/demos/examples/Toolbar/ConsoleLogViewerToolbar.tsx +1 -1
- package/src/demos/examples/Wizard/InModal.tsx +1 -1
- package/src/demos/examples/Wizard/InPage.tsx +1 -1
- package/src/demos/examples/Wizard/InPageWithDrawer.tsx +3 -3
- package/src/demos/examples/Wizard/InPageWithDrawerInformationalStep.tsx +3 -3
|
@@ -133,9 +133,9 @@ export const DataListExpandableControlInToolbar: React.FunctionComponent = () =>
|
|
|
133
133
|
return (
|
|
134
134
|
<Fragment>
|
|
135
135
|
<DashboardWrapper mainContainerId="main-content-datalist-view-default-nav" breadcrumb={null}>
|
|
136
|
-
<PageSection>
|
|
136
|
+
<PageSection aria-labelledby="projects">
|
|
137
137
|
<Content>
|
|
138
|
-
<h1>Projects</h1>
|
|
138
|
+
<h1 id="projects">Projects</h1>
|
|
139
139
|
<p>This is a demo that showcases PatternFly data list</p>
|
|
140
140
|
</Content>
|
|
141
141
|
</PageSection>
|
|
@@ -113,9 +113,11 @@ export const DataListStaticBottomPagination: React.FunctionComponent = () => {
|
|
|
113
113
|
|
|
114
114
|
return (
|
|
115
115
|
<DashboardWrapper mainContainerId="main-content-datalist-view-pagination" breadcrumb={null}>
|
|
116
|
-
<PageSection>
|
|
116
|
+
<PageSection aria-labelledby="projects">
|
|
117
117
|
<Content>
|
|
118
|
-
<Content component="h1">
|
|
118
|
+
<Content component="h1" id="projects">
|
|
119
|
+
Projects
|
|
120
|
+
</Content>
|
|
119
121
|
<Content component="p">This is a demo that showcases PatternFly Data List</Content>
|
|
120
122
|
</Content>
|
|
121
123
|
</PageSection>
|
|
@@ -18,16 +18,16 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
|
|
|
18
18
|
|
|
19
19
|
export const DescriptionListBasic: React.FunctionComponent = () => (
|
|
20
20
|
<DashboardWrapper>
|
|
21
|
-
<PageSection>
|
|
21
|
+
<PageSection aria-labelledby="projects">
|
|
22
22
|
<Content>
|
|
23
|
-
<
|
|
23
|
+
<h1 id="projects">Projects</h1>
|
|
24
24
|
<Content component="p">This is a full page demo</Content>
|
|
25
25
|
</Content>
|
|
26
26
|
</PageSection>
|
|
27
|
-
<PageSection>
|
|
27
|
+
<PageSection aria-labelledby="details">
|
|
28
28
|
<Card>
|
|
29
29
|
<CardHeader>
|
|
30
|
-
<Title headingLevel="h2" size="lg">
|
|
30
|
+
<Title headingLevel="h2" size="lg" id="details">
|
|
31
31
|
Details
|
|
32
32
|
</Title>
|
|
33
33
|
</CardHeader>
|
|
@@ -150,13 +150,15 @@ export const DescriptionListInDrawer: React.FunctionComponent = () => {
|
|
|
150
150
|
isNotificationDrawerExpanded={isExpanded}
|
|
151
151
|
onNotificationDrawerExpand={onExpand}
|
|
152
152
|
>
|
|
153
|
-
<PageSection>
|
|
153
|
+
<PageSection aria-labelledby="main-title">
|
|
154
154
|
<Content>
|
|
155
|
-
<Content component="h1"
|
|
155
|
+
<Content component="h1" id="main-title">
|
|
156
|
+
Main title
|
|
157
|
+
</Content>
|
|
156
158
|
<Content component="p">This is a full page demo.</Content>
|
|
157
159
|
</Content>
|
|
158
160
|
</PageSection>
|
|
159
|
-
<PageSection>{drawerContent}</PageSection>
|
|
161
|
+
<PageSection aria-label="Drawer Content">{drawerContent}</PageSection>
|
|
160
162
|
</DashboardWrapper>
|
|
161
163
|
);
|
|
162
164
|
};
|
package/src/demos/JumpLinks.md
CHANGED
|
@@ -79,8 +79,8 @@ ScrollspyH2 = () => {
|
|
|
79
79
|
|
|
80
80
|
return (
|
|
81
81
|
<DashboardWrapper breadcrumb={null} mainContainerId="scrollable-element">
|
|
82
|
-
<PageSection>
|
|
83
|
-
<Title headingLevel="h1" size="2xl">
|
|
82
|
+
<PageSection aria-labelledby='main-title'>
|
|
83
|
+
<Title headingLevel="h1" size="2xl" id='main-title'>
|
|
84
84
|
Main title
|
|
85
85
|
</Title>
|
|
86
86
|
<Switch
|
|
@@ -90,10 +90,10 @@ ScrollspyH2 = () => {
|
|
|
90
90
|
onChange={(_event, check) => setIsVertical(check)}
|
|
91
91
|
/>
|
|
92
92
|
</PageSection>
|
|
93
|
-
<PageSection padding={{ default: 'noPadding' }}>
|
|
93
|
+
<PageSection padding={{ default: 'noPadding' }} >
|
|
94
94
|
<Sidebar hasGutter orientation={!isVertical && 'stack'}>
|
|
95
95
|
<SidebarPanel variant="sticky">
|
|
96
|
-
<PageSection>
|
|
96
|
+
<PageSection aria-label='Jump links navigation'>
|
|
97
97
|
<JumpLinks
|
|
98
98
|
isVertical={isVertical}
|
|
99
99
|
isCentered={!isVertical}
|
|
@@ -113,7 +113,7 @@ ScrollspyH2 = () => {
|
|
|
113
113
|
</PageSection>
|
|
114
114
|
</SidebarPanel>
|
|
115
115
|
<SidebarContent hasNoBackground>
|
|
116
|
-
<PageSection>
|
|
116
|
+
<PageSection aria-label='Main content'>
|
|
117
117
|
<Content>
|
|
118
118
|
{headings.map(i => (
|
|
119
119
|
<div key={i} style={{ maxWidth: '800px', marginBottom: '32px' }}>
|
|
@@ -535,16 +535,16 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
|
|
|
535
535
|
breadcrumb={PageBreadcrumb}
|
|
536
536
|
mainContainerId={pageId}
|
|
537
537
|
>
|
|
538
|
-
<PageSection>
|
|
538
|
+
<PageSection aria-labelledby="main-title">
|
|
539
539
|
<Content>
|
|
540
|
-
<h1>Main title</h1>
|
|
540
|
+
<h1 id="main-title">Main title</h1>
|
|
541
541
|
<p>
|
|
542
542
|
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
543
543
|
of its relative line height of 1.5.
|
|
544
544
|
</p>
|
|
545
545
|
</Content>
|
|
546
546
|
</PageSection>
|
|
547
|
-
<PageSection>Panel section content</PageSection>
|
|
547
|
+
<PageSection aria-label="Panel section">Panel section content</PageSection>
|
|
548
548
|
</Page>
|
|
549
549
|
</Fragment>
|
|
550
550
|
);
|
|
@@ -770,16 +770,16 @@ export const NotificationDrawerGrouped: React.FunctionComponent = () => {
|
|
|
770
770
|
breadcrumb={PageBreadcrumb}
|
|
771
771
|
mainContainerId={pageId}
|
|
772
772
|
>
|
|
773
|
-
<PageSection>
|
|
773
|
+
<PageSection aria-labelledby="main-title">
|
|
774
774
|
<Content>
|
|
775
|
-
<h1>Main title</h1>
|
|
775
|
+
<h1 id="main-title">Main title</h1>
|
|
776
776
|
<p>
|
|
777
777
|
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
778
778
|
of its relative line height of 1.5.
|
|
779
779
|
</p>
|
|
780
780
|
</Content>
|
|
781
781
|
</PageSection>
|
|
782
|
-
<PageSection>Panel section content</PageSection>
|
|
782
|
+
<PageSection aria-label="Panel section">Panel section content</PageSection>
|
|
783
783
|
</Page>
|
|
784
784
|
</Fragment>
|
|
785
785
|
);
|
|
@@ -45,7 +45,7 @@ const PasswordGenerator: React.FunctionComponent = () => {
|
|
|
45
45
|
const [isAutocompleteOpen, setIsAutocompleteOpen] = useState<boolean>(false);
|
|
46
46
|
const [passwordHidden, setPasswordHidden] = useState<boolean>(true);
|
|
47
47
|
const searchInputRef = useRef(null);
|
|
48
|
-
const autocompleteRef =
|
|
48
|
+
const autocompleteRef = useRef(null);
|
|
49
49
|
|
|
50
50
|
useEffect(() => {
|
|
51
51
|
window.addEventListener('keydown', handleMenuKeys);
|
|
@@ -444,9 +444,9 @@ export const PaginatedTableAction = () => {
|
|
|
444
444
|
))}
|
|
445
445
|
</Breadcrumb>
|
|
446
446
|
</PageBreadcrumb>
|
|
447
|
-
<PageSection variant="light">
|
|
447
|
+
<PageSection variant="light" aria-labelledby='main-title' >
|
|
448
448
|
<Content>
|
|
449
|
-
<h1>{translation.title}</h1>
|
|
449
|
+
<h1 id='main-title'>{translation.title}</h1>
|
|
450
450
|
<p>{translation.body}</p>
|
|
451
451
|
</Content>
|
|
452
452
|
</PageSection>
|
|
@@ -470,9 +470,9 @@ export const PaginatedTableAction: React.FunctionComponent = () => {
|
|
|
470
470
|
))}
|
|
471
471
|
</Breadcrumb>
|
|
472
472
|
</PageBreadcrumb>
|
|
473
|
-
<PageSection variant="light">
|
|
473
|
+
<PageSection variant="light" aria-labelledby="main-title">
|
|
474
474
|
<Content>
|
|
475
|
-
<h1>{translation.title}</h1>
|
|
475
|
+
<h1 id="main-title">{translation.title}</h1>
|
|
476
476
|
<p>{translation.body}</p>
|
|
477
477
|
</Content>
|
|
478
478
|
</PageSection>
|
package/src/demos/Tabs.md
CHANGED
|
@@ -159,7 +159,7 @@ TabsOpenDemo = () => {
|
|
|
159
159
|
return (
|
|
160
160
|
<DashboardWrapper hasNoBreadcrumb>
|
|
161
161
|
{tabsBreadcrumb}
|
|
162
|
-
<PageSection isWidthLimited>
|
|
162
|
+
<PageSection isWidthLimited aria-label='Pod header'>
|
|
163
163
|
<Flex
|
|
164
164
|
spaceItems={{ default: 'spaceItemsMd' }}
|
|
165
165
|
alignItems={{ default: 'alignItemsFlexStart' }}
|
|
@@ -178,7 +178,7 @@ TabsOpenDemo = () => {
|
|
|
178
178
|
</FlexItem>
|
|
179
179
|
</Flex>
|
|
180
180
|
</PageSection>
|
|
181
|
-
<PageSection type="tabs" isWidthLimited>
|
|
181
|
+
<PageSection type="tabs" isWidthLimited aria-label='Pod navigation tabs'>
|
|
182
182
|
<Tabs activeKey={activeTabKey} onSelect={handleTabClick} usePageInsets id="open-tabs-example-tabs-list">
|
|
183
183
|
<Tab eventKey={0} title={<TabTitleText>Details</TabTitleText>} tabContentId={`tabContent${0}`} />
|
|
184
184
|
<Tab eventKey={1} title={<TabTitleText>YAML</TabTitleText>} tabContentId={`tabContent${1}`} />
|
|
@@ -187,7 +187,7 @@ TabsOpenDemo = () => {
|
|
|
187
187
|
<Tab eventKey={4} title={<TabTitleText>Terminal</TabTitleText>} tabContentId={`tabContent${4}`} />
|
|
188
188
|
</Tabs>
|
|
189
189
|
</PageSection>
|
|
190
|
-
<PageSection isWidthLimited>
|
|
190
|
+
<PageSection isWidthLimited aria-label='Pod content'>
|
|
191
191
|
<TabContent key={0} eventKey={0} id={`tabContent${0}`} activeKey={activeTabKey} hidden={0 !== activeTabKey}>
|
|
192
192
|
<TabContentBody>{tabContent}</TabContentBody>
|
|
193
193
|
</TabContent>
|
|
@@ -355,7 +355,7 @@ TabsOpenWithSecondaryTabsDemo = () => {
|
|
|
355
355
|
return (
|
|
356
356
|
<DashboardWrapper hasNoBreadcrumb>
|
|
357
357
|
{tabsBreadcrumb}
|
|
358
|
-
<PageSection isWidthLimited>
|
|
358
|
+
<PageSection isWidthLimited aria-label='Pod header'>
|
|
359
359
|
<Flex
|
|
360
360
|
spaceItems={{ default: 'spaceItemsMd' }}
|
|
361
361
|
alignItems={{ default: 'alignItemsFlexStart' }}
|
|
@@ -374,7 +374,7 @@ TabsOpenWithSecondaryTabsDemo = () => {
|
|
|
374
374
|
</FlexItem>
|
|
375
375
|
</Flex>
|
|
376
376
|
</PageSection>
|
|
377
|
-
<PageSection type="tabs" isWidthLimited>
|
|
377
|
+
<PageSection type="tabs" isWidthLimited aria-label='Pod navigation tabs'>
|
|
378
378
|
<Tabs activeKey={activeTabKey} onSelect={handleTabClick} usePageInsets id="open-tabs-example-tabs-list">
|
|
379
379
|
<Tab eventKey={0} title={<TabTitleText>Details</TabTitleText>} tabContentId={`tabContent${0}`} />
|
|
380
380
|
<Tab eventKey={1} title={<TabTitleText>YAML</TabTitleText>} tabContentId={`tabContent${1}`} />
|
|
@@ -383,7 +383,7 @@ TabsOpenWithSecondaryTabsDemo = () => {
|
|
|
383
383
|
<Tab eventKey={4} title={<TabTitleText>Terminal</TabTitleText>} tabContentId={`tabContent${4}`} />
|
|
384
384
|
</Tabs>
|
|
385
385
|
</PageSection>
|
|
386
|
-
<PageSection isWidthLimited padding={{ default: 'noPadding' }}>
|
|
386
|
+
<PageSection isWidthLimited padding={{ default: 'noPadding' }} aria-label='Pod content'>
|
|
387
387
|
<TabContent key={0} eventKey={0} id={`tabContent${0}`} activeKey={activeTabKey} hidden={0 !== activeTabKey}>
|
|
388
388
|
<TabContentBody>
|
|
389
389
|
<Tabs
|
|
@@ -312,9 +312,9 @@ export const AlertGroupToastWithNotificationDrawer: React.FunctionComponent = ()
|
|
|
312
312
|
notificationDrawer={notificationDrawer}
|
|
313
313
|
isNotificationDrawerExpanded={isDrawerExpanded}
|
|
314
314
|
>
|
|
315
|
-
<PageSection>
|
|
315
|
+
<PageSection aria-labelledby="alert-group-title">
|
|
316
316
|
<Content>
|
|
317
|
-
<h1>Alert group with notification drawer demo</h1>
|
|
317
|
+
<h1 id="alert-group-title">Alert group with notification drawer demo</h1>
|
|
318
318
|
<p>
|
|
319
319
|
New alerts can be added with the following buttons. Each alert has a timeout of 7 seconds, however, even
|
|
320
320
|
after the timeout expires, all alerts are still visible in the notification drawer. By default, only 3
|
|
@@ -324,7 +324,7 @@ export const AlertGroupToastWithNotificationDrawer: React.FunctionComponent = ()
|
|
|
324
324
|
</Content>
|
|
325
325
|
</PageSection>
|
|
326
326
|
|
|
327
|
-
<PageSection>
|
|
327
|
+
<PageSection aria-label="Alert Buttons">
|
|
328
328
|
<Button variant="secondary" onClick={() => addNewNotification('success')} style={alertButtonStyle}>
|
|
329
329
|
Add toast success alert
|
|
330
330
|
</Button>
|
|
@@ -344,10 +344,10 @@ export const AlertGroupToastWithNotificationDrawer: React.FunctionComponent = ()
|
|
|
344
344
|
</Button>
|
|
345
345
|
</PageSection>
|
|
346
346
|
|
|
347
|
-
<PageSection>
|
|
347
|
+
<PageSection aria-labelledby="max-displayed-alerts-title">
|
|
348
348
|
<Content>
|
|
349
349
|
<br />
|
|
350
|
-
<h2>Max displayed alerts</h2>
|
|
350
|
+
<h2 id="max-displayed-alerts-title">Max displayed alerts</h2>
|
|
351
351
|
<p>Adjust the maximum number of displayed alerts.</p>
|
|
352
352
|
</Content>
|
|
353
353
|
<NumberInput
|
|
@@ -364,7 +364,7 @@ export const AlertGroupToastWithNotificationDrawer: React.FunctionComponent = ()
|
|
|
364
364
|
style={{ margin: '12px 0' }}
|
|
365
365
|
/>
|
|
366
366
|
</PageSection>
|
|
367
|
-
<PageSection>
|
|
367
|
+
<PageSection component="div">
|
|
368
368
|
<AlertGroup
|
|
369
369
|
hasAnimations
|
|
370
370
|
isToast
|
|
@@ -11,9 +11,9 @@ export const Name = () => {
|
|
|
11
11
|
|
|
12
12
|
return (
|
|
13
13
|
<DashboardWrapper breadcrumb={null}>
|
|
14
|
-
<PageSection>
|
|
14
|
+
<PageSection aria-labelledby="main-title">
|
|
15
15
|
<Content>
|
|
16
|
-
<h1>Main title</h1>
|
|
16
|
+
<h1 id="main-title">Main title</h1>
|
|
17
17
|
<p>
|
|
18
18
|
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
19
19
|
of it’s relative line height of 1.5.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable camelcase */
|
|
2
1
|
import { Fragment } from 'react';
|
|
3
2
|
import {
|
|
4
3
|
Card,
|
|
@@ -16,7 +15,7 @@ import {
|
|
|
16
15
|
import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
17
16
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
18
17
|
import ExclamationTriangleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
|
|
19
|
-
import
|
|
18
|
+
import cssGridTemplateColumnsMin from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';
|
|
20
19
|
|
|
21
20
|
interface ContentType {
|
|
22
21
|
icon?: React.ReactNode;
|
|
@@ -283,10 +282,7 @@ export const CardAggregateStatus: React.FunctionComponent = () => {
|
|
|
283
282
|
}
|
|
284
283
|
return (
|
|
285
284
|
<GridItem key={groupIndex}>
|
|
286
|
-
<Gallery
|
|
287
|
-
hasGutter
|
|
288
|
-
style={{ [l_gallery_GridTemplateColumns_min.name]: galleryWidth } as React.CSSProperties}
|
|
289
|
-
>
|
|
285
|
+
<Gallery hasGutter style={{ [cssGridTemplateColumnsMin.name]: galleryWidth } as React.CSSProperties}>
|
|
290
286
|
{cardData[cardGroup].map(({ title, content, layout }, cardIndex: number) => (
|
|
291
287
|
<Card
|
|
292
288
|
style={{ textAlign: cardAlign } as React.CSSProperties}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable camelcase */
|
|
2
1
|
import {
|
|
3
2
|
Card,
|
|
4
3
|
CardTitle,
|
|
@@ -12,10 +11,10 @@ import {
|
|
|
12
11
|
DescriptionListDescription,
|
|
13
12
|
Divider
|
|
14
13
|
} from '@patternfly/react-core';
|
|
15
|
-
import
|
|
14
|
+
import cssGridTemplateColumnsMin from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';
|
|
16
15
|
|
|
17
16
|
export const CardDetailsDemo: React.FunctionComponent = () => (
|
|
18
|
-
<Gallery hasGutter style={{ [
|
|
17
|
+
<Gallery hasGutter style={{ [cssGridTemplateColumnsMin.name]: '260px' } as React.CSSProperties}>
|
|
19
18
|
<Card>
|
|
20
19
|
<CardTitle>
|
|
21
20
|
<Title headingLevel="h4" size="xl">
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Fragment, useState } from 'react';
|
|
2
|
-
/* eslint-disable camelcase */
|
|
3
2
|
import {
|
|
4
3
|
Card,
|
|
5
4
|
CardHeader,
|
|
@@ -26,7 +25,7 @@ import {
|
|
|
26
25
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
|
|
27
26
|
import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
|
|
28
27
|
import flex from '@patternfly/react-styles/css/utilities/Flex/flex';
|
|
29
|
-
import
|
|
28
|
+
import cssGridTemplateColumnsMin from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';
|
|
30
29
|
|
|
31
30
|
export const CardEventsView: React.FunctionComponent = () => {
|
|
32
31
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -62,7 +61,7 @@ export const CardEventsView: React.FunctionComponent = () => {
|
|
|
62
61
|
<code>baseline</code> alignment.
|
|
63
62
|
<br />
|
|
64
63
|
<br />
|
|
65
|
-
<Gallery hasGutter style={{ [
|
|
64
|
+
<Gallery hasGutter style={{ [cssGridTemplateColumnsMin.name]: '360px' } as React.CSSProperties}>
|
|
66
65
|
<Card id="card-events-view-example">
|
|
67
66
|
<CardHeader className={flex.alignItemsFlexStart} actions={{ actions: headerActions, hasNoOffset: true }}>
|
|
68
67
|
<CardTitle>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Fragment, useState } from 'react';
|
|
2
|
-
/* eslint-disable camelcase */
|
|
3
2
|
import {
|
|
4
3
|
Card,
|
|
5
4
|
CardHeader,
|
|
@@ -21,7 +20,7 @@ import {
|
|
|
21
20
|
Title
|
|
22
21
|
} from '@patternfly/react-core';
|
|
23
22
|
import flex from '@patternfly/react-styles/css/utilities/Flex/flex';
|
|
24
|
-
import
|
|
23
|
+
import cssGridTemplateColumnsMin from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';
|
|
25
24
|
|
|
26
25
|
export const CardLogView: React.FunctionComponent = () => {
|
|
27
26
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -61,7 +60,7 @@ export const CardLogView: React.FunctionComponent = () => {
|
|
|
61
60
|
<code>baseline</code> alignment.
|
|
62
61
|
<br />
|
|
63
62
|
<br />
|
|
64
|
-
<Gallery hasGutter style={{ [
|
|
63
|
+
<Gallery hasGutter style={{ [cssGridTemplateColumnsMin.name]: '360px' } as React.CSSProperties}>
|
|
65
64
|
<Card id="card-log-view-example">
|
|
66
65
|
<CardHeader className={flex.alignItemsFlexStart} actions={{ actions: headerActions, hasNoOffset: true }}>
|
|
67
66
|
<CardTitle>
|
|
@@ -308,15 +308,17 @@ export const MastheadWithHorizontalNav: React.FunctionComponent = () => {
|
|
|
308
308
|
isBreadcrumbWidthLimited
|
|
309
309
|
isBreadcrumbGrouped
|
|
310
310
|
additionalGroupedContent={
|
|
311
|
-
<PageSection>
|
|
311
|
+
<PageSection aria-labelledby="main-title">
|
|
312
312
|
<Content>
|
|
313
|
-
<Content component="h1"
|
|
313
|
+
<Content component="h1" id="main-title">
|
|
314
|
+
Main title
|
|
315
|
+
</Content>
|
|
314
316
|
<Content component="p">This is a full page demo.</Content>
|
|
315
317
|
</Content>
|
|
316
318
|
</PageSection>
|
|
317
319
|
}
|
|
318
320
|
>
|
|
319
|
-
<PageSection>
|
|
321
|
+
<PageSection aria-label="Card gallery">
|
|
320
322
|
<Gallery hasGutter>
|
|
321
323
|
{Array.from({ length: 10 }).map((_value, index) => (
|
|
322
324
|
<GalleryItem key={index}>
|
|
@@ -544,15 +544,15 @@ export const MastheadWithUtilitiesAndUserDropdownMenu: React.FunctionComponent =
|
|
|
544
544
|
isBreadcrumbWidthLimited
|
|
545
545
|
isBreadcrumbGrouped
|
|
546
546
|
additionalGroupedContent={
|
|
547
|
-
<PageSection>
|
|
547
|
+
<PageSection aria-labelledby="main-title">
|
|
548
548
|
<Content>
|
|
549
|
-
<h1>Main title</h1>
|
|
549
|
+
<h1 id="main-title">Main title</h1>
|
|
550
550
|
<p>This is a full page demo.</p>
|
|
551
551
|
</Content>
|
|
552
552
|
</PageSection>
|
|
553
553
|
}
|
|
554
554
|
>
|
|
555
|
-
<PageSection>
|
|
555
|
+
<PageSection aria-label="Card gallery">
|
|
556
556
|
<Gallery hasGutter>
|
|
557
557
|
{Array.from({ length: 10 }).map((_value, index) => (
|
|
558
558
|
<GalleryItem key={index}>
|
|
@@ -84,16 +84,16 @@ export const NavDefault: React.FunctionComponent = () => {
|
|
|
84
84
|
breadcrumb={DashboardBreadcrumb}
|
|
85
85
|
mainContainerId={pageId}
|
|
86
86
|
>
|
|
87
|
-
<PageSection>
|
|
87
|
+
<PageSection aria-labelledby="main-title">
|
|
88
88
|
<Content>
|
|
89
|
-
<h1>Main title</h1>
|
|
89
|
+
<h1 id="main-title">Main title</h1>
|
|
90
90
|
<p>
|
|
91
91
|
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
92
92
|
of its relative line height of 1.5.
|
|
93
93
|
</p>
|
|
94
94
|
</Content>
|
|
95
95
|
</PageSection>
|
|
96
|
-
<PageSection>
|
|
96
|
+
<PageSection aria-label="Card gallery">
|
|
97
97
|
<Gallery hasGutter>
|
|
98
98
|
{Array.from({ length: 10 }).map((_value, index) => (
|
|
99
99
|
<GalleryItem key={index}>
|
|
@@ -129,7 +129,7 @@ export const NavDrilldown: React.FunctionComponent = () => {
|
|
|
129
129
|
|
|
130
130
|
return (
|
|
131
131
|
<Page masthead={<DashboardHeader />} sidebar={sidebar}>
|
|
132
|
-
<PageSection>
|
|
132
|
+
<PageSection aria-label="Navigation layer">
|
|
133
133
|
<strong>Nav Layer: </strong>
|
|
134
134
|
{navLayer}
|
|
135
135
|
</PageSection>
|
|
@@ -110,16 +110,16 @@ export const NavExpandableDemo: React.FunctionComponent = () => {
|
|
|
110
110
|
breadcrumb={DashboardBreadcrumb}
|
|
111
111
|
mainContainerId={pageId}
|
|
112
112
|
>
|
|
113
|
-
<PageSection>
|
|
113
|
+
<PageSection aria-labelledby="main-title">
|
|
114
114
|
<Content>
|
|
115
|
-
<h1>Main title</h1>
|
|
115
|
+
<h1 id="main-title">Main title</h1>
|
|
116
116
|
<p>
|
|
117
117
|
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
118
118
|
of its relative line height of 1.5.
|
|
119
119
|
</p>
|
|
120
120
|
</Content>
|
|
121
121
|
</PageSection>
|
|
122
|
-
<PageSection>
|
|
122
|
+
<PageSection aria-label="Card gallery">
|
|
123
123
|
<Gallery hasGutter>
|
|
124
124
|
{Array.from({ length: 10 }).map((_value, index) => (
|
|
125
125
|
<GalleryItem key={index}>
|
|
@@ -284,9 +284,15 @@ export const NavFlyout: React.FunctionComponent = () => {
|
|
|
284
284
|
skipToContent={PageSkipToContent}
|
|
285
285
|
mainContainerId={pageId}
|
|
286
286
|
>
|
|
287
|
-
<PageSection
|
|
288
|
-
|
|
289
|
-
|
|
287
|
+
<PageSection aria-labelledby="section-1">
|
|
288
|
+
<h2 id="section-1">Section 1</h2>
|
|
289
|
+
</PageSection>
|
|
290
|
+
<PageSection aria-labelledby="section-2">
|
|
291
|
+
<h2 id="section-2">Section 2</h2>
|
|
292
|
+
</PageSection>
|
|
293
|
+
<PageSection aria-labelledby="section-3">
|
|
294
|
+
<h2 id="section-3">Section 3</h2>
|
|
295
|
+
</PageSection>
|
|
290
296
|
</Page>
|
|
291
297
|
);
|
|
292
298
|
};
|
|
@@ -92,19 +92,27 @@ export const NavGrouped: React.FunctionComponent = () => {
|
|
|
92
92
|
skipToContent={PageSkipToContent}
|
|
93
93
|
mainContainerId={pageId}
|
|
94
94
|
>
|
|
95
|
-
<PageSection>
|
|
95
|
+
<PageSection aria-labelledby="main-title">
|
|
96
96
|
<Content>
|
|
97
|
-
<h1>Main title</h1>
|
|
97
|
+
<h1 id="main-title">Main title</h1>
|
|
98
98
|
<p>
|
|
99
99
|
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
100
100
|
of its relative line height of 1.5.
|
|
101
101
|
</p>
|
|
102
102
|
</Content>
|
|
103
103
|
</PageSection>
|
|
104
|
-
<PageSection
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
<PageSection>
|
|
104
|
+
<PageSection aria-labelledby="section-1">
|
|
105
|
+
<h2 id="section-1">Section 1</h2>
|
|
106
|
+
</PageSection>
|
|
107
|
+
<PageSection aria-labelledby="section-2">
|
|
108
|
+
<h2 id="section-2">Section 2</h2>
|
|
109
|
+
</PageSection>
|
|
110
|
+
<PageSection aria-labelledby="section-3">
|
|
111
|
+
<h2 id="section-3">Section 3</h2>
|
|
112
|
+
</PageSection>
|
|
113
|
+
<PageSection aria-labelledby="content">
|
|
114
|
+
<h2 id="content">Content</h2>
|
|
115
|
+
</PageSection>
|
|
108
116
|
</Page>
|
|
109
117
|
</>
|
|
110
118
|
);
|
|
@@ -229,16 +229,16 @@ export const NavHorizontal: React.FunctionComponent = () => {
|
|
|
229
229
|
breadcrumb={DashboardBreadcrumb}
|
|
230
230
|
mainContainerId={pageId}
|
|
231
231
|
>
|
|
232
|
-
<PageSection>
|
|
232
|
+
<PageSection aria-labelledby="main-title">
|
|
233
233
|
<Content>
|
|
234
|
-
<h1>Main title</h1>
|
|
234
|
+
<h1 id="main-title">Main title</h1>
|
|
235
235
|
<p>
|
|
236
236
|
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
237
237
|
of its relative line height of 1.5.
|
|
238
238
|
</p>
|
|
239
239
|
</Content>
|
|
240
240
|
</PageSection>
|
|
241
|
-
<PageSection>
|
|
241
|
+
<PageSection aria-label="Card gallery">
|
|
242
242
|
<Gallery hasGutter>
|
|
243
243
|
{Array.from({ length: 10 }).map((_value, index) => (
|
|
244
244
|
<GalleryItem key={index}>
|
|
@@ -278,22 +278,22 @@ export const NavHorizontalWithSubnav: React.FunctionComponent = () => {
|
|
|
278
278
|
return (
|
|
279
279
|
<Fragment>
|
|
280
280
|
<Page masthead={masthead} skipToContent={PageSkipToContent} mainContainerId={pageId}>
|
|
281
|
-
<PageSection type={PageSectionTypes.subNav} isWidthLimited>
|
|
281
|
+
<PageSection type={PageSectionTypes.subNav} isWidthLimited aria-label="Subnav">
|
|
282
282
|
{SubNav}
|
|
283
283
|
</PageSection>
|
|
284
|
-
<PageSection type={PageSectionTypes.breadcrumb} isWidthLimited>
|
|
284
|
+
<PageSection type={PageSectionTypes.breadcrumb} isWidthLimited aria-label="Breadcrumb">
|
|
285
285
|
{DashboardBreadcrumb}
|
|
286
286
|
</PageSection>
|
|
287
|
-
<PageSection>
|
|
287
|
+
<PageSection aria-labelledby="main-title">
|
|
288
288
|
<Content>
|
|
289
|
-
<h1>Main title</h1>
|
|
289
|
+
<h1 id="main-title">Main title</h1>
|
|
290
290
|
<p>
|
|
291
291
|
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
292
292
|
of it’s relative line height of 1.5.
|
|
293
293
|
</p>
|
|
294
294
|
</Content>
|
|
295
295
|
</PageSection>
|
|
296
|
-
<PageSection>
|
|
296
|
+
<PageSection aria-label="Card gallery">
|
|
297
297
|
<Gallery hasGutter>
|
|
298
298
|
{Array.from({ length: 10 }).map((_value, index) => (
|
|
299
299
|
<GalleryItem key={index}>
|
|
@@ -260,16 +260,16 @@ export const NavManual: React.FunctionComponent = () => {
|
|
|
260
260
|
skipToContent={PageSkipToContent}
|
|
261
261
|
mainContainerId={pageId}
|
|
262
262
|
>
|
|
263
|
-
<PageSection>
|
|
263
|
+
<PageSection aria-labelledby="main-title">
|
|
264
264
|
<Content>
|
|
265
|
-
<h1>Main title</h1>
|
|
265
|
+
<h1 id="main-title">Main title</h1>
|
|
266
266
|
<p>
|
|
267
267
|
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
268
268
|
of its relative line height of 1.5.
|
|
269
269
|
</p>
|
|
270
270
|
</Content>
|
|
271
271
|
</PageSection>
|
|
272
|
-
<PageSection>
|
|
272
|
+
<PageSection aria-label="Card gallery">
|
|
273
273
|
<Gallery hasGutter>
|
|
274
274
|
{Array.from({ length: 10 }).map((_value, index) => (
|
|
275
275
|
<GalleryItem key={index}>
|