@patternfly/patternfly 5.0.0-alpha.14 → 5.0.0-alpha.18
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/assets/pficon/pficon.woff +0 -0
- package/assets/pficon/pficon.woff2 +0 -0
- package/components/Accordion/accordion.css +2 -0
- package/components/Accordion/accordion.scss +2 -0
- package/components/AppLauncher/app-launcher.css +2 -0
- package/components/AppLauncher/app-launcher.scss +2 -0
- package/components/Breadcrumb/breadcrumb.css +2 -0
- package/components/Breadcrumb/breadcrumb.scss +2 -0
- package/components/ContextSelector/context-selector.css +5 -1
- package/components/ContextSelector/context-selector.scss +6 -2
- package/components/DataList/data-list.css +2 -0
- package/components/DataList/data-list.scss +2 -0
- package/components/Drawer/drawer.css +13 -13
- package/components/Dropdown/dropdown.css +12 -10
- package/components/Dropdown/dropdown.scss +2 -0
- package/components/ExpandableSection/expandable-section.css +2 -0
- package/components/ExpandableSection/expandable-section.scss +2 -0
- package/components/Label/label.css +2 -0
- package/components/Label/label.scss +2 -0
- package/components/Login/login.css +1 -1
- package/components/Menu/menu.css +2 -0
- package/components/Menu/menu.scss +2 -0
- package/components/MenuToggle/menu-toggle.css +2 -0
- package/components/MenuToggle/menu-toggle.scss +2 -0
- package/components/Page/page.css +60 -60
- package/components/Pagination/pagination.css +2 -2
- package/components/SearchInput/search-input.css +2 -0
- package/components/SearchInput/search-input.scss +2 -0
- package/components/Table/table-grid.css +28 -28
- package/components/Table/table-tree-view.css +4 -4
- package/components/TextInputGroup/text-input-group.css +4 -2
- package/components/TextInputGroup/text-input-group.scss +4 -3
- package/components/Toolbar/toolbar.css +35 -35
- package/components/TreeView/tree-view.css +7 -15
- package/components/TreeView/tree-view.scss +7 -18
- package/components/Wizard/wizard.css +2 -0
- package/components/Wizard/wizard.scss +2 -0
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +13 -13
- package/docs/components/Accordion/examples/Accordion.md +12 -12
- package/docs/components/ActionList/examples/ActionList.md +6 -6
- package/docs/components/Alert/examples/Alert.md +19 -19
- package/docs/components/AlertGroup/examples/AlertGroup.md +10 -10
- package/docs/components/AppLauncher/examples/application-launcher.md +34 -34
- package/docs/components/Avatar/examples/Avatar.md +11 -11
- package/docs/components/BackToTop/examples/BackToTop.md +4 -4
- package/docs/components/Backdrop/examples/Backdrop.md +4 -4
- package/docs/components/BackgroundImage/examples/BackgroundImage.md +4 -4
- package/docs/components/Badge/examples/Badge.md +5 -5
- package/docs/components/Banner/examples/Banner.md +8 -8
- package/docs/components/Brand/examples/Brand.md +9 -9
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +15 -15
- package/docs/components/Button/examples/Button.md +35 -35
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +32 -32
- package/docs/components/Card/examples/Card.md +27 -27
- package/docs/components/Check/examples/Check.md +13 -13
- package/docs/components/Chip/examples/Chip.md +13 -13
- package/docs/components/ChipGroup/examples/ChipGroup.md +15 -15
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +22 -22
- package/docs/components/CodeBlock/examples/CodeBlock.md +9 -9
- package/docs/components/CodeEditor/examples/CodeEditor.md +56 -33
- package/docs/components/Content/examples/Content.md +10 -10
- package/docs/components/ContextSelector/examples/context-selector.css +5 -1
- package/docs/components/ContextSelector/examples/context-selector.md +80 -74
- package/docs/components/DataList/examples/DataList.md +83 -83
- package/docs/components/DatePicker/examples/DatePicker.md +10 -10
- package/docs/components/DescriptionList/examples/DescriptionList.md +24 -24
- package/docs/components/Divider/examples/Divider.md +9 -9
- package/docs/components/DragDrop/examples/DragDrop.md +5 -5
- package/docs/components/Drawer/examples/Drawer.md +43 -43
- package/docs/components/Dropdown/examples/Dropdown.css +5 -2
- package/docs/components/Dropdown/examples/Dropdown.md +50 -50
- package/docs/components/DualListSelector/examples/DualListSelector.md +201 -197
- package/docs/components/EmptyState/examples/EmptyState.md +19 -19
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +23 -23
- package/docs/components/FileUpload/examples/FileUpload.md +8 -8
- package/docs/components/Form/examples/Form.md +64 -64
- package/docs/components/FormControl/examples/FormControl.md +20 -20
- package/docs/components/HelperText/examples/HelperText.md +11 -11
- package/docs/components/Hint/examples/Hint.md +7 -7
- package/docs/components/Icon/examples/Icon.md +10 -10
- package/docs/components/InlineEdit/examples/InlineEdit.md +24 -24
- package/docs/components/InputGroup/examples/InputGroup.md +10 -10
- package/docs/components/JumpLinks/examples/JumpLinks.md +21 -21
- package/docs/components/Label/examples/Label.md +31 -31
- package/docs/components/LabelGroup/examples/LabelGroup.md +22 -22
- package/docs/components/List/examples/List.md +6 -6
- package/docs/components/LogViewer/examples/LogViewer.md +69 -69
- package/docs/components/Login/examples/Login.md +22 -22
- package/docs/components/Masthead/examples/masthead.md +9 -9
- package/docs/components/Menu/examples/Menu.md +78 -76
- package/docs/components/MenuToggle/examples/MenuToggle.md +24 -24
- package/docs/components/ModalBox/examples/ModalBox.md +35 -35
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +22 -22
- package/docs/components/Nav/examples/Navigation.md +36 -36
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +8 -8
- package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +39 -39
- package/docs/components/NumberInput/examples/NumberInput.md +12 -12
- package/docs/components/OptionsMenu/examples/options-menu.md +27 -28
- package/docs/components/OverflowMenu/examples/overflow-menu.md +25 -25
- package/docs/components/Page/examples/Page.md +54 -54
- package/docs/components/Pagination/examples/Pagination.md +27 -27
- package/docs/components/Panel/examples/Panel.md +10 -10
- package/docs/components/Popover/examples/Popover.md +34 -34
- package/docs/components/Progress/examples/Progress.md +31 -31
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +24 -24
- package/docs/components/Radio/examples/Radio.md +11 -11
- package/docs/components/SearchInput/examples/SearchInput.md +34 -34
- package/docs/components/Select/examples/Select.md +143 -143
- package/docs/components/Sidebar/examples/Sidebar.md +14 -14
- package/docs/components/SimpleList/examples/SimpleList.md +11 -11
- package/docs/components/Skeleton/examples/Skeleton.md +8 -8
- package/docs/components/SkipToContent/examples/SkipToContent.md +5 -5
- package/docs/components/Slider/examples/Slider.md +24 -24
- package/docs/components/Spinner/examples/Spinner.md +24 -24
- package/docs/components/Switch/examples/Switch.md +19 -19
- package/docs/components/TabContent/examples/TabContent.md +13 -13
- package/docs/components/Table/examples/Table.md +155 -155
- package/docs/components/Tabs/examples/Tabs.md +47 -47
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +19 -19
- package/docs/components/Tile/examples/Tile.md +15 -15
- package/docs/components/Timestamp/examples/Timestamp.md +5 -5
- package/docs/components/Title/examples/Title.md +17 -17
- package/docs/components/ToggleGroup/examples/toggle-group.md +13 -13
- package/docs/components/Toolbar/examples/Toolbar.md +113 -113
- package/docs/components/Tooltip/examples/Tooltip.md +10 -10
- package/docs/components/TreeView/examples/TreeView.md +34 -34
- package/docs/components/Truncate/examples/Truncate.md +4 -4
- package/docs/components/Wizard/examples/Wizard.md +47 -47
- package/docs/demos/DataList/examples/DataList.md +4 -4
- package/docs/demos/Masthead/examples/Masthead.md +6 -6
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +6 -6
- package/docs/demos/Table/examples/Table.md +22 -22
- package/docs/demos/Toolbar/examples/Toolbar.md +8 -8
- package/docs/layouts/Bullseye/examples/Bullseye.md +4 -4
- package/docs/layouts/Flex/examples/Flex.md +98 -98
- package/docs/layouts/Gallery/examples/Gallery.md +7 -7
- package/docs/layouts/Grid/examples/Grid.md +9 -9
- package/docs/layouts/Level/examples/Level.md +5 -5
- package/docs/layouts/Split/examples/Split.md +7 -7
- package/docs/layouts/Stack/examples/Stack.md +6 -6
- package/docs/utilities/Accessibility/examples/Accessibility.md +4 -4
- package/docs/utilities/Alignment/examples/Alignment.md +6 -6
- package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +12 -12
- package/docs/utilities/BoxShadow/examples/box-shadow.md +22 -22
- package/docs/utilities/Display/examples/Display.md +11 -11
- package/docs/utilities/Flex/examples/Flex.md +34 -34
- package/docs/utilities/Float/examples/Float.md +4 -4
- package/docs/utilities/Sizing/examples/Sizing.md +50 -50
- package/docs/utilities/Spacing/examples/Spacing.md +34 -34
- package/docs/utilities/Text/examples/Text.md +27 -27
- package/icons/{pf-icons.json → pf-icons.mjs} +1 -1
- package/layouts/Grid/grid.css +5 -5
- package/package.json +56 -61
- package/patternfly-no-reset.css +196 -176
- package/patternfly.css +196 -176
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
|
@@ -523,40 +523,40 @@ A popover is used to provide contextual information for another component on cli
|
|
|
523
523
|
|
|
524
524
|
### Accessibility
|
|
525
525
|
|
|
526
|
-
| Attribute
|
|
527
|
-
|
|
|
528
|
-
| `role="dialog"`
|
|
529
|
-
| `aria-labelledby="[id value of .pf-c-title]"`
|
|
530
|
-
| `aria-label="[title of popover]"`
|
|
531
|
-
| `aria-describedby="[id value of applicable content]"` | `.pf-c-popover`
|
|
532
|
-
| `aria-modal="true"`
|
|
533
|
-
| `aria-label="Close"`
|
|
534
|
-
| `aria-hidden="true"`
|
|
526
|
+
| Attribute | Applies to | Outcome |
|
|
527
|
+
| -- | -- | -- |
|
|
528
|
+
| `role="dialog"` | `.pf-c-popover` | Identifies the element that serves as the popover container. **Required** |
|
|
529
|
+
| `aria-labelledby="[id value of .pf-c-title]"` | `.pf-c-popover` | Gives the popover an accessible name by referring to the element that provides the dialog title. **Required when .pf-c-title is present** |
|
|
530
|
+
| `aria-label="[title of popover]"` | `.pf-c-popover` | Gives the popover an accessible name. **Required when .pf-c-title is *not* present** |
|
|
531
|
+
| `aria-describedby="[id value of applicable content]"` | `.pf-c-popover` | Gives the popover an accessible description by referring to the popover content that describes the primary message or purpose of the dialog. Not used if there is no static text that describes the popover. |
|
|
532
|
+
| `aria-modal="true"` | `.pf-c-popover` | Tells assistive technologies that the windows underneath the current popover are not available for interaction. **Required**|
|
|
533
|
+
| `aria-label="Close"` | `.pf-c-button` | Provides an accessible name for the close button as it uses an icon instead of text. **Required**|
|
|
534
|
+
| `aria-hidden="true"` | Parent element containing the page contents when the popover is open. | Hides main contents of the page from screen readers. The element with `.pf-c-popover` must not be a descendent of the element with `aria-hidden="true"`. For more info, see [trapping focus](/accessibility/product-development-guide#trapping-focus). **Required** |
|
|
535
535
|
|
|
536
536
|
### Usage
|
|
537
537
|
|
|
538
|
-
| Class
|
|
539
|
-
|
|
|
540
|
-
| `.pf-c-popover`
|
|
541
|
-
| `.pf-c-popover__arrow`
|
|
542
|
-
| `.pf-c-popover__content`
|
|
543
|
-
| `.pf-c-button`
|
|
544
|
-
| `.pf-c-popover__header`
|
|
545
|
-
| `.pf-c-popover__title`
|
|
546
|
-
| `.pf-c-title`
|
|
547
|
-
| `.pf-c-popover__title-icon` | `<span>`
|
|
548
|
-
| `.pf-c-popover__title-text` | `<span>`
|
|
549
|
-
| `.pf-c-popover__body`
|
|
550
|
-
| `.pf-c-popover__footer`
|
|
551
|
-
| `.pf-m-left{-top/bottom}`
|
|
552
|
-
| `.pf-m-right{-top/bottom}`
|
|
553
|
-
| `.pf-m-top{-left/right}`
|
|
554
|
-
| `.pf-m-bottom{-left/right}` | `.pf-c-popover`
|
|
555
|
-
| `.pf-m-no-padding`
|
|
556
|
-
| `.pf-m-width-auto`
|
|
557
|
-
| `.pf-m-icon`
|
|
558
|
-
| `.pf-m-default`
|
|
559
|
-
| `.pf-m-info`
|
|
560
|
-
| `.pf-m-success`
|
|
561
|
-
| `.pf-m-warning`
|
|
562
|
-
| `.pf-m-danger`
|
|
538
|
+
| Class | Applied to | Outcome |
|
|
539
|
+
| -- | -- | -- |
|
|
540
|
+
| `.pf-c-popover` | `<div>` | Creates a popover. Always use it with a modifier class that positions the popover relative to the element that triggered it. **Required** |
|
|
541
|
+
| `.pf-c-popover__arrow` | `<div>` | Creates an arrow pointing towards the element the popover describes. **Required** |
|
|
542
|
+
| `.pf-c-popover__content` | `<div>` | Creates the content area of the popover. **Required** |
|
|
543
|
+
| `.pf-c-button` | `<button>` | Positions the close icon in the top-right corner of the popover. **Required** |
|
|
544
|
+
| `.pf-c-popover__header` | `<header>` | Creates the popover header |
|
|
545
|
+
| `.pf-c-popover__title` | `<h1>`,`<h2>`,`<h3>`,`<h4>`,`<h5>`,`<h6>`,`<div>` | Creates the popover title |
|
|
546
|
+
| `.pf-c-title` | `<h1>`,`<h2>`,`<h3>`,`<h4>`,`<h5>`,`<h6>` | Initiates a title. Always use it with a modifier class. See the [title component](/components/title) for more info.|
|
|
547
|
+
| `.pf-c-popover__title-icon` | `<span>` | Creates the popover title icon |
|
|
548
|
+
| `.pf-c-popover__title-text` | `<span>` | Creates the popover title text |
|
|
549
|
+
| `.pf-c-popover__body` | `<div>` | The popover's body text. **Required** |
|
|
550
|
+
| `.pf-c-popover__footer` | `<footer>` | Initiates a popover footer. |
|
|
551
|
+
| `.pf-m-left{-top/bottom}` | `.pf-c-popover` | Positions the popover to the left (or left top/left bottom) of the element. |
|
|
552
|
+
| `.pf-m-right{-top/bottom}` | `.pf-c-popover` | Positions the popover to the right (or right top/right bottom) of the element. |
|
|
553
|
+
| `.pf-m-top{-left/right}` | `.pf-c-popover` | Positions the popover to the top (or top left/top right) of the element. |
|
|
554
|
+
| `.pf-m-bottom{-left/right}` | `.pf-c-popover` | Positions the popover to the bottom (or bottom left/bottom right) of the element. |
|
|
555
|
+
| `.pf-m-no-padding` | `.pf-c-popover` | Removes the outer padding from the popover content. |
|
|
556
|
+
| `.pf-m-width-auto` | `.pf-c-popover` | Allows popover width to be defined by the popover content. |
|
|
557
|
+
| `.pf-m-icon` | `.pf-c-popover__title` | Modifies the title layout to accommodate an icon. |
|
|
558
|
+
| `.pf-m-default` | `.pf-c-popover` | Modifies for the default alert state. |
|
|
559
|
+
| `.pf-m-info` | `.pf-c-popover` | Modifies for the info alert state. |
|
|
560
|
+
| `.pf-m-success` | `.pf-c-popover` | Modifies for the success alert state. |
|
|
561
|
+
| `.pf-m-warning` | `.pf-c-popover` | Modifies for the warning alert state. |
|
|
562
|
+
| `.pf-m-danger` | `.pf-c-popover` | Modifies for the danger alert state. |
|
|
@@ -656,37 +656,37 @@ If the status that displays with the bar is not a percentage, then the ARIA tag
|
|
|
656
656
|
|
|
657
657
|
If this component is describing the loading progress of a particular region of a page, the author should use `aria-describedby` to point to the status, and set the `aria-busy` attribute to `true` on the region until it is finished loading.
|
|
658
658
|
|
|
659
|
-
| Attribute
|
|
660
|
-
|
|
|
661
|
-
| `role="progressbar"`
|
|
662
|
-
| `aria-valuenow=""`
|
|
663
|
-
| `aria-valuemin="0"`
|
|
664
|
-
| `aria-valuemax="100"`
|
|
665
|
-
| `aria-label="[id of .pf-c-progress__description]"`
|
|
666
|
-
| `aria-labelledby="[id element that labels the progress]"`
|
|
667
|
-
| `aria-describedby="[id of element that describes the progress]"` | `.pf-c-progress__bar`
|
|
668
|
-
| `aria-valuetext="[loading state]"`
|
|
669
|
-
| `aria-hidden="true"`
|
|
659
|
+
| Attribute | Applied to | Outcome |
|
|
660
|
+
| -- | -- | -- |
|
|
661
|
+
| `role="progressbar"` | `.pf-c-progress__bar` | This role is used for an element that displays the progress status for a task that takes a long time or consists of several steps. |
|
|
662
|
+
| `aria-valuenow=""` | `.pf-c-progress__bar` | This value needs to be updated as progress continues. |
|
|
663
|
+
| `aria-valuemin="0"` | `.pf-c-progress__bar` | The minimum value for the progress bar. |
|
|
664
|
+
| `aria-valuemax="100"` | `.pf-c-progress__bar` | The maximum value for the progress bar. If the progress is only defined using `aria-valuenow` (e.g a percentage), the value should be set to "100". If the progress is defined using `aria-valuetext`, then this value can be a number other than 100. For example, if `aria-valuetext` is "2 of 5 units", then `aria-valuemax` can be "5" and `aria-valuenow` can be "2". |
|
|
665
|
+
| `aria-label="[id of .pf-c-progress__description]"` | `.pf-c-progress__bar` | Provides an accessible name for the progress component. |
|
|
666
|
+
| `aria-labelledby="[id element that labels the progress]"` | `.pf-c-progress__bar` | Provides an accessible name for the progress component. |
|
|
667
|
+
| `aria-describedby="[id of element that describes the progress]"` | `.pf-c-progress__bar` | Provides an accessible description for the progress component. |
|
|
668
|
+
| `aria-valuetext="[loading state]"` | `.pf-c-progress__bar` | Provide a text string that communicates current status. Only use if the important information about status is included in the text string. Do not use if percentage is the most important value to communicate. Some screen readers will ignore the percentage value determined from `aria-valuenow` when `aria-valuetext` is used. |
|
|
669
|
+
| `aria-hidden="true"` | `.pf-c-progress__status` | Hides the visible progress bar status from screen readers. This information is communicated by the aria attributes defined on the `.pf-c-progress__bar` element. |
|
|
670
670
|
|
|
671
671
|
### Usage
|
|
672
672
|
|
|
673
|
-
| Class
|
|
674
|
-
|
|
|
675
|
-
| `.pf-c-progress`
|
|
676
|
-
| `.pf-c-progress__description` | `<div>`
|
|
677
|
-
| `.pf-c-progress__status`
|
|
678
|
-
| `.pf-c-progress__measure`
|
|
679
|
-
| `.pf-c-progress__status-icon` | `<span>`
|
|
680
|
-
| `.pf-c-progress__bar`
|
|
681
|
-
| `.pf-c-progress__indicator`
|
|
682
|
-
| `.pf-c-progress__helper-text` | `<div>`
|
|
683
|
-
| `.pf-m-lg`
|
|
684
|
-
| `.pf-m-sm`
|
|
685
|
-
| `.pf-m-inside`
|
|
686
|
-
| `.pf-m-outside`
|
|
687
|
-
| `.pf-m-singleline`
|
|
688
|
-
| `.pf-m-success`
|
|
689
|
-
| `.pf-m-warning`
|
|
690
|
-
| `.pf-m-danger`
|
|
691
|
-
| `.pf-m-truncate`
|
|
692
|
-
| `.pf-m-static-width`
|
|
673
|
+
| Class | Applied to | Outcome |
|
|
674
|
+
| -- | -- | -- |
|
|
675
|
+
| `.pf-c-progress` | `<div>` | Initiates a progress component. |
|
|
676
|
+
| `.pf-c-progress__description` | `<div>` | The description for a progress bar. |
|
|
677
|
+
| `.pf-c-progress__status` | `<div>` | Displays the % of progress and status icons. |
|
|
678
|
+
| `.pf-c-progress__measure` | `<span>` | Displays the % complete. |
|
|
679
|
+
| `.pf-c-progress__status-icon` | `<span>` | Displays the status icon. (optional) |
|
|
680
|
+
| `.pf-c-progress__bar` | `<div>` | Displays across the entire width and represents the completed state. |
|
|
681
|
+
| `.pf-c-progress__indicator` | `<div>` | Displays with the `.pf-c-progress__bar` to indicate the progress so far. |
|
|
682
|
+
| `.pf-c-progress__helper-text` | `<div>` | Displays additional text below the progress bar. (optional) |
|
|
683
|
+
| `.pf-m-lg` | `.pf-c-progress` | Modifies the progress bar to be larger. |
|
|
684
|
+
| `.pf-m-sm` | `.pf-c-progress` | Modifies the progress bar to be smaller. |
|
|
685
|
+
| `.pf-m-inside` | `.pf-c-progress` | Shows the measure within the progress indicator. NOTE: This option requires `.pf-m-lg`.|
|
|
686
|
+
| `.pf-m-outside` | `.pf-c-progress` | Shows the measure and status icon to the right of the progress bar. |
|
|
687
|
+
| `.pf-m-singleline` | `.pf-c-progress` | Modifies the progress component to exist on one row. If a measure is needed, use with `.pf-m-inside` or `.pf-m-outside`|
|
|
688
|
+
| `.pf-m-success` | `.pf-c-progress` | Changes the appearance of the progess component to indicate a success state. |
|
|
689
|
+
| `.pf-m-warning` | `.pf-c-progress` | Changes the appearance of the progess component to indicate a warning state. |
|
|
690
|
+
| `.pf-m-danger` | `.pf-c-progress` | Changes the appearance of the progess component to indicate a danger (failure) state. |
|
|
691
|
+
| `.pf-m-truncate` | `.pf-c-progress__description` | Modifies the description to display a single line and truncate any overflow text with ellipses. |
|
|
692
|
+
| `.pf-m-static-width` | `.pf-c-progress.pf-m-outside .pf-c-progress__measure` | Modifies the measure element to have a static `min-width` that will hold 0-100%. Overridable by setting `--pf-c-progress__measure--m-static-width--MinWidth`. |
|
|
@@ -867,30 +867,30 @@ Steps can be modified with `.pf-m-success`, `.pf-m-warning`, `.pf-m-danger`, and
|
|
|
867
867
|
|
|
868
868
|
### Accessibility
|
|
869
869
|
|
|
870
|
-
| Attribute
|
|
871
|
-
|
|
|
872
|
-
| `aria-label="[State of the step]"` | `.pf-c-progress-stepper__step`
|
|
873
|
-
| `aria-hidden="true"`
|
|
870
|
+
| Attribute | Applied to | Outcome |
|
|
871
|
+
| -- | -- | -- |
|
|
872
|
+
| `aria-label="[State of the step]"` | `.pf-c-progress-stepper__step` | Provides an accessible label for the step. |
|
|
873
|
+
| `aria-hidden="true"` | `.pf-c-progress-stepper__step-icon <i>` | Hides icon for assistive technologies. **Required** |
|
|
874
874
|
|
|
875
875
|
### Usage
|
|
876
876
|
|
|
877
|
-
| Class
|
|
878
|
-
|
|
|
879
|
-
| `.pf-c-progress-stepper`
|
|
880
|
-
| `.pf-c-progress-stepper__step`
|
|
881
|
-
| `.progress-stepper__step-connector`
|
|
882
|
-
| `.progress-stepper__step-icon`
|
|
883
|
-
| `.progress-stepper__step-main`
|
|
884
|
-
| `.progress-stepper__step-title`
|
|
885
|
-
| `.progress-stepper__step-description` | `<div>`
|
|
886
|
-
| `.pf-m-center
|
|
887
|
-
| `.pf-m-vertical{-on-[breakpoint]}
|
|
888
|
-
| `.pf-m-horizontal{-on-[breakpoint]}
|
|
889
|
-
| `.pf-m-compact
|
|
890
|
-
| `.pf-m-success
|
|
891
|
-
| `.pf-m-warning
|
|
892
|
-
| `.pf-m-danger
|
|
893
|
-
| `.pf-m-info
|
|
894
|
-
| `.pf-m-current
|
|
895
|
-
| `.pf-m-pending
|
|
896
|
-
| `.pf-m-help-text
|
|
877
|
+
| Class | Applied to | Outcome |
|
|
878
|
+
| -- | -- | -- |
|
|
879
|
+
| `.pf-c-progress-stepper` | `<ol>` | Applies default progress stepper styling. **Required** |
|
|
880
|
+
| `.pf-c-progress-stepper__step` | `<li>` | Defines each step of the progress stepper. **Required** |
|
|
881
|
+
| `.progress-stepper__step-connector` | `<div>` | Creates the connecting line between steps **Required** |
|
|
882
|
+
| `.progress-stepper__step-icon` | `<span>` | Creates the step node and contains the icon designating the type of step. This element is required, but may be empty if no icon is used for the step. **Required** |
|
|
883
|
+
| `.progress-stepper__step-main` | `<div>` | Contains the main text content of the step. This element is required, but may be empty if title and description are not used. **Required** |
|
|
884
|
+
| `.progress-stepper__step-title` | `<div>`, `<button>` | Contains the title of the step. **Note:** the step title is a `<button>` when it has `.pf-m-help-text` and is used to trigger a popover with help text. |
|
|
885
|
+
| `.progress-stepper__step-description` | `<div>` | Contains the description of the step. |
|
|
886
|
+
| `.pf-m-center`| `.pf-c-progress-stepper` | Modifies to center each step. |
|
|
887
|
+
| `.pf-m-vertical{-on-[breakpoint]}`| `.pf-c-progress-stepper` | Modifies progress stepper vertical layout at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
888
|
+
| `.pf-m-horizontal{-on-[breakpoint]}`| `.pf-c-progress-stepper` | Modifies progress stepper horizontal layout at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
889
|
+
| `.pf-m-compact`| `.pf-c-progress-stepper` | Modifies for compact styling. |
|
|
890
|
+
| `.pf-m-success`| `.pf-c-progress-stepper__step` | Modifies for success styling. |
|
|
891
|
+
| `.pf-m-warning`| `.pf-c-progress-stepper__step` | Modifies for warning styling. |
|
|
892
|
+
| `.pf-m-danger`| `.pf-c-progress-stepper__step` | Modifies for danger styling. |
|
|
893
|
+
| `.pf-m-info`| `.pf-c-progress-stepper__step` | Modifies for info styling. |
|
|
894
|
+
| `.pf-m-current`| `.pf-c-progress-stepper__step` | Modifies styling for the current step. |
|
|
895
|
+
| `.pf-m-pending`| `.pf-c-progress-stepper__step` | Modifies styling for pending steps. |
|
|
896
|
+
| `.pf-m-help-text`| `.pf-c-progress-stepper__step-title` | Modifies styling for steps that have help text. |
|
|
@@ -195,18 +195,18 @@ If you extend this component or modify the styles of this component, then make s
|
|
|
195
195
|
|
|
196
196
|
### Accessibility
|
|
197
197
|
|
|
198
|
-
| Attribute
|
|
199
|
-
|
|
|
198
|
+
| Attribute | Applied to | Outcome |
|
|
199
|
+
| -- | -- | -- |
|
|
200
200
|
| `disabled` | `<input type="radio">` | Indicates that the element is unavailable and removes it from keyboard focus. **Required when input is disabled** |
|
|
201
201
|
|
|
202
202
|
### Usage
|
|
203
203
|
|
|
204
|
-
| Class
|
|
205
|
-
|
|
|
206
|
-
| `.pf-c-radio`
|
|
207
|
-
| `.pf-c-radio__input`
|
|
208
|
-
| `.pf-c-radio__label`
|
|
209
|
-
| `.pf-c-radio__description` | `<span>`
|
|
210
|
-
| `.pf-c-radio__body`
|
|
211
|
-
| `.pf-m-standalone`
|
|
212
|
-
| `.pf-m-disabled`
|
|
204
|
+
| Class | Applied to | Outcome |
|
|
205
|
+
| -- | -- | -- |
|
|
206
|
+
| `.pf-c-radio` | `<div>`, `<label>` | Initiates the radio component. **Required** |
|
|
207
|
+
| `.pf-c-radio__input` | `<input type="radio">` | Initiates a radio input. **Required** |
|
|
208
|
+
| `.pf-c-radio__label` | `<label>`, `<span>` | Initiates a label. **Required** |
|
|
209
|
+
| `.pf-c-radio__description` | `<span>` | Initiates a radio description. |
|
|
210
|
+
| `.pf-c-radio__body` | `<span>` | Initiates a radio body. |
|
|
211
|
+
| `.pf-m-standalone` | `.pf-c-radio` | Modifies the radio component for use with a standalone `<input type="radio">`. **Required when there is no label** |
|
|
212
|
+
| `.pf-m-disabled` | `.pf-c-radio__label` | Modifies the radio component for the disabled state. **Required when input is disabled** |
|
|
@@ -581,40 +581,40 @@ cssPrefix: pf-c-search-input
|
|
|
581
581
|
|
|
582
582
|
### Accessibility
|
|
583
583
|
|
|
584
|
-
| Attributes
|
|
585
|
-
|
|
|
586
|
-
| `aria-hidden="true"`
|
|
587
|
-
| `aria-label="Previous"`
|
|
588
|
-
| `aria-label="Next"`
|
|
589
|
-
| `aria-label="[descriptive text]"`
|
|
590
|
-
| `aria-label="Clear"`
|
|
591
|
-
| `aria-label="Search"`
|
|
592
|
-
| `aria-label="Advanced search"`
|
|
593
|
-
| `aria-expanded="[true/false]"`
|
|
594
|
-
| `id`
|
|
595
|
-
| `aria-labelledby="[id of text input]"` | `.pf-c-search-input__menu-list`
|
|
596
|
-
| `disabled`
|
|
597
|
-
| `aria-hidden="true"`
|
|
584
|
+
| Attributes | Applied to | Outcome |
|
|
585
|
+
| -- | -- | -- |
|
|
586
|
+
| `aria-hidden="true"` | `.pf-c-search-input__icon > *` | Hides the search icon from assistive technologies. **Required** |
|
|
587
|
+
| `aria-label="Previous"` | `.pf-c-search-input__nav > .pf-c-button` | Provides an accessible label for the previous nav button. **Required** |
|
|
588
|
+
| `aria-label="Next"` | `.pf-c-search-input__nav > .pf-c-button` | Provides an accessible label for the next nav button. **Required** |
|
|
589
|
+
| `aria-label="[descriptive text]"` | `.pf-c-search-input__text-input` | Provides an accessible label for the search input. **Required** |
|
|
590
|
+
| `aria-label="Clear"` | `.pf-c-search-input__clear > .pf-c-button` | Provides an accessible label for the clear button. **Required** |
|
|
591
|
+
| `aria-label="Search"` | `.pf-c-button` | Provides an accessible label for the search button. **Required** |
|
|
592
|
+
| `aria-label="Advanced search"` | `.pf-c-button` | Provides an accessible label for the advanced search toggle. **Required** |
|
|
593
|
+
| `aria-expanded="[true/false]"` | `.pf-c-button` | Indicates whether the advanced search menu is expanded or collapsed. **Required** |
|
|
594
|
+
| `id` | `.pf-c-search-input__text-input` | Assigns an ID that is used with `aria-labelledby` on `.pf-c-search-input__menu-list`. **Required when using autocomplete** |
|
|
595
|
+
| `aria-labelledby="[id of text input]"` | `.pf-c-search-input__menu-list` | Gives the menu list an accessible label. **Required when using autocomplete** |
|
|
596
|
+
| `disabled` | `.pf-c-search-input__text-input.pf-m-hint` | Disables the hint text input from being submitted with the search input. **Required when using hint text** |
|
|
597
|
+
| `aria-hidden="true"` | `.pf-c-search-input__text-input.pf-m-hint` | Hides the hint text input from assistive technology. **Required when using hint text** |
|
|
598
598
|
|
|
599
599
|
### Usage
|
|
600
600
|
|
|
601
|
-
| Class
|
|
602
|
-
|
|
|
603
|
-
| `.pf-c-search-input`
|
|
604
|
-
| `.pf-c-search-input__bar`
|
|
605
|
-
| `.pf-c-search-input__text`
|
|
606
|
-
| `.pf-c-search-input__text-input`
|
|
607
|
-
| `.pf-c-search-input__icon`
|
|
608
|
-
| `.pf-c-search-input__utilities`
|
|
609
|
-
| `.pf-c-search-input__count`
|
|
610
|
-
| `.pf-c-search-input__nav`
|
|
611
|
-
| `.pf-c-search-input__clear`
|
|
612
|
-
| `.pf-c-search-input__menu`
|
|
613
|
-
| `.pf-c-search-input__menu-body`
|
|
614
|
-
| `.pf-c-search-input__menu-list`
|
|
615
|
-
| `.pf-c-search-input__menu-list-item` | `<div>`
|
|
616
|
-
| `.pf-c-search-input__menu-item`
|
|
617
|
-
| `.pf-c-search-input__menu-item-text` | `<span>`
|
|
618
|
-
| `.pf-m-top`
|
|
619
|
-
| `.pf-m-static`
|
|
620
|
-
| `.pf-m-hint`
|
|
601
|
+
| Class | Applied to | Outcome |
|
|
602
|
+
| -- | -- | -- |
|
|
603
|
+
| `.pf-c-search-input` | `<div>` | Initiates the custom search input component. **Required** |
|
|
604
|
+
| `.pf-c-search-input__bar` | `<div>` | Initiates the custom search input bar. **Required** |
|
|
605
|
+
| `.pf-c-search-input__text` | `<span>` | Initiates the text area. **Required** |
|
|
606
|
+
| `.pf-c-search-input__text-input` | `<input>` | Initiates the search input. **Required** |
|
|
607
|
+
| `.pf-c-search-input__icon` | `<span>` | Initiates the search icon container. **Required** |
|
|
608
|
+
| `.pf-c-search-input__utilities` | `<span>` | Initiates the utilities area beside the search input. |
|
|
609
|
+
| `.pf-c-search-input__count` | `<span>` | Initiates the item count container. |
|
|
610
|
+
| `.pf-c-search-input__nav` | `<span>` | Initiates the navigable buttons container. |
|
|
611
|
+
| `.pf-c-search-input__clear` | `<span>` | Initiates the clear button container. **Required when there is text in the search input** |
|
|
612
|
+
| `.pf-c-search-input__menu` | `<div>` | Initiates the search input dropdown menu. |
|
|
613
|
+
| `.pf-c-search-input__menu-body` | `<div>` | Initiates the search input dropdown menu body element. |
|
|
614
|
+
| `.pf-c-search-input__menu-list` | `<div>` | Initiates the search input dropdown menu list. |
|
|
615
|
+
| `.pf-c-search-input__menu-list-item` | `<div>` | Initiates the search input dropdown menu list item. |
|
|
616
|
+
| `.pf-c-search-input__menu-item` | `<div>` | Initiates the search input dropdown menu item. |
|
|
617
|
+
| `.pf-c-search-input__menu-item-text` | `<span>` | Initiates the search input dropdown menu item text. |
|
|
618
|
+
| `.pf-m-top` | `.pf-c-search-input__menu` | Modifies the menu to display above the toggle. |
|
|
619
|
+
| `.pf-m-static` | `.pf-c-search-input__menu` | Modifies the menu to be statically positioned to support custom positioning. |
|
|
620
|
+
| `.pf-m-hint` | `.pf-c-search-input__text-input` | Modifies the text input for hint text styles. |
|