@patternfly/react-core 6.2.2 → 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 +73 -9
- 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/Divider/Divider.d.ts +2 -0
- package/dist/esm/components/Divider/Divider.d.ts.map +1 -1
- package/dist/esm/components/Divider/Divider.js +2 -2
- package/dist/esm/components/Divider/Divider.js.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
- package/dist/esm/components/Form/FormFieldGroup.d.ts +1 -1
- package/dist/esm/components/Form/FormFieldGroup.d.ts.map +1 -1
- package/dist/esm/components/Form/FormFieldGroupExpandable.d.ts +1 -1
- package/dist/esm/components/Form/FormFieldGroupExpandable.d.ts.map +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/Form/InternalFormFieldGroup.d.ts +1 -1
- package/dist/esm/components/Form/InternalFormFieldGroup.d.ts.map +1 -1
- package/dist/esm/components/List/List.d.ts.map +1 -1
- package/dist/esm/components/List/List.js +2 -2
- package/dist/esm/components/List/List.js.map +1 -1
- package/dist/esm/components/List/ListItem.d.ts +4 -2
- package/dist/esm/components/List/ListItem.d.ts.map +1 -1
- package/dist/esm/components/List/ListItem.js +2 -2
- package/dist/esm/components/List/ListItem.js.map +1 -1
- package/dist/esm/components/Nav/Nav.d.ts +1 -1
- package/dist/esm/components/Nav/Nav.d.ts.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/Nav/NavItemSeparator.d.ts.map +1 -1
- package/dist/esm/components/Nav/NavItemSeparator.js +2 -2
- package/dist/esm/components/Nav/NavItemSeparator.js.map +1 -1
- package/dist/esm/components/Progress/ProgressContainer.d.ts.map +1 -1
- package/dist/esm/components/Progress/ProgressContainer.js +12 -6
- package/dist/esm/components/Progress/ProgressContainer.js.map +1 -1
- package/dist/esm/components/Tabs/Tabs.d.ts +1 -1
- package/dist/esm/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/esm/components/Tabs/Tabs.js.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/dist/esm/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarItem.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarItem.js +4 -3
- package/dist/esm/components/Toolbar/ToolbarItem.js.map +1 -1
- package/dist/esm/components/TreeView/TreeViewListItem.d.ts +2 -2
- package/dist/esm/components/TreeView/TreeViewListItem.d.ts.map +1 -1
- package/dist/esm/components/Truncate/Truncate.d.ts +11 -1
- package/dist/esm/components/Truncate/Truncate.d.ts.map +1 -1
- package/dist/esm/components/Truncate/Truncate.js +49 -10
- package/dist/esm/components/Truncate/Truncate.js.map +1 -1
- package/dist/esm/components/Wizard/WizardNavInternal.js.map +1 -1
- package/dist/js/components/Divider/Divider.d.ts +2 -0
- package/dist/js/components/Divider/Divider.d.ts.map +1 -1
- package/dist/js/components/Divider/Divider.js +2 -2
- package/dist/js/components/Divider/Divider.js.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSection.d.ts +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
- package/dist/js/components/Form/FormFieldGroup.d.ts +1 -1
- package/dist/js/components/Form/FormFieldGroup.d.ts.map +1 -1
- package/dist/js/components/Form/FormFieldGroupExpandable.d.ts +1 -1
- package/dist/js/components/Form/FormFieldGroupExpandable.d.ts.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/Form/InternalFormFieldGroup.d.ts +1 -1
- package/dist/js/components/Form/InternalFormFieldGroup.d.ts.map +1 -1
- package/dist/js/components/List/List.d.ts.map +1 -1
- package/dist/js/components/List/List.js +2 -2
- package/dist/js/components/List/List.js.map +1 -1
- package/dist/js/components/List/ListItem.d.ts +4 -2
- package/dist/js/components/List/ListItem.d.ts.map +1 -1
- package/dist/js/components/List/ListItem.js +2 -2
- package/dist/js/components/List/ListItem.js.map +1 -1
- package/dist/js/components/Nav/Nav.d.ts +1 -1
- package/dist/js/components/Nav/Nav.d.ts.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/Nav/NavItemSeparator.d.ts.map +1 -1
- package/dist/js/components/Nav/NavItemSeparator.js +2 -2
- package/dist/js/components/Nav/NavItemSeparator.js.map +1 -1
- package/dist/js/components/Progress/ProgressContainer.d.ts.map +1 -1
- package/dist/js/components/Progress/ProgressContainer.js +10 -4
- package/dist/js/components/Progress/ProgressContainer.js.map +1 -1
- package/dist/js/components/Tabs/Tabs.d.ts +1 -1
- package/dist/js/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/js/components/Tabs/Tabs.js.map +1 -1
- package/dist/js/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/dist/js/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarItem.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarItem.js +4 -3
- package/dist/js/components/Toolbar/ToolbarItem.js.map +1 -1
- package/dist/js/components/TreeView/TreeViewListItem.d.ts +2 -2
- package/dist/js/components/TreeView/TreeViewListItem.d.ts.map +1 -1
- package/dist/js/components/Truncate/Truncate.d.ts +11 -1
- package/dist/js/components/Truncate/Truncate.d.ts.map +1 -1
- package/dist/js/components/Truncate/Truncate.js +48 -9
- package/dist/js/components/Truncate/Truncate.js.map +1 -1
- package/dist/js/components/Wizard/WizardNavInternal.js.map +1 -1
- package/dist/umd/assets/{output-AyA9e2xy.css → output-CuGIDyMV.css} +19664 -19577
- 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 +8 -8
- package/src/components/Alert/examples/Alert.md +0 -3
- package/src/components/Card/examples/Card.md +4 -0
- package/src/components/Card/examples/CardHeaderWraps.tsx +26 -0
- package/src/components/CodeBlock/examples/CodeBlockBasic.tsx +1 -1
- package/src/components/CodeBlock/examples/CodeBlockExpandable.tsx +10 -3
- package/src/components/DescriptionList/examples/DescriptionListAutoFitBasic.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListAutoFitMinWidthModified.tsx +5 -1
- package/src/components/DescriptionList/examples/DescriptionListAutoFitMinWidthResponsive.tsx +5 -1
- package/src/components/DescriptionList/examples/DescriptionListBasic.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListColumnFill.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListCompact.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListCompactHorizontal.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListDefaultAutoColumn.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListDefaultInlineGrid.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListDefaultResponsiveColumns.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListDefaultThreeColLg.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListDefaultTwoCol.tsx +1 -0
- package/src/components/DescriptionList/examples/DescriptionListDisplaySizeAndCardHorizontalTermWidth.tsx +7 -1
- package/src/components/DescriptionList/examples/DescriptionListDisplaySizeAndCardThreeColumn.tsx +5 -1
- package/src/components/DescriptionList/examples/DescriptionListFluidHorizontal.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListHorizontal.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListHorizontalAutoColumn.tsx +6 -1
- package/src/components/DescriptionList/examples/DescriptionListHorizontalCustomTermWidth.tsx +1 -0
- package/src/components/DescriptionList/examples/DescriptionListHorizontalResponsiveColumns.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListHorizontalThreeColLg.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListHorizontalTwoCol.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListIconsOnTerms.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListResponsiveHoriVertGroup.tsx +1 -0
- package/src/components/DescriptionList/examples/DescriptionListWithCard.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySize.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySizeAndCard.tsx +5 -1
- package/src/components/DescriptionList/examples/DescriptionListWithTermHelpText.tsx +1 -1
- package/src/components/Divider/Divider.tsx +4 -1
- package/src/components/Divider/__tests__/Divider.test.tsx +10 -0
- package/src/components/DualListSelector/examples/DualListSelectorBasicSearch.tsx +1 -0
- package/src/components/DualListSelector/examples/DualListSelectorComplexOptionsActions.tsx +1 -0
- package/src/components/DualListSelector/examples/DualListSelectorTree.tsx +1 -0
- package/src/components/ExpandableSection/ExpandableSection.tsx +1 -1
- package/src/components/ExpandableSection/ExpandableSectionToggle.tsx +1 -1
- package/src/components/Form/FormFieldGroup.tsx +1 -1
- package/src/components/Form/FormFieldGroupExpandable.tsx +1 -1
- package/src/components/Form/FormGroupLabelHelp.tsx +2 -2
- package/src/components/Form/InternalFormFieldGroup.tsx +1 -1
- package/src/components/List/List.tsx +3 -0
- package/src/components/List/ListItem.tsx +7 -4
- package/src/components/List/__tests__/List.test.tsx +97 -101
- package/src/components/List/__tests__/ListItem.test.tsx +51 -0
- package/src/components/List/__tests__/__snapshots__/List.test.tsx.snap +4 -261
- package/src/components/List/__tests__/__snapshots__/ListItem.test.tsx.snap +34 -0
- 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/Nav.tsx +1 -1
- package/src/components/Nav/NavExpandable.tsx +6 -1
- package/src/components/Nav/NavItemSeparator.tsx +2 -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/Progress/ProgressContainer.tsx +23 -16
- package/src/components/Progress/examples/ProgressTitleOutsideOfProgressBar.tsx +1 -1
- package/src/components/SearchInput/examples/SearchInputAdvanced.tsx +1 -0
- package/src/components/SearchInput/examples/SearchInputBasic.tsx +1 -0
- package/src/components/SearchInput/examples/SearchInputFocusSearch.tsx +7 -1
- package/src/components/SearchInput/examples/SearchInputWithExpandable.tsx +1 -0
- package/src/components/SearchInput/examples/SearchInputWithNavigableOptions.tsx +1 -0
- package/src/components/SearchInput/examples/SearchInputWithResultCount.tsx +1 -0
- package/src/components/SearchInput/examples/SearchInputWithSubmitButton.tsx +1 -0
- package/src/components/Select/examples/Select.md +3 -26
- package/src/components/Skeleton/examples/SkeletonText.tsx +0 -1
- package/src/components/Tabs/Tabs.tsx +3 -1
- package/src/components/Toolbar/ToolbarGroup.tsx +1 -1
- package/src/components/Toolbar/ToolbarItem.tsx +11 -1
- package/src/components/TreeView/TreeViewListItem.tsx +2 -2
- package/src/components/TreeView/__tests__/TreeView.test.tsx +26 -1
- package/src/components/TreeView/__tests__/TreeViewList.test.tsx +46 -0
- package/src/components/TreeView/__tests__/TreeViewListItem.test.tsx +278 -156
- package/src/components/TreeView/__tests__/TreeViewSearch.test.tsx +12 -1
- package/src/components/TreeView/__tests__/__snapshots__/TreeView.test.tsx.snap +9 -0
- package/src/components/Truncate/Truncate.tsx +123 -32
- package/src/components/Truncate/__tests__/Truncate.test.tsx +75 -5
- package/src/components/Truncate/__tests__/__snapshots__/Truncate.test.tsx.snap +55 -15
- package/src/components/Truncate/examples/Truncate.md +32 -36
- package/src/components/Truncate/examples/TruncateCustomTooltipPosition.tsx +10 -0
- package/src/components/Truncate/examples/TruncateDefault.tsx +7 -0
- package/src/components/Truncate/examples/TruncateMaxChars.tsx +27 -0
- package/src/components/Truncate/examples/TruncateMiddle.tsx +11 -0
- package/src/components/Truncate/examples/TruncateStart.tsx +7 -0
- package/src/components/Wizard/WizardNavInternal.tsx +1 -1
- package/src/components/Wizard/examples/WizardGetCurrentStep.tsx +1 -1
- 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 +5 -5
- package/src/demos/DescriptionList/examples/DescriptionListInDrawer.tsx +6 -4
- 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/SearchInput/SearchInput.md +2 -0
- 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 +4 -5
- package/src/demos/examples/Card/CardEventsView.tsx +3 -4
- package/src/demos/examples/Card/CardLogView.tsx +3 -4
- package/src/demos/examples/Card/CardStatus.tsx +0 -1
- package/src/demos/examples/Card/CardStatusTabbed.tsx +3 -3
- 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/components/List/__tests__/Generated/ListItem.test.tsx +0 -12
- package/src/components/List/__tests__/Generated/__snapshots__/ListItem.test.tsx.snap +0 -13
|
@@ -465,16 +465,16 @@ export const CardViewBasic: React.FunctionComponent = () => {
|
|
|
465
465
|
return (
|
|
466
466
|
<Fragment>
|
|
467
467
|
<DashboardWrapper mainContainerId="main-content-card-view-default-nav" breadcrumb={null}>
|
|
468
|
-
<PageSection>
|
|
468
|
+
<PageSection aria-labelledby="projects">
|
|
469
469
|
<Content>
|
|
470
|
-
<h1>Projects</h1>
|
|
470
|
+
<h1 id="projects">Projects</h1>
|
|
471
471
|
<p>This is a demo that showcases PatternFly cards.</p>
|
|
472
472
|
</Content>
|
|
473
473
|
<Toolbar id="toolbar-group-types" clearAllFilters={onDelete}>
|
|
474
474
|
<ToolbarContent>{toolbarItems}</ToolbarContent>
|
|
475
475
|
</Toolbar>
|
|
476
476
|
</PageSection>
|
|
477
|
-
<PageSection isFilled>
|
|
477
|
+
<PageSection isFilled aria-label="Selectable card gallery">
|
|
478
478
|
<Gallery hasGutter aria-label="Selectable card container">
|
|
479
479
|
<Card isCompact>
|
|
480
480
|
<Bullseye>
|
|
@@ -546,7 +546,12 @@ export const CardViewBasic: React.FunctionComponent = () => {
|
|
|
546
546
|
))}
|
|
547
547
|
</Gallery>
|
|
548
548
|
</PageSection>
|
|
549
|
-
<PageSection
|
|
549
|
+
<PageSection
|
|
550
|
+
isFilled={false}
|
|
551
|
+
stickyOnBreakpoint={{ default: 'bottom' }}
|
|
552
|
+
padding={{ default: 'noPadding' }}
|
|
553
|
+
aria-label="Pagination controls"
|
|
554
|
+
>
|
|
550
555
|
<Pagination
|
|
551
556
|
itemCount={totalItemCount}
|
|
552
557
|
page={page}
|
|
@@ -33,13 +33,15 @@ export const DataListActionable: React.FunctionComponent = () => {
|
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
35
|
<DashboardWrapper mainContainerId="main-content-datalist-view-actions" breadcrumb={null}>
|
|
36
|
-
<PageSection>
|
|
36
|
+
<PageSection aria-labelledby="projects">
|
|
37
37
|
<Content>
|
|
38
|
-
<Title headingLevel="h1">
|
|
38
|
+
<Title headingLevel="h1" id="projects">
|
|
39
|
+
Projects
|
|
40
|
+
</Title>
|
|
39
41
|
<Content component="p">This is a demo that showcases PatternFly Data List</Content>
|
|
40
42
|
</Content>
|
|
41
43
|
</PageSection>
|
|
42
|
-
<PageSection>
|
|
44
|
+
<PageSection aria-label="Data list of projects">
|
|
43
45
|
<DataList aria-label="single action data list example ">
|
|
44
46
|
{!isDeleted && (
|
|
45
47
|
<DataListItem aria-labelledby="single-action-item1">
|
|
@@ -69,9 +69,9 @@ export const DataListBasic: React.FunctionComponent = () => {
|
|
|
69
69
|
return (
|
|
70
70
|
<Fragment>
|
|
71
71
|
<DashboardWrapper mainContainerId="main-content-datalist-view-default-nav" breadcrumb={null}>
|
|
72
|
-
<PageSection>
|
|
72
|
+
<PageSection aria-labelledby="projects">
|
|
73
73
|
<Content>
|
|
74
|
-
<h1>Projects</h1>
|
|
74
|
+
<h1 id="projects">Projects</h1>
|
|
75
75
|
<p>This is a demo that showcases PatternFly data list</p>
|
|
76
76
|
</Content>
|
|
77
77
|
</PageSection>
|
|
@@ -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,22 +18,22 @@ 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>
|
|
34
34
|
<Divider />
|
|
35
35
|
<CardBody>
|
|
36
|
-
<DescriptionList isAutoFit>
|
|
36
|
+
<DescriptionList isAutoFit aria-label="Details">
|
|
37
37
|
<DescriptionListGroup>
|
|
38
38
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
39
39
|
<DescriptionListDescription>mary-test</DescriptionListDescription>
|
|
@@ -51,7 +51,7 @@ export const DescriptionListInDrawer: React.FunctionComponent = () => {
|
|
|
51
51
|
</DrawerActions>
|
|
52
52
|
</DrawerHead>
|
|
53
53
|
<DrawerPanelBody>
|
|
54
|
-
<DescriptionList isFillColumns columnModifier={{ default: '2Col', lg: '2Col' }}>
|
|
54
|
+
<DescriptionList isFillColumns columnModifier={{ default: '2Col', lg: '2Col' }} aria-label="Details">
|
|
55
55
|
<DescriptionListGroup>
|
|
56
56
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
57
57
|
<DescriptionListDescription>test</DescriptionListDescription>
|
|
@@ -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>
|
|
@@ -172,6 +172,7 @@ SearchAutocomplete = () => {
|
|
|
172
172
|
ref={searchInputRef}
|
|
173
173
|
hint={hint}
|
|
174
174
|
id="autocomplete-search"
|
|
175
|
+
aria-label='Search with autocomplete'
|
|
175
176
|
/>
|
|
176
177
|
);
|
|
177
178
|
|
|
@@ -401,6 +402,7 @@ AdvancedComposableSearchInput = () => {
|
|
|
401
402
|
onSearch={onSubmit}
|
|
402
403
|
ref={searchInputRef}
|
|
403
404
|
id="custom-advanced-search"
|
|
405
|
+
aria-label='Composable advanced search'
|
|
404
406
|
/>
|
|
405
407
|
);
|
|
406
408
|
|
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">
|
|
@@ -23,7 +22,7 @@ export const CardDetailsDemo: React.FunctionComponent = () => (
|
|
|
23
22
|
</Title>
|
|
24
23
|
</CardTitle>
|
|
25
24
|
<CardBody>
|
|
26
|
-
<DescriptionList>
|
|
25
|
+
<DescriptionList aria-label="Cluster details for API1">
|
|
27
26
|
<DescriptionListGroup>
|
|
28
27
|
<DescriptionListTerm>Cluster API Address</DescriptionListTerm>
|
|
29
28
|
<DescriptionListDescription>
|
|
@@ -60,7 +59,7 @@ export const CardDetailsDemo: React.FunctionComponent = () => (
|
|
|
60
59
|
</Title>
|
|
61
60
|
</CardTitle>
|
|
62
61
|
<CardBody>
|
|
63
|
-
<DescriptionList>
|
|
62
|
+
<DescriptionList aria-label="Cluster details for API2">
|
|
64
63
|
<DescriptionListGroup>
|
|
65
64
|
<DescriptionListTerm>Cluster API Address</DescriptionListTerm>
|
|
66
65
|
<DescriptionListDescription>
|
|
@@ -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>
|
|
@@ -72,7 +71,7 @@ export const CardEventsView: React.FunctionComponent = () => {
|
|
|
72
71
|
</CardTitle>
|
|
73
72
|
</CardHeader>
|
|
74
73
|
<CardBody>
|
|
75
|
-
<DescriptionList>
|
|
74
|
+
<DescriptionList aria-label="Events view">
|
|
76
75
|
<DescriptionListGroup>
|
|
77
76
|
<DescriptionListTerm>
|
|
78
77
|
<Flex flexWrap={{ default: 'nowrap' }}>
|
|
@@ -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>
|
|
@@ -71,7 +70,7 @@ export const CardLogView: React.FunctionComponent = () => {
|
|
|
71
70
|
</CardTitle>
|
|
72
71
|
</CardHeader>
|
|
73
72
|
<CardBody>
|
|
74
|
-
<DescriptionList>
|
|
73
|
+
<DescriptionList aria-label="Activity logs">
|
|
75
74
|
<DescriptionListGroup>
|
|
76
75
|
<DescriptionListTerm>Readiness probe failed</DescriptionListTerm>
|
|
77
76
|
<DescriptionListDescription>
|
|
@@ -68,8 +68,8 @@ export const CardStatusTabbed: React.FunctionComponent = () => {
|
|
|
68
68
|
setActiveTabKey(Number(tabIndex));
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
const tabContent = (
|
|
72
|
-
<DescriptionList isHorizontal columnModifier={{ lg: '2Col' }}>
|
|
71
|
+
const tabContent = (tabIndex: number) => (
|
|
72
|
+
<DescriptionList isHorizontal columnModifier={{ lg: '2Col' }} aria-label={`Object ${tabIndex + 1} status`}>
|
|
73
73
|
{descriptionListData.map(({ status, resourceName, detail, icon }, index) => (
|
|
74
74
|
<DescriptionListGroup key={index}>
|
|
75
75
|
<DescriptionListTerm>
|
|
@@ -120,7 +120,7 @@ export const CardStatusTabbed: React.FunctionComponent = () => {
|
|
|
120
120
|
activeKey={activeTabKey}
|
|
121
121
|
hidden={tabIndex !== activeTabKey}
|
|
122
122
|
>
|
|
123
|
-
{tabContent}
|
|
123
|
+
{tabContent(tabIndex)}
|
|
124
124
|
</TabContent>
|
|
125
125
|
))}
|
|
126
126
|
</CardBody>
|
|
@@ -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>
|