@patternfly/react-core 6.3.0-prerelease.1 → 6.3.0-prerelease.3

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.
Files changed (139) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/components/package.json +1 -1
  3. package/deprecated/package.json +1 -1
  4. package/dist/dynamic/components/AboutModal/package.json +1 -1
  5. package/dist/dynamic/components/Accordion/package.json +1 -1
  6. package/dist/dynamic/components/ActionList/package.json +1 -1
  7. package/dist/dynamic/components/Alert/package.json +1 -1
  8. package/dist/dynamic/components/Avatar/package.json +1 -1
  9. package/dist/dynamic/components/BackToTop/package.json +1 -1
  10. package/dist/dynamic/components/Backdrop/package.json +1 -1
  11. package/dist/dynamic/components/BackgroundImage/package.json +1 -1
  12. package/dist/dynamic/components/Badge/package.json +1 -1
  13. package/dist/dynamic/components/Banner/package.json +1 -1
  14. package/dist/dynamic/components/Brand/package.json +1 -1
  15. package/dist/dynamic/components/Breadcrumb/package.json +1 -1
  16. package/dist/dynamic/components/Button/package.json +1 -1
  17. package/dist/dynamic/components/CalendarMonth/package.json +1 -1
  18. package/dist/dynamic/components/Card/package.json +1 -1
  19. package/dist/dynamic/components/Checkbox/package.json +1 -1
  20. package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
  21. package/dist/dynamic/components/CodeBlock/package.json +1 -1
  22. package/dist/dynamic/components/Content/package.json +1 -1
  23. package/dist/dynamic/components/DataList/package.json +1 -1
  24. package/dist/dynamic/components/DatePicker/package.json +1 -1
  25. package/dist/dynamic/components/DescriptionList/package.json +1 -1
  26. package/dist/dynamic/components/Divider/package.json +1 -1
  27. package/dist/dynamic/components/Drawer/package.json +1 -1
  28. package/dist/dynamic/components/Dropdown/package.json +1 -1
  29. package/dist/dynamic/components/DualListSelector/package.json +1 -1
  30. package/dist/dynamic/components/EmptyState/package.json +1 -1
  31. package/dist/dynamic/components/ExpandableSection/package.json +1 -1
  32. package/dist/dynamic/components/FileUpload/package.json +1 -1
  33. package/dist/dynamic/components/Form/package.json +1 -1
  34. package/dist/dynamic/components/FormSelect/package.json +1 -1
  35. package/dist/dynamic/components/HelperText/package.json +1 -1
  36. package/dist/dynamic/components/Hint/package.json +1 -1
  37. package/dist/dynamic/components/Icon/package.json +1 -1
  38. package/dist/dynamic/components/InputGroup/package.json +1 -1
  39. package/dist/dynamic/components/JumpLinks/package.json +1 -1
  40. package/dist/dynamic/components/Label/package.json +1 -1
  41. package/dist/dynamic/components/List/package.json +1 -1
  42. package/dist/dynamic/components/LoginPage/package.json +1 -1
  43. package/dist/dynamic/components/Masthead/package.json +1 -1
  44. package/dist/dynamic/components/Menu/package.json +1 -1
  45. package/dist/dynamic/components/MenuToggle/package.json +1 -1
  46. package/dist/dynamic/components/Modal/package.json +1 -1
  47. package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
  48. package/dist/dynamic/components/Nav/package.json +1 -1
  49. package/dist/dynamic/components/NotificationBadge/package.json +1 -1
  50. package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
  51. package/dist/dynamic/components/NumberInput/package.json +1 -1
  52. package/dist/dynamic/components/OverflowMenu/package.json +1 -1
  53. package/dist/dynamic/components/Page/package.json +1 -1
  54. package/dist/dynamic/components/Pagination/package.json +1 -1
  55. package/dist/dynamic/components/Panel/package.json +1 -1
  56. package/dist/dynamic/components/Popover/package.json +1 -1
  57. package/dist/dynamic/components/Progress/package.json +1 -1
  58. package/dist/dynamic/components/ProgressStepper/package.json +1 -1
  59. package/dist/dynamic/components/Radio/package.json +1 -1
  60. package/dist/dynamic/components/SearchInput/package.json +1 -1
  61. package/dist/dynamic/components/Select/package.json +1 -1
  62. package/dist/dynamic/components/Sidebar/package.json +1 -1
  63. package/dist/dynamic/components/SimpleList/package.json +1 -1
  64. package/dist/dynamic/components/Skeleton/package.json +1 -1
  65. package/dist/dynamic/components/SkipToContent/package.json +1 -1
  66. package/dist/dynamic/components/Slider/package.json +1 -1
  67. package/dist/dynamic/components/Spinner/package.json +1 -1
  68. package/dist/dynamic/components/Switch/package.json +1 -1
  69. package/dist/dynamic/components/Tabs/package.json +1 -1
  70. package/dist/dynamic/components/TextArea/package.json +1 -1
  71. package/dist/dynamic/components/TextInput/package.json +1 -1
  72. package/dist/dynamic/components/TextInputGroup/package.json +1 -1
  73. package/dist/dynamic/components/TimePicker/package.json +1 -1
  74. package/dist/dynamic/components/Timestamp/package.json +1 -1
  75. package/dist/dynamic/components/Title/package.json +1 -1
  76. package/dist/dynamic/components/ToggleGroup/package.json +1 -1
  77. package/dist/dynamic/components/Toolbar/package.json +1 -1
  78. package/dist/dynamic/components/Tooltip/package.json +1 -1
  79. package/dist/dynamic/components/TreeView/package.json +1 -1
  80. package/dist/dynamic/components/Truncate/package.json +1 -1
  81. package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
  82. package/dist/dynamic/components/Wizard/package.json +1 -1
  83. package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
  84. package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
  85. package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -1
  86. package/dist/dynamic/deprecated/components/Modal/package.json +1 -1
  87. package/dist/dynamic/deprecated/components/Tile/package.json +1 -1
  88. package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
  89. package/dist/dynamic/deprecated/components/package.json +1 -1
  90. package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
  91. package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
  92. package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
  93. package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
  94. package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
  95. package/dist/dynamic/helpers/constants/package.json +1 -1
  96. package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
  97. package/dist/dynamic/helpers/fileUtils/package.json +1 -1
  98. package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
  99. package/dist/dynamic/helpers/package.json +1 -1
  100. package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
  101. package/dist/dynamic/helpers/typeUtils/package.json +1 -1
  102. package/dist/dynamic/helpers/useInterval/package.json +1 -1
  103. package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
  104. package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
  105. package/dist/dynamic/helpers/util/package.json +1 -1
  106. package/dist/dynamic/layouts/Bullseye/package.json +1 -1
  107. package/dist/dynamic/layouts/Flex/package.json +1 -1
  108. package/dist/dynamic/layouts/Gallery/package.json +1 -1
  109. package/dist/dynamic/layouts/Grid/package.json +1 -1
  110. package/dist/dynamic/layouts/Level/package.json +1 -1
  111. package/dist/dynamic/layouts/Split/package.json +1 -1
  112. package/dist/dynamic/layouts/Stack/package.json +1 -1
  113. package/dist/dynamic/styles/package.json +1 -1
  114. package/dist/umd/assets/{output-ZyJGbFvY.css → output-D4Wl9sq-.css} +15262 -15262
  115. package/helpers/package.json +1 -1
  116. package/layouts/package.json +1 -1
  117. package/next/package.json +1 -1
  118. package/package.json +2 -2
  119. package/src/demos/NotificationDrawer/examples/NotificationDrawerBasic.tsx +3 -3
  120. package/src/demos/NotificationDrawer/examples/NotificationDrawerGrouped.tsx +3 -3
  121. package/src/demos/PasswordGenerator.md +1 -1
  122. package/src/demos/RTL/examples/PaginatedTable.jsx +2 -2
  123. package/src/demos/RTL/examples/PaginatedTable.tsx +2 -2
  124. package/src/demos/examples/Page/PageContextSelector.tsx +5 -3
  125. package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +3 -3
  126. package/src/demos/examples/Page/PageStickySectionGroup.tsx +3 -3
  127. package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +3 -3
  128. package/src/demos/examples/PrimaryDetail/PrimaryDetailCardView.tsx +5 -4
  129. package/src/demos/examples/PrimaryDetail/PrimaryDetailContentPadding.tsx +3 -3
  130. package/src/demos/examples/PrimaryDetail/PrimaryDetailDataListInCard.tsx +3 -3
  131. package/src/demos/examples/PrimaryDetail/PrimaryDetailFullPage.tsx +3 -3
  132. package/src/demos/examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx +3 -3
  133. package/src/demos/examples/PrimaryDetail/PrimaryDetailSimpleListInCard.tsx +3 -3
  134. package/src/demos/examples/Skeleton/SkeletonCard.tsx +5 -3
  135. package/src/demos/examples/Toolbar/ConsoleLogViewerToolbar.tsx +1 -1
  136. package/src/demos/examples/Wizard/InModal.tsx +1 -1
  137. package/src/demos/examples/Wizard/InPage.tsx +1 -1
  138. package/src/demos/examples/Wizard/InPageWithDrawer.tsx +3 -3
  139. package/src/demos/examples/Wizard/InPageWithDrawerInformationalStep.tsx +3 -3
@@ -1 +1 @@
1
- {"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.3.0-prerelease.0","private":true}
1
+ {"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.3.0-prerelease.2","private":true}
@@ -1 +1 @@
1
- {"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.3.0-prerelease.0","private":true}
1
+ {"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.3.0-prerelease.2","private":true}
package/next/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.3.0-prerelease.0","private":true}
1
+ {"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.3.0-prerelease.2","private":true}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "6.3.0-prerelease.1",
3
+ "version": "6.3.0-prerelease.3",
4
4
  "description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -63,5 +63,5 @@
63
63
  "react": "^17 || ^18 || ^19",
64
64
  "react-dom": "^17 || ^18 || ^19"
65
65
  },
66
- "gitHead": "dfd5811438352c387d46b86489353e3de5d4f271"
66
+ "gitHead": "54485ae7a71e8b2703760e117d05f9ffaf5d83c0"
67
67
  }
@@ -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 = .useRef(null);
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>
@@ -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">Main title</Content>
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">Main title</Content>
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>
@@ -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')}