@patternfly/react-core 6.3.0-prerelease.1 → 6.3.0-prerelease.11
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 +48 -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/esm/demos/sampleData.d.ts.map +1 -1
- package/dist/esm/demos/sampleData.js +225 -226
- package/dist/esm/demos/sampleData.js.map +1 -1
- package/dist/esm/demos/sampleDataRTL.d.ts +7 -0
- package/dist/esm/demos/sampleDataRTL.d.ts.map +1 -0
- package/dist/esm/demos/sampleDataRTL.js +128 -0
- package/dist/esm/demos/sampleDataRTL.js.map +1 -0
- 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/js/demos/sampleData.d.ts.map +1 -1
- package/dist/js/demos/sampleData.js +225 -226
- package/dist/js/demos/sampleData.js.map +1 -1
- package/dist/js/demos/sampleDataRTL.d.ts +7 -0
- package/dist/js/demos/sampleDataRTL.d.ts.map +1 -0
- package/dist/js/demos/sampleDataRTL.js +131 -0
- package/dist/js/demos/sampleDataRTL.js.map +1 -0
- package/dist/umd/assets/{output-ZyJGbFvY.css → output-6ExHwErv.css} +16177 -16177
- 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/Timestamp/examples/TimestampBasicFormats.tsx +1 -1
- package/src/components/Timestamp/examples/TimestampDefaultTooltip.tsx +1 -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/RTL.md +1 -0
- package/src/demos/RTL/examples/PaginatedTable.tsx +18 -46
- 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
- package/src/demos/sampleData.tsx +225 -227
- package/src/demos/sampleDataRTL.tsx +133 -0
- package/src/demos/RTL/examples/PaginatedTable.jsx +0 -504
|
@@ -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}>
|
|
@@ -122,22 +122,22 @@ export const NavWithSubnav: React.FunctionComponent = () => {
|
|
|
122
122
|
skipToContent={PageSkipToContent}
|
|
123
123
|
mainContainerId={pageId}
|
|
124
124
|
>
|
|
125
|
-
<PageSection type={PageSectionTypes.subNav} isWidthLimited>
|
|
125
|
+
<PageSection type={PageSectionTypes.subNav} isWidthLimited aria-label="Subnav">
|
|
126
126
|
{SubNav}
|
|
127
127
|
</PageSection>
|
|
128
|
-
<PageSection type={PageSectionTypes.breadcrumb} isWidthLimited>
|
|
128
|
+
<PageSection type={PageSectionTypes.breadcrumb} isWidthLimited aria-label="Breadcrumb">
|
|
129
129
|
{DashboardBreadcrumb}
|
|
130
130
|
</PageSection>
|
|
131
|
-
<PageSection>
|
|
131
|
+
<PageSection aria-labelledby="main-title">
|
|
132
132
|
<Content>
|
|
133
|
-
<h1>Main title</h1>
|
|
133
|
+
<h1 id="main-title">Main title</h1>
|
|
134
134
|
<p>
|
|
135
135
|
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
136
136
|
of it’s relative line height of 1.5.
|
|
137
137
|
</p>
|
|
138
138
|
</Content>
|
|
139
139
|
</PageSection>
|
|
140
|
-
<PageSection>
|
|
140
|
+
<PageSection aria-label="Card gallery">
|
|
141
141
|
<Gallery hasGutter>
|
|
142
142
|
{Array.from({ length: 10 }).map((_value, index) => (
|
|
143
143
|
<GalleryItem key={index}>
|
|
@@ -325,13 +325,15 @@ export const PageStickySectionBreadcrumb: React.FunctionComponent = () => {
|
|
|
325
325
|
mainContainerId={mainContainerId}
|
|
326
326
|
isBreadcrumbWidthLimited
|
|
327
327
|
>
|
|
328
|
-
<PageSection isWidthLimited>
|
|
328
|
+
<PageSection isWidthLimited aria-labelledby="main-title">
|
|
329
329
|
<Content>
|
|
330
|
-
<Content component="h1"
|
|
330
|
+
<Content component="h1" id="main-title">
|
|
331
|
+
Main title
|
|
332
|
+
</Content>
|
|
331
333
|
<Content component="p">This is a full page demo.</Content>
|
|
332
334
|
</Content>
|
|
333
335
|
</PageSection>
|
|
334
|
-
<PageSection isWidthLimited>
|
|
336
|
+
<PageSection isWidthLimited aria-label="Card gallery">
|
|
335
337
|
<Gallery hasGutter>
|
|
336
338
|
{Array.from({ length: 50 }).map((_value, index) => (
|
|
337
339
|
<GalleryItem key={index}>
|
|
@@ -282,13 +282,13 @@ export const PageStickySectionBreadcrumb: React.FunctionComponent = () => {
|
|
|
282
282
|
}
|
|
283
283
|
}}
|
|
284
284
|
>
|
|
285
|
-
<PageSection isWidthLimited>
|
|
285
|
+
<PageSection isWidthLimited aria-labelledby="main-title">
|
|
286
286
|
<Content>
|
|
287
|
-
<h1>Main title</h1>
|
|
287
|
+
<h1 id="main-title">Main title</h1>
|
|
288
288
|
<p>This is a full page demo.</p>
|
|
289
289
|
</Content>
|
|
290
290
|
</PageSection>
|
|
291
|
-
<PageSection isWidthLimited>
|
|
291
|
+
<PageSection isWidthLimited aria-label="Card gallery">
|
|
292
292
|
<Gallery hasGutter>
|
|
293
293
|
{Array.from({ length: 50 }).map((_value, index) => (
|
|
294
294
|
<GalleryItem key={index}>
|
|
@@ -278,9 +278,9 @@ export const PageStickySectionGroup: React.FunctionComponent = () => {
|
|
|
278
278
|
isBreadcrumbWidthLimited
|
|
279
279
|
isBreadcrumbGrouped
|
|
280
280
|
additionalGroupedContent={
|
|
281
|
-
<PageSection isWidthLimited>
|
|
281
|
+
<PageSection isWidthLimited aria-labelledby="main-title">
|
|
282
282
|
<Content>
|
|
283
|
-
<h1>Main title</h1>
|
|
283
|
+
<h1 id="main-title">Main title</h1>
|
|
284
284
|
<p>This is a full page demo.</p>
|
|
285
285
|
</Content>
|
|
286
286
|
</PageSection>
|
|
@@ -289,7 +289,7 @@ export const PageStickySectionGroup: React.FunctionComponent = () => {
|
|
|
289
289
|
stickyOnBreakpoint: { default: 'top' }
|
|
290
290
|
}}
|
|
291
291
|
>
|
|
292
|
-
<PageSection>
|
|
292
|
+
<PageSection aria-label="Card gallery">
|
|
293
293
|
<Gallery hasGutter>
|
|
294
294
|
{Array.from({ length: 50 }).map((_value, index) => (
|
|
295
295
|
<GalleryItem key={index}>
|
|
@@ -278,14 +278,14 @@ export const PageStickySectionGroupAlternate: React.FunctionComponent = () => {
|
|
|
278
278
|
</BreadcrumbItem>
|
|
279
279
|
</Breadcrumb>
|
|
280
280
|
</PageBreadcrumb>
|
|
281
|
-
<PageSection isWidthLimited>
|
|
281
|
+
<PageSection isWidthLimited aria-labelledby="main-title">
|
|
282
282
|
<Content>
|
|
283
|
-
<h1>Main title</h1>
|
|
283
|
+
<h1 id="main-title">Main title</h1>
|
|
284
284
|
<p>This is a full page demo.</p>
|
|
285
285
|
</Content>
|
|
286
286
|
</PageSection>{' '}
|
|
287
287
|
</PageGroup>
|
|
288
|
-
<PageSection>
|
|
288
|
+
<PageSection aria-label="Card gallery">
|
|
289
289
|
<Gallery hasGutter>
|
|
290
290
|
{Array.from({ length: 50 }).map((_value, index) => (
|
|
291
291
|
<GalleryItem key={index}>
|
|
@@ -612,19 +612,19 @@ export const PrimaryDetailCardView: React.FunctionComponent = () => {
|
|
|
612
612
|
|
|
613
613
|
return (
|
|
614
614
|
<DashboardWrapper mainContainerId="main-content-card-view-default-nav" breadcrumb={null}>
|
|
615
|
-
<PageSection>
|
|
615
|
+
<PageSection aria-labelledby="projects">
|
|
616
616
|
<Content>
|
|
617
|
-
<h1>Projects</h1>
|
|
617
|
+
<h1 id="projects">Projects</h1>
|
|
618
618
|
<p>This is a demo that showcases Patternfly cards.</p>
|
|
619
619
|
</Content>
|
|
620
620
|
</PageSection>
|
|
621
|
-
<PageSection isFilled padding={{ default: 'noPadding' }}>
|
|
621
|
+
<PageSection isFilled padding={{ default: 'noPadding' }} aria-label="Card filtering toolbar">
|
|
622
622
|
<Toolbar id="card-view-data-toolbar-group-types" clearAllFilters={onDelete}>
|
|
623
623
|
<ToolbarContent>{toolbarItems}</ToolbarContent>
|
|
624
624
|
</Toolbar>
|
|
625
625
|
<Divider component="div" />
|
|
626
626
|
</PageSection>
|
|
627
|
-
<PageSection isFilled padding={{ default: 'noPadding' }}>
|
|
627
|
+
<PageSection isFilled padding={{ default: 'noPadding' }} aria-label="Card content area">
|
|
628
628
|
<Drawer isExpanded={isDrawerExpanded} className={'pf-m-inline-on-2xl'}>
|
|
629
629
|
<DrawerContent panelContent={panelContent}>
|
|
630
630
|
<DrawerContentBody hasPadding>{drawerContent}</DrawerContentBody>
|
|
@@ -636,6 +636,7 @@ export const PrimaryDetailCardView: React.FunctionComponent = () => {
|
|
|
636
636
|
stickyOnBreakpoint={{ default: 'bottom' }}
|
|
637
637
|
padding={{ default: 'noPadding' }}
|
|
638
638
|
variant="light"
|
|
639
|
+
aria-label="Pagination controls"
|
|
639
640
|
>
|
|
640
641
|
<Pagination
|
|
641
642
|
itemCount={filtered.length}
|
|
@@ -417,9 +417,9 @@ export const PrimaryDetailContentPadding: React.FunctionComponent = () => {
|
|
|
417
417
|
|
|
418
418
|
return (
|
|
419
419
|
<DashboardWrapper>
|
|
420
|
-
<PageSection>
|
|
420
|
+
<PageSection aria-labelledby="main-title">
|
|
421
421
|
<Content>
|
|
422
|
-
<h1>Main title</h1>
|
|
422
|
+
<h1 id="main-title">Main title</h1>
|
|
423
423
|
<p>
|
|
424
424
|
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
425
425
|
of it's relative line height of 1.5.
|
|
@@ -427,7 +427,7 @@ export const PrimaryDetailContentPadding: React.FunctionComponent = () => {
|
|
|
427
427
|
</Content>
|
|
428
428
|
</PageSection>
|
|
429
429
|
<Divider component="div" />
|
|
430
|
-
<PageSection padding={{ default: 'noPadding' }}>
|
|
430
|
+
<PageSection padding={{ default: 'noPadding' }} aria-label="Drawer content section">
|
|
431
431
|
<Drawer isExpanded={isDrawerExpanded}>
|
|
432
432
|
<DrawerContent panelContent={panelContent} colorVariant="no-background">
|
|
433
433
|
<DrawerContentBody hasPadding>{drawerContent}</DrawerContentBody>
|
|
@@ -181,9 +181,9 @@ export const PrimaryDetailDataListInCard: React.FunctionComponent = () => {
|
|
|
181
181
|
|
|
182
182
|
return (
|
|
183
183
|
<DashboardWrapper>
|
|
184
|
-
<PageSection>
|
|
184
|
+
<PageSection aria-labelledby="main-title">
|
|
185
185
|
<Content>
|
|
186
|
-
<h1>Main title</h1>
|
|
186
|
+
<h1 id="main-title">Main title</h1>
|
|
187
187
|
<p>
|
|
188
188
|
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
189
189
|
of it’s relative line height of 1.5.
|
|
@@ -191,7 +191,7 @@ export const PrimaryDetailDataListInCard: React.FunctionComponent = () => {
|
|
|
191
191
|
</Content>
|
|
192
192
|
</PageSection>
|
|
193
193
|
<Divider component="div" />
|
|
194
|
-
<PageSection>
|
|
194
|
+
<PageSection aria-label="Card with drawer content">
|
|
195
195
|
<Card>
|
|
196
196
|
<Drawer isStatic isExpanded={isExpanded}>
|
|
197
197
|
<DrawerContent panelContent={panelContent}>
|
|
@@ -417,9 +417,9 @@ export const PrimaryDetailFullPage: React.FunctionComponent = () => {
|
|
|
417
417
|
|
|
418
418
|
return (
|
|
419
419
|
<DashboardWrapper mainContainerId="main-content-page-layout-default-nav">
|
|
420
|
-
<PageSection>
|
|
420
|
+
<PageSection aria-labelledby="main-title">
|
|
421
421
|
<Content>
|
|
422
|
-
<h1>Main title</h1>
|
|
422
|
+
<h1 id="main-title">Main title</h1>
|
|
423
423
|
<p>
|
|
424
424
|
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
425
425
|
of it's relative line height of 1.5.
|
|
@@ -427,7 +427,7 @@ export const PrimaryDetailFullPage: React.FunctionComponent = () => {
|
|
|
427
427
|
</Content>
|
|
428
428
|
</PageSection>
|
|
429
429
|
<Divider component="div" />
|
|
430
|
-
<PageSection padding={{ default: 'noPadding' }}>
|
|
430
|
+
<PageSection padding={{ default: 'noPadding' }} aria-label="Card with drawer content">
|
|
431
431
|
<Drawer isExpanded={isDrawerExpanded}>
|
|
432
432
|
<DrawerContent panelContent={panelContent}>
|
|
433
433
|
<DrawerContentBody>{drawerContent}</DrawerContentBody>
|
|
@@ -417,9 +417,9 @@ export const PrimaryDetailInlineModifier: React.FunctionComponent = () => {
|
|
|
417
417
|
|
|
418
418
|
return (
|
|
419
419
|
<DashboardWrapper>
|
|
420
|
-
<PageSection>
|
|
420
|
+
<PageSection aria-labelledby="main-title">
|
|
421
421
|
<Content>
|
|
422
|
-
<h1>Main title</h1>
|
|
422
|
+
<h1 id="main-title">Main title</h1>
|
|
423
423
|
<p>
|
|
424
424
|
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
425
425
|
of it's relative line height of 1.5.
|
|
@@ -427,7 +427,7 @@ export const PrimaryDetailInlineModifier: React.FunctionComponent = () => {
|
|
|
427
427
|
</Content>
|
|
428
428
|
</PageSection>
|
|
429
429
|
<Divider component="div" />
|
|
430
|
-
<PageSection padding={{ default: 'noPadding' }}>
|
|
430
|
+
<PageSection padding={{ default: 'noPadding' }} aria-label="Card with drawer content">
|
|
431
431
|
<Drawer isExpanded={isDrawerExpanded} isInline>
|
|
432
432
|
<DrawerContent panelContent={panelContent}>
|
|
433
433
|
<DrawerContentBody>{drawerContent}</DrawerContentBody>
|
|
@@ -90,9 +90,9 @@ export const PrimaryDetailSimpleListInCard: React.FunctionComponent = () => {
|
|
|
90
90
|
|
|
91
91
|
return (
|
|
92
92
|
<DashboardWrapper>
|
|
93
|
-
<PageSection>
|
|
93
|
+
<PageSection aria-labelledby="main-title">
|
|
94
94
|
<Content>
|
|
95
|
-
<h1>Main title</h1>
|
|
95
|
+
<h1 id="main-title">Main title</h1>
|
|
96
96
|
<p>
|
|
97
97
|
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
|
|
98
98
|
of it’s relative line height of 1.5.
|
|
@@ -100,7 +100,7 @@ export const PrimaryDetailSimpleListInCard: React.FunctionComponent = () => {
|
|
|
100
100
|
</Content>
|
|
101
101
|
</PageSection>
|
|
102
102
|
<Divider component="div" />
|
|
103
|
-
<PageSection>
|
|
103
|
+
<PageSection aria-label="Card with drawer content">
|
|
104
104
|
<Card>
|
|
105
105
|
<Drawer isStatic isExpanded={isExpanded}>
|
|
106
106
|
<DrawerContent panelContent={panelContent}>
|
|
@@ -27,11 +27,13 @@ export const SkeletonCard: React.FunctionComponent = () => {
|
|
|
27
27
|
);
|
|
28
28
|
return (
|
|
29
29
|
<DashboardWrapper isBreadcrumbWidthLimited>
|
|
30
|
-
<PageSection isWidthLimited>
|
|
31
|
-
<Content component="h1"
|
|
30
|
+
<PageSection isWidthLimited aria-label="main-title">
|
|
31
|
+
<Content component="h1" id="main-title">
|
|
32
|
+
Main title
|
|
33
|
+
</Content>
|
|
32
34
|
<Content component="p">This is a full page demo.</Content>
|
|
33
35
|
</PageSection>
|
|
34
|
-
<PageSection>
|
|
36
|
+
<PageSection aria-label="Card gallery">
|
|
35
37
|
<Gallery hasGutter>{Array.from({ length: 7 }).map((_value, index) => card(index))}</Gallery>
|
|
36
38
|
</PageSection>
|
|
37
39
|
</DashboardWrapper>
|
|
@@ -73,13 +73,13 @@ export const ModalTabs: React.FunctionComponent = () => {
|
|
|
73
73
|
return (
|
|
74
74
|
<Fragment>
|
|
75
75
|
<DashboardWrapper mainContainerId="main-content-card-view-default-nav">
|
|
76
|
-
<PageSection>
|
|
76
|
+
<PageSection aria-labelledby="projects-heading">
|
|
77
77
|
<Content>
|
|
78
|
-
<h1>Projects</h1>
|
|
78
|
+
<h1 id="projects-heading">Projects</h1>
|
|
79
79
|
<p>Click any project card to view tabs within modals.</p>
|
|
80
80
|
</Content>
|
|
81
81
|
</PageSection>
|
|
82
|
-
<PageSection isFilled>
|
|
82
|
+
<PageSection isFilled aria-label="Selectable card gallery">
|
|
83
83
|
<Gallery hasGutter aria-label="Selectable card container">
|
|
84
84
|
{products.map((product) => (
|
|
85
85
|
<Card
|
|
@@ -133,7 +133,7 @@ export const NestedTabs: React.FunctionComponent = () => {
|
|
|
133
133
|
|
|
134
134
|
return (
|
|
135
135
|
<DashboardWrapper hasPageTemplateTitle>
|
|
136
|
-
<PageSection type="tabs" isWidthLimited>
|
|
136
|
+
<PageSection type="tabs" isWidthLimited aria-label="Cluster navigation tabs">
|
|
137
137
|
<Tabs
|
|
138
138
|
activeKey={activeTabKey}
|
|
139
139
|
onSelect={(_event, tabIndex) => handleTabClick(Number(tabIndex))}
|
|
@@ -144,7 +144,7 @@ export const NestedTabs: React.FunctionComponent = () => {
|
|
|
144
144
|
<Tab eventKey={1} title={<TabTitleText>Cluster 2</TabTitleText>} tabContentId={`tabContent${1}`} />
|
|
145
145
|
</Tabs>
|
|
146
146
|
</PageSection>
|
|
147
|
-
<PageSection isWidthLimited>
|
|
147
|
+
<PageSection isWidthLimited aria-label="Cluster tab panel content">
|
|
148
148
|
<TabContent key={0} eventKey={0} id={`tabContent${0}`} activeKey={activeTabKey} hidden={0 !== activeTabKey}>
|
|
149
149
|
<TabContentBody>{tabContent}</TabContentBody>
|
|
150
150
|
</TabContent>
|
|
@@ -124,7 +124,7 @@ export const NestedUnindentedTabs: React.FunctionComponent = () => {
|
|
|
124
124
|
|
|
125
125
|
return (
|
|
126
126
|
<DashboardWrapper hasPageTemplateTitle>
|
|
127
|
-
<PageSection type="tabs" isWidthLimited>
|
|
127
|
+
<PageSection type="tabs" isWidthLimited aria-label="Primary navigation tabs">
|
|
128
128
|
<Tabs
|
|
129
129
|
activeKey={activeTabKey}
|
|
130
130
|
onSelect={(_event, tabIndex) => handleTabClick(Number(tabIndex))}
|
|
@@ -137,7 +137,7 @@ export const NestedUnindentedTabs: React.FunctionComponent = () => {
|
|
|
137
137
|
<Tab eventKey={3} title={<TabTitleText>Support</TabTitleText>} tabContentId={`tabContent${3}`} />
|
|
138
138
|
</Tabs>
|
|
139
139
|
</PageSection>
|
|
140
|
-
<PageSection isWidthLimited>
|
|
140
|
+
<PageSection isWidthLimited aria-label="Primary tab content">
|
|
141
141
|
<TabContent key={0} eventKey={0} id={`tabContent${0}`} activeKey={activeTabKey} hidden={0 !== activeTabKey}>
|
|
142
142
|
<TabContentBody>What's new panel</TabContentBody>
|
|
143
143
|
</TabContent>
|
|
@@ -385,12 +385,12 @@ export const TablesAndTabs = () => {
|
|
|
385
385
|
return (
|
|
386
386
|
<DashboardWrapper>
|
|
387
387
|
<Fragment>
|
|
388
|
-
<PageSection>
|
|
389
|
-
<Title headingLevel="h1" size="2xl">
|
|
388
|
+
<PageSection aria-labelledby="nodes">
|
|
389
|
+
<Title headingLevel="h1" size="2xl" id="nodes">
|
|
390
390
|
Nodes
|
|
391
391
|
</Title>
|
|
392
392
|
</PageSection>
|
|
393
|
-
<PageSection padding={{ default: 'noPadding' }}>
|
|
393
|
+
<PageSection padding={{ default: 'noPadding' }} aria-label="Nodes toolbar and content">
|
|
394
394
|
{toolbar}
|
|
395
395
|
<Divider />
|
|
396
396
|
{tabContent}
|
|
@@ -486,7 +486,7 @@ export const ConsoleLogViewerToolbar: React.FC = () => {
|
|
|
486
486
|
|
|
487
487
|
return (
|
|
488
488
|
<DashboardWrapper sidebarNavOpen={!mobileView} onPageResize={onPageResize}>
|
|
489
|
-
<PageSection>
|
|
489
|
+
<PageSection aria-label="Log viewer controls">
|
|
490
490
|
<Toolbar id="log-viewer-toolbar" inset={{ default: 'insetNone' }}>
|
|
491
491
|
<ToolbarContent>{items}</ToolbarContent>
|
|
492
492
|
</Toolbar>
|
|
@@ -15,7 +15,7 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
|
|
|
15
15
|
export const WizardInModalDemo: React.FunctionComponent = () => (
|
|
16
16
|
<>
|
|
17
17
|
<DashboardWrapper hasPageTemplateTitle>
|
|
18
|
-
<PageSection isWidthLimited>
|
|
18
|
+
<PageSection isWidthLimited aria-label="Card gallery">
|
|
19
19
|
<Gallery hasGutter>
|
|
20
20
|
{Array.from({ length: 10 }).map((_value, index) => (
|
|
21
21
|
<GalleryItem key={index}>
|
|
@@ -5,7 +5,7 @@ import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrap
|
|
|
5
5
|
export const WizardFullPage: React.FunctionComponent = () => (
|
|
6
6
|
<Fragment>
|
|
7
7
|
<DashboardWrapper hasPageTemplateTitle>
|
|
8
|
-
<PageSection hasBodyWrapper={false} type={PageSectionTypes.wizard}>
|
|
8
|
+
<PageSection hasBodyWrapper={false} type={PageSectionTypes.wizard} aria-label="Wizard container">
|
|
9
9
|
<Wizard>
|
|
10
10
|
<WizardStep name="Information" id="wizard-step-1">
|
|
11
11
|
<p>Step 1 content</p>
|
|
@@ -173,13 +173,13 @@ export const WizardFullPageWithDrawerDemo: React.FunctionComponent = () => {
|
|
|
173
173
|
breadcrumb={PageBreadcrumb}
|
|
174
174
|
mainContainerId={pageId}
|
|
175
175
|
>
|
|
176
|
-
<PageSection>
|
|
176
|
+
<PageSection aria-labelledby="main-title">
|
|
177
177
|
<Content>
|
|
178
|
-
<h1>Main title</h1>
|
|
178
|
+
<h1 id="main-title">Main title</h1>
|
|
179
179
|
<p>A demo of a wizard in a page.</p>
|
|
180
180
|
</Content>
|
|
181
181
|
</PageSection>
|
|
182
|
-
<PageSection hasBodyWrapper={false} type={PageSectionTypes.wizard}>
|
|
182
|
+
<PageSection hasBodyWrapper={false} type={PageSectionTypes.wizard} aria-label="Wizard container">
|
|
183
183
|
<Wizard>
|
|
184
184
|
<WizardStep body={{ hasNoPadding: true }} name="Information" id="wizard-step-1">
|
|
185
185
|
{createStepContentWithDrawer('Information step')}
|
|
@@ -177,13 +177,13 @@ export const WizardFullPageWithDrawerInfoStepDemo: React.FunctionComponent = ()
|
|
|
177
177
|
breadcrumb={PageBreadcrumb}
|
|
178
178
|
mainContainerId={pageId}
|
|
179
179
|
>
|
|
180
|
-
<PageSection>
|
|
180
|
+
<PageSection aria-labelledby="main-title">
|
|
181
181
|
<Content>
|
|
182
|
-
<h1>Main title</h1>
|
|
182
|
+
<h1 id="main-title">Main title</h1>
|
|
183
183
|
<p>A demo of a wizard in a page.</p>
|
|
184
184
|
</Content>
|
|
185
185
|
</PageSection>
|
|
186
|
-
<PageSection hasBodyWrapper={false} type={PageSectionTypes.wizard}
|
|
186
|
+
<PageSection hasBodyWrapper={false} type={PageSectionTypes.wizard} ß aria-label="Wizard container">
|
|
187
187
|
<Wizard>
|
|
188
188
|
<WizardStep body={{ hasNoPadding: true }} name="Information" id="wizard-step-1">
|
|
189
189
|
{createStepContentWithDrawer('Information step')}
|