@patternfly/patternfly 5.0.0-alpha.3 → 5.0.0-alpha.31
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/RELEASE-NOTES.md +17 -0
- package/assets/icons/iconUnicodes.json +1 -0
- package/assets/pficon/pficon.scss +6 -0
- package/assets/pficon/pficon.woff +0 -0
- package/assets/pficon/pficon.woff2 +0 -0
- package/base/_base.scss +0 -18
- package/base/_chart-globals.scss +0 -4
- package/base/_common.scss +0 -22
- package/base/_fonts.scss +22 -22
- package/base/_globals.scss +1 -1
- package/base/_icons.scss +1 -28
- package/base/_svg-icons.scss +6 -0
- package/base/_variables.scss +1 -1
- package/base/patternfly-common.css +0 -10
- package/base/patternfly-fonts.css +17 -17
- package/base/patternfly-icons.css +6 -20
- package/base/patternfly-pf-icons.css +5 -1
- package/base/themes/dark/_globals.scss +1 -1
- package/base/themes/dark/_variables.scss +1 -1
- package/components/AboutModalBox/about-modal-box.css +7 -7
- package/components/AboutModalBox/about-modal-box.scss +7 -7
- package/components/Accordion/accordion.css +2 -0
- package/components/Accordion/accordion.scss +2 -0
- package/components/Alert/alert.css +3 -3
- package/components/Alert/alert.scss +3 -3
- package/components/AppLauncher/app-launcher.css +2 -0
- package/components/AppLauncher/app-launcher.scss +2 -0
- package/components/Avatar/avatar.scss +2 -2
- package/components/Banner/banner.css +14 -14
- package/components/Banner/banner.scss +9 -13
- package/components/Breadcrumb/breadcrumb.css +2 -0
- package/components/Breadcrumb/breadcrumb.scss +2 -0
- package/components/CalendarMonth/calendar-month.css +2 -2
- package/components/CalendarMonth/calendar-month.scss +3 -3
- package/components/Card/card.css +20 -21
- package/components/Card/card.scss +22 -26
- package/components/Chip/chip.css +33 -24
- package/components/Chip/chip.scss +40 -31
- package/components/ChipGroup/chip-group.css +27 -17
- package/components/ChipGroup/chip-group.scss +36 -22
- package/components/Content/content.css +11 -5
- package/components/Content/content.scss +17 -9
- package/components/ContextSelector/context-selector.css +5 -1
- package/components/ContextSelector/context-selector.scss +6 -2
- package/components/DataList/data-list-grid.css +7 -7
- package/components/DataList/data-list-grid.scss +1 -1
- package/components/DataList/data-list.css +12 -11
- package/components/DataList/data-list.scss +5 -4
- package/components/DescriptionList/description-list.css +7 -7
- package/components/DescriptionList/description-list.scss +7 -7
- package/components/Divider/divider.css +2 -2
- package/components/Divider/divider.scss +3 -3
- package/components/Drawer/drawer.css +15 -16
- package/components/Drawer/drawer.scss +2 -3
- package/components/Dropdown/dropdown.css +12 -10
- package/components/Dropdown/dropdown.scss +2 -0
- package/components/DualListSelector/dual-list-selector.css +1 -1
- package/components/DualListSelector/dual-list-selector.scss +1 -1
- package/components/EmptyState/empty-state.css +46 -52
- package/components/EmptyState/empty-state.scss +58 -57
- package/components/ExpandableSection/expandable-section.css +2 -0
- package/components/ExpandableSection/expandable-section.scss +2 -0
- package/components/Form/form.css +12 -12
- package/components/Form/form.scss +7 -7
- package/components/FormControl/form-control.css +2 -5
- package/components/FormControl/themes/dark/form-control.scss +2 -6
- package/components/Hint/hint.css +2 -2
- package/components/Hint/hint.scss +2 -2
- package/components/Label/label.css +43 -30
- package/components/Label/label.scss +49 -34
- package/components/LabelGroup/label-group.css +26 -22
- package/components/LabelGroup/label-group.scss +31 -26
- package/components/Login/login.css +11 -11
- package/components/Login/login.scss +10 -10
- package/components/Masthead/masthead.css +4 -4
- package/components/Masthead/masthead.scss +4 -4
- package/components/Menu/menu.css +9 -6
- package/components/Menu/menu.scss +34 -31
- package/components/MenuToggle/menu-toggle.css +3 -1
- package/components/MenuToggle/menu-toggle.scss +3 -1
- package/components/ModalBox/modal-box.css +9 -8
- package/components/ModalBox/modal-box.scss +11 -11
- package/components/MultipleFileUpload/multiple-file-upload.css +6 -6
- package/components/MultipleFileUpload/multiple-file-upload.scss +6 -6
- package/components/Nav/nav.css +1 -1
- package/components/Nav/nav.scss +2 -2
- package/components/NotificationDrawer/notification-drawer.css +3 -3
- package/components/NotificationDrawer/notification-drawer.scss +3 -3
- package/components/Page/page.css +71 -71
- package/components/Page/page.scss +12 -12
- package/components/Pagination/pagination.css +2 -2
- package/components/Popover/popover.css +25 -31
- package/components/Popover/popover.scss +27 -32
- package/components/Popover/themes/dark/popover.scss +2 -8
- package/components/Progress/progress.css +13 -10
- package/components/Progress/progress.scss +13 -10
- package/components/ProgressStepper/progress-stepper.css +5 -5
- package/components/ProgressStepper/progress-stepper.scss +5 -5
- package/components/SearchInput/search-input.css +4 -2
- package/components/SearchInput/search-input.scss +4 -2
- package/components/Select/select.css +1 -1
- package/components/Select/select.scss +1 -1
- package/components/Sidebar/sidebar.css +69 -26
- package/components/Sidebar/sidebar.scss +84 -27
- package/components/SimpleList/simple-list.css +1 -1
- package/components/SimpleList/simple-list.scss +2 -2
- package/components/Spinner/spinner.css +4 -4
- package/components/Spinner/spinner.scss +4 -4
- package/components/Table/table-grid.css +28 -28
- package/components/Table/table-scrollable.css +31 -26
- package/components/Table/table-scrollable.scss +33 -28
- package/components/Table/table-tree-view.css +14 -4
- package/components/Table/table-tree-view.scss +15 -0
- package/components/Table/table.css +7 -2
- package/components/Table/table.scss +9 -2
- package/components/Tabs/tabs.css +0 -4
- package/components/Tabs/tabs.scss +0 -7
- package/components/TextInputGroup/text-input-group.css +6 -4
- package/components/TextInputGroup/text-input-group.scss +6 -5
- package/components/Tile/tile.css +1 -1
- package/components/Tile/tile.scss +1 -1
- package/components/Timestamp/timestamp.css +3 -3
- package/components/Timestamp/timestamp.scss +3 -3
- package/components/Toolbar/toolbar.css +78 -43
- package/components/Toolbar/toolbar.scss +50 -10
- package/components/Tooltip/themes/dark/tooltip.scss +1 -11
- package/components/Tooltip/tooltip.css +7 -12
- package/components/Tooltip/tooltip.scss +6 -3
- package/components/TreeView/tree-view.css +7 -15
- package/components/TreeView/tree-view.scss +7 -18
- package/components/Wizard/wizard.css +16 -1
- package/components/Wizard/wizard.scss +20 -2
- 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 +12 -12
- package/docs/components/AppLauncher/examples/application-launcher.md +51 -46
- 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 +20 -20
- 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 +139 -64
- package/docs/components/Check/examples/Check.md +15 -19
- package/docs/components/Chip/examples/Chip.md +70 -52
- package/docs/components/ChipGroup/examples/ChipGroup.md +452 -673
- 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 +54 -35
- package/docs/components/Content/examples/Content.md +37 -9
- package/docs/components/ContextSelector/examples/context-selector.css +5 -1
- package/docs/components/ContextSelector/examples/context-selector.md +86 -80
- package/docs/components/DataList/examples/DataList.md +187 -148
- 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 +10 -10
- 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 +123 -99
- package/docs/components/DualListSelector/examples/DualListSelector.md +201 -197
- package/docs/components/EmptyState/examples/EmptyState.md +130 -82
- 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 +12 -12
- 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 +29 -27
- package/docs/components/InputGroup/examples/InputGroup.md +10 -10
- package/docs/components/JumpLinks/examples/JumpLinks.md +35 -35
- package/docs/components/Label/examples/Label.md +1427 -746
- package/docs/components/LabelGroup/examples/LabelGroup.md +295 -242
- package/docs/components/List/examples/List.md +18 -18
- package/docs/components/LogViewer/examples/LogViewer.md +79 -73
- package/docs/components/Login/examples/Login.md +32 -32
- package/docs/components/Masthead/examples/masthead.md +9 -9
- package/docs/components/Menu/examples/Menu.md +82 -80
- package/docs/components/MenuToggle/examples/MenuToggle.md +28 -28
- package/docs/components/ModalBox/examples/ModalBox.md +106 -85
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +25 -25
- package/docs/components/Nav/examples/Navigation.md +69 -69
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +8 -8
- package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +44 -44
- 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 +201 -144
- package/docs/components/Progress/examples/Progress.md +31 -60
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +45 -38
- 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 +367 -313
- package/docs/components/Sidebar/examples/Sidebar.md +70 -14
- package/docs/components/SimpleList/examples/SimpleList.md +15 -15
- 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.css +4 -0
- package/docs/components/Table/examples/Table.md +3163 -1712
- package/docs/components/Tabs/examples/Tabs.md +149 -149
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +362 -280
- 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 +466 -373
- 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 +119 -127
- package/docs/demos/AboutModal/examples/AboutModal.md +4 -4
- package/docs/demos/Alert/examples/Alert.md +13 -13
- package/docs/demos/BackToTop/examples/BackToTop.md +4 -4
- package/docs/demos/Banner/examples/Banner.md +8 -9
- package/docs/demos/Card/examples/Card.md +219 -156
- package/docs/demos/CardView/examples/CardView.md +56 -29
- package/docs/demos/ContextSelector/examples/ContextSelector.md +18 -18
- package/docs/demos/Dashboard/examples/Dashboard.md +51 -35
- package/docs/demos/DataList/examples/DataList.md +158 -109
- package/docs/demos/DescriptionList/examples/DescriptionList.md +33 -22
- package/docs/demos/Drawer/examples/Drawer.md +24 -22
- package/docs/demos/Form/examples/BasicForms.md +28 -22
- package/docs/demos/HelperText/examples/HelperText.md +8 -9
- package/docs/demos/JumpLinks/examples/JumpLinks.md +28 -28
- package/docs/demos/Masthead/examples/Masthead.md +29 -32
- package/docs/demos/Modal/examples/Modal.md +54 -66
- package/docs/demos/Nav/examples/Nav.md +47 -47
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +40 -28
- package/docs/demos/Page/examples/Page.md +37 -37
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +32 -33
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +74 -64
- package/docs/demos/Skeleton/examples/Skeleton.md +4 -4
- package/docs/demos/Table/examples/Table.md +2454 -467
- package/docs/demos/Tabs/examples/Tabs.md +141 -90
- package/docs/demos/Toolbar/examples/Toolbar.md +1808 -174
- package/docs/demos/Wizard/examples/Wizard.md +289 -266
- 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} +2 -1
- package/layouts/Gallery/gallery.css +1 -1
- package/layouts/Gallery/gallery.scss +1 -1
- package/layouts/Grid/grid.css +7 -7
- package/layouts/Grid/grid.scss +2 -2
- package/package.json +59 -65
- package/patternfly-base-no-reset.css +23 -47
- package/patternfly-base.css +23 -47
- package/patternfly-no-reset.css +781 -656
- package/patternfly.css +781 -656
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/functions.scss +8 -24
- package/sass-utilities/mixins.scss +15 -39
- package/sass-utilities/scss-variables.scss +1 -1
- package/sass-utilities/themes/dark/scss-variables.scss +1 -1
- package/utilities/Spacing/spacing.scss +2 -2
- package/base/_shield-inheritable.scss +0 -69
- package/base/_shield-noninheritable.scss +0 -13
- package/base/patternfly-shield-inheritable.css +0 -66
- package/base/patternfly-shield-inheritable.scss +0 -4
- package/base/patternfly-shield-noninheritable.css +0 -9
- package/base/patternfly-shield-noninheritable.scss +0 -4
|
@@ -235,19 +235,19 @@ The single select should be used when the user is selecting an option from a lis
|
|
|
235
235
|
|
|
236
236
|
### Usage
|
|
237
237
|
|
|
238
|
-
| Class
|
|
239
|
-
|
|
|
240
|
-
| `.pf-c-select`
|
|
241
|
-
| `.pf-c-select__toggle`
|
|
242
|
-
| `.pf-c-select__toggle-wrapper` | `<div>`
|
|
243
|
-
| `.pf-c-select__toggle-arrow`
|
|
244
|
-
| `.pf-c-select__menu`
|
|
245
|
-
| `.pf-c-select__menu-item`
|
|
246
|
-
| `.pf-c-select__menu-item-icon` | `<i>`
|
|
247
|
-
| `.pf-m-top`
|
|
248
|
-
| `.pf-m-align-right`
|
|
249
|
-
| `.pf-m-static`
|
|
250
|
-
| `.pf-m-active`
|
|
238
|
+
| Class | Applied to | Outcome |
|
|
239
|
+
| -- | -- | -- |
|
|
240
|
+
| `.pf-c-select` | `<div>` | Initiates a custom select. |
|
|
241
|
+
| `.pf-c-select__toggle` | `<button>` | Initiates a custom toggle. |
|
|
242
|
+
| `.pf-c-select__toggle-wrapper` | `<div>` | Initiates a custom select toggle wrapper. |
|
|
243
|
+
| `.pf-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
|
|
244
|
+
| `.pf-c-select__menu` | `<ul>` | Initiates the custom select dropdown menu. |
|
|
245
|
+
| `.pf-c-select__menu-item` | `<li>` | Initiates the items in the custom select dropdown menu. |
|
|
246
|
+
| `.pf-c-select__menu-item-icon` | `<i>` | Initiates the selected item icon. |
|
|
247
|
+
| `.pf-m-top` | `.pf-c-select` | Modifies the select menu to display above the toggle. |
|
|
248
|
+
| `.pf-m-align-right` | `.pf-c-select__menu` | Modifies the select menu to display right aligned to the toggle. |
|
|
249
|
+
| `.pf-m-static` | `.pf-c-select__menu` | Modifies the select menu to be statically positioned to support custom positioning. |
|
|
250
|
+
| `.pf-m-active` | `.pf-c-select` | Forces display of the active state of the toggle. |
|
|
251
251
|
|
|
252
252
|
## States
|
|
253
253
|
|
|
@@ -492,29 +492,29 @@ The single select should be used when the user is selecting an option from a lis
|
|
|
492
492
|
|
|
493
493
|
### Accessibility
|
|
494
494
|
|
|
495
|
-
| Attribute
|
|
496
|
-
|
|
|
497
|
-
| `aria-invalid="true"`
|
|
498
|
-
| `aria-selected="true"` | `.pf-c-select__menu-item` | Should be set programmatically to indicate the active item.
|
|
499
|
-
| `disabled`
|
|
495
|
+
| Attribute | Applied to | Outcome |
|
|
496
|
+
| -- | -- | -- |
|
|
497
|
+
| `aria-invalid="true"` | `.pf-c-select__toggle` | Indicates that the select is in the invalid state. |
|
|
498
|
+
| `aria-selected="true"` | `.pf-c-select__menu-item` | Should be set programmatically to indicate the active item. |
|
|
499
|
+
| `disabled` | `.pf-c-select__toggle` | Disables the dropdown toggle and removes it from keyboard focus. |
|
|
500
500
|
|
|
501
501
|
### Usage
|
|
502
502
|
|
|
503
|
-
| Class
|
|
504
|
-
|
|
|
505
|
-
| `.pf-c-select`
|
|
506
|
-
| `.pf-c-select__toggle`
|
|
507
|
-
| `.pf-c-select__toggle-wrapper` | `<div>`
|
|
508
|
-
| `.pf-c-select__toggle-arrow`
|
|
509
|
-
| `.pf-c-select__menu`
|
|
510
|
-
| `.pf-c-select__menu-item`
|
|
511
|
-
| `.pf-c-select__menu-item-icon` | `<span>`
|
|
512
|
-
| `.pf-m-expanded`
|
|
513
|
-
| `.pf-m-success`
|
|
514
|
-
| `.pf-m-warning`
|
|
515
|
-
| `.pf-m-invalid`
|
|
516
|
-
| `.pf-m-selected`
|
|
517
|
-
| `.pf-m-disabled`
|
|
503
|
+
| Class | Applied to | Outcome |
|
|
504
|
+
| -- | -- | -- |
|
|
505
|
+
| `.pf-c-select` | `<div>` | Initiates the select component. |
|
|
506
|
+
| `.pf-c-select__toggle` | `<button>` | Initiates the select toggle. |
|
|
507
|
+
| `.pf-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper. |
|
|
508
|
+
| `.pf-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
|
|
509
|
+
| `.pf-c-select__menu` | `<ul>` | Initiates the select dropdown menu. |
|
|
510
|
+
| `.pf-c-select__menu-item` | `<li>` | Initiates the items in the select dropdown menu. |
|
|
511
|
+
| `.pf-c-select__menu-item-icon` | `<span>` | Initiates the selected item icon wrapper. |
|
|
512
|
+
| `.pf-m-expanded` | `.pf-c-select` | Indicates the select is expanded. |
|
|
513
|
+
| `.pf-m-success` | `.pf-c-select` | Modifies select component for the success state. |
|
|
514
|
+
| `.pf-m-warning` | `.pf-c-select` | Modifies select component for the warning state. |
|
|
515
|
+
| `.pf-m-invalid` | `.pf-c-select` | Modifies select component for the invalid state. |
|
|
516
|
+
| `.pf-m-selected` | `.pf-c-select__menu-item` | Indicates the menu item is selected. |
|
|
517
|
+
| `.pf-m-disabled` | `div.pf-c-select__toggle` | Modifies to display the select toggle as disabled. This applies to `div.pf-c-select__toggle` and should not be used in lieu of the `disabled` attribute on `button.pf-c-select__toggle`. When this is used, `disabled` should also be added to any form elements in `div.pf-c-select__toggle`|
|
|
518
518
|
|
|
519
519
|
## Typeahead
|
|
520
520
|
|
|
@@ -902,26 +902,26 @@ The single select typeahead should be used when the user is selecting one option
|
|
|
902
902
|
|
|
903
903
|
### Accessibility
|
|
904
904
|
|
|
905
|
-
| Attribute
|
|
906
|
-
|
|
|
905
|
+
| Attribute | Applied to | Outcome |
|
|
906
|
+
| -- | -- | -- |
|
|
907
907
|
| `aria-selected="true"` | `.pf-c-select__menu-item` | Should be set programmatically to indicate the active item. |
|
|
908
908
|
|
|
909
909
|
### Usage
|
|
910
910
|
|
|
911
|
-
| Class
|
|
912
|
-
|
|
|
913
|
-
| `.pf-c-select`
|
|
914
|
-
| `.pf-c-select__toggle`
|
|
915
|
-
| `.pf-c-select__toggle-wrapper`
|
|
916
|
-
| `.pf-c-select__toggle-typeahead` | `input.pf-c-form-control`
|
|
917
|
-
| `.pf-c-select__toggle-clear`
|
|
918
|
-
| `.pf-c-select__toggle-button`
|
|
919
|
-
| `.pf-c-select__toggle-arrow`
|
|
920
|
-
| `.pf-c-select__menu`
|
|
921
|
-
| `.pf-c-select__menu-item`
|
|
922
|
-
| `.pf-m-expanded`
|
|
923
|
-
| `.pf-m-typeahead`
|
|
924
|
-
| `.pf-m-focus`
|
|
911
|
+
| Class | Applied to | Outcome |
|
|
912
|
+
| -- | -- | -- |
|
|
913
|
+
| `.pf-c-select` | `<div>` | Initiates the select component. |
|
|
914
|
+
| `.pf-c-select__toggle` | `<div>` | Initiates the select toggle. |
|
|
915
|
+
| `.pf-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper. |
|
|
916
|
+
| `.pf-c-select__toggle-typeahead` | `input.pf-c-form-control` | Initiates the input field for typeahead. |
|
|
917
|
+
| `.pf-c-select__toggle-clear` | `button.pf-c-button.pf-m-plain` | Initiates a clear button in the toggle. |
|
|
918
|
+
| `.pf-c-select__toggle-button` | `button.pf-c-button.pf-m-plain` | Initiates a toggle button. |
|
|
919
|
+
| `.pf-c-select__toggle-arrow` | `<span>` | Initiates the caret icon. |
|
|
920
|
+
| `.pf-c-select__menu` | `<ul>` | Initiates the select dropdown menu. |
|
|
921
|
+
| `.pf-c-select__menu-item` | `<li>` | Initiates the items in the select dropdown menu. |
|
|
922
|
+
| `.pf-m-expanded` | `.pf-c-select` | Indicates the select is expanded. |
|
|
923
|
+
| `.pf-m-typeahead` | `.pf-c-select__toggle` | Indicates the select has a typeahead. |
|
|
924
|
+
| `.pf-m-focus` | `.pf-c-select__menu-item` | Modifies the menu item to apply `:focus` styling. For use when navigating the menu items by keyboard when the typeahead input field has browser focus. |
|
|
925
925
|
|
|
926
926
|
## Typeahead multiselect
|
|
927
927
|
|
|
@@ -1003,87 +1003,107 @@ The single select typeahead should be used when the user is selecting one option
|
|
|
1003
1003
|
>
|
|
1004
1004
|
<li class="pf-c-chip-group__list-item">
|
|
1005
1005
|
<div class="pf-c-chip">
|
|
1006
|
-
<span
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1006
|
+
<span class="pf-c-chip__content">
|
|
1007
|
+
<span
|
|
1008
|
+
class="pf-c-chip__text"
|
|
1009
|
+
id="select-multi-typeahead-expanded-chip_one"
|
|
1010
|
+
>Arkansas</span>
|
|
1011
|
+
</span>
|
|
1012
|
+
<span class="pf-c-chip__actions">
|
|
1013
|
+
<button
|
|
1014
|
+
class="pf-c-button pf-m-plain"
|
|
1015
|
+
type="button"
|
|
1016
|
+
aria-labelledby="remove_select-multi-typeahead-expanded_chip_one select-multi-typeahead-expanded-chip_two"
|
|
1017
|
+
aria-label="Remove"
|
|
1018
|
+
id="remove_select-multi-typeahead-expanded_chip_one"
|
|
1019
|
+
>
|
|
1020
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1021
|
+
</button>
|
|
1022
|
+
</span>
|
|
1019
1023
|
</div>
|
|
1020
1024
|
</li>
|
|
1021
1025
|
<li class="pf-c-chip-group__list-item">
|
|
1022
1026
|
<div class="pf-c-chip">
|
|
1023
|
-
<span
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1027
|
+
<span class="pf-c-chip__content">
|
|
1028
|
+
<span
|
|
1029
|
+
class="pf-c-chip__text"
|
|
1030
|
+
id="select-multi-typeahead-expanded-chip_two"
|
|
1031
|
+
>Massachusetts</span>
|
|
1032
|
+
</span>
|
|
1033
|
+
<span class="pf-c-chip__actions">
|
|
1034
|
+
<button
|
|
1035
|
+
class="pf-c-button pf-m-plain"
|
|
1036
|
+
type="button"
|
|
1037
|
+
aria-labelledby="remove_select-multi-typeahead-expanded_chip_two select-multi-typeahead-expanded-chip_two"
|
|
1038
|
+
aria-label="Remove"
|
|
1039
|
+
id="remove_select-multi-typeahead-expanded_chip_two"
|
|
1040
|
+
>
|
|
1041
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1042
|
+
</button>
|
|
1043
|
+
</span>
|
|
1036
1044
|
</div>
|
|
1037
1045
|
</li>
|
|
1038
1046
|
<li class="pf-c-chip-group__list-item">
|
|
1039
1047
|
<div class="pf-c-chip">
|
|
1040
|
-
<span
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1048
|
+
<span class="pf-c-chip__content">
|
|
1049
|
+
<span
|
|
1050
|
+
class="pf-c-chip__text"
|
|
1051
|
+
id="select-multi-typeahead-expanded-chip_three"
|
|
1052
|
+
>New Mexico</span>
|
|
1053
|
+
</span>
|
|
1054
|
+
<span class="pf-c-chip__actions">
|
|
1055
|
+
<button
|
|
1056
|
+
class="pf-c-button pf-m-plain"
|
|
1057
|
+
type="button"
|
|
1058
|
+
aria-labelledby="remove_select-multi-typeahead-expanded_chip_three select-multi-typeahead-expanded-chip_three"
|
|
1059
|
+
aria-label="Remove"
|
|
1060
|
+
id="remove_select-multi-typeahead-expanded_chip_three"
|
|
1061
|
+
>
|
|
1062
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1063
|
+
</button>
|
|
1064
|
+
</span>
|
|
1053
1065
|
</div>
|
|
1054
1066
|
</li>
|
|
1055
1067
|
<li class="pf-c-chip-group__list-item">
|
|
1056
1068
|
<div class="pf-c-chip">
|
|
1057
|
-
<span
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1069
|
+
<span class="pf-c-chip__content">
|
|
1070
|
+
<span
|
|
1071
|
+
class="pf-c-chip__text"
|
|
1072
|
+
id="select-multi-typeahead-expanded-chip_four"
|
|
1073
|
+
>Ohio</span>
|
|
1074
|
+
</span>
|
|
1075
|
+
<span class="pf-c-chip__actions">
|
|
1076
|
+
<button
|
|
1077
|
+
class="pf-c-button pf-m-plain"
|
|
1078
|
+
type="button"
|
|
1079
|
+
aria-labelledby="remove_select-multi-typeahead-expanded_chip_four select-multi-typeahead-expanded-chip_four"
|
|
1080
|
+
aria-label="Remove"
|
|
1081
|
+
id="remove_select-multi-typeahead-expanded_chip_four"
|
|
1082
|
+
>
|
|
1083
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1084
|
+
</button>
|
|
1085
|
+
</span>
|
|
1070
1086
|
</div>
|
|
1071
1087
|
</li>
|
|
1072
1088
|
<li class="pf-c-chip-group__list-item">
|
|
1073
1089
|
<div class="pf-c-chip">
|
|
1074
|
-
<span
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1090
|
+
<span class="pf-c-chip__content">
|
|
1091
|
+
<span
|
|
1092
|
+
class="pf-c-chip__text"
|
|
1093
|
+
id="select-multi-typeahead-expanded-chip_five"
|
|
1094
|
+
>Washington</span>
|
|
1095
|
+
</span>
|
|
1096
|
+
<span class="pf-c-chip__actions">
|
|
1097
|
+
<button
|
|
1098
|
+
class="pf-c-button pf-m-plain"
|
|
1099
|
+
type="button"
|
|
1100
|
+
aria-labelledby="remove_select-multi-typeahead-expanded_chip_five select-multi-typeahead-expanded-chip_five"
|
|
1101
|
+
aria-label="Remove"
|
|
1102
|
+
id="remove_select-multi-typeahead-expanded_chip_five"
|
|
1103
|
+
>
|
|
1104
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1105
|
+
</button>
|
|
1106
|
+
</span>
|
|
1087
1107
|
</div>
|
|
1088
1108
|
</li>
|
|
1089
1109
|
</ul>
|
|
@@ -1165,58 +1185,72 @@ The single select typeahead should be used when the user is selecting one option
|
|
|
1165
1185
|
>
|
|
1166
1186
|
<li class="pf-c-chip-group__list-item">
|
|
1167
1187
|
<div class="pf-c-chip">
|
|
1168
|
-
<span
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1188
|
+
<span class="pf-c-chip__content">
|
|
1189
|
+
<span
|
|
1190
|
+
class="pf-c-chip__text"
|
|
1191
|
+
id="select-multi-typeahead-expanded-selected-chip_one"
|
|
1192
|
+
>Arkansas</span>
|
|
1193
|
+
</span>
|
|
1194
|
+
<span class="pf-c-chip__actions">
|
|
1195
|
+
<button
|
|
1196
|
+
class="pf-c-button pf-m-plain"
|
|
1197
|
+
type="button"
|
|
1198
|
+
aria-labelledby="remove_select-multi-typeahead-expanded-selected_chip_one select-multi-typeahead-expanded-selected-chip_one"
|
|
1199
|
+
aria-label="Remove"
|
|
1200
|
+
id="remove_select-multi-typeahead-expanded-selected_chip_one"
|
|
1201
|
+
>
|
|
1202
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1203
|
+
</button>
|
|
1204
|
+
</span>
|
|
1181
1205
|
</div>
|
|
1182
1206
|
</li>
|
|
1183
1207
|
<li class="pf-c-chip-group__list-item">
|
|
1184
1208
|
<div class="pf-c-chip">
|
|
1185
|
-
<span
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1209
|
+
<span class="pf-c-chip__content">
|
|
1210
|
+
<span
|
|
1211
|
+
class="pf-c-chip__text"
|
|
1212
|
+
id="select-multi-typeahead-expanded-selected-chip_two"
|
|
1213
|
+
>Massachusetts</span>
|
|
1214
|
+
</span>
|
|
1215
|
+
<span class="pf-c-chip__actions">
|
|
1216
|
+
<button
|
|
1217
|
+
class="pf-c-button pf-m-plain"
|
|
1218
|
+
type="button"
|
|
1219
|
+
aria-labelledby="remove_select-multi-typeahead-expanded-selected_chip_two select-multi-typeahead-expanded-selected-chip_two"
|
|
1220
|
+
aria-label="Remove"
|
|
1221
|
+
id="remove_select-multi-typeahead-expanded-selected_chip_two"
|
|
1222
|
+
>
|
|
1223
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1224
|
+
</button>
|
|
1225
|
+
</span>
|
|
1198
1226
|
</div>
|
|
1199
1227
|
</li>
|
|
1200
1228
|
<li class="pf-c-chip-group__list-item">
|
|
1201
1229
|
<div class="pf-c-chip">
|
|
1202
|
-
<span
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1230
|
+
<span class="pf-c-chip__content">
|
|
1231
|
+
<span
|
|
1232
|
+
class="pf-c-chip__text"
|
|
1233
|
+
id="select-multi-typeahead-expanded-selected-chip_three"
|
|
1234
|
+
>New Mexico</span>
|
|
1235
|
+
</span>
|
|
1236
|
+
<span class="pf-c-chip__actions">
|
|
1237
|
+
<button
|
|
1238
|
+
class="pf-c-button pf-m-plain"
|
|
1239
|
+
type="button"
|
|
1240
|
+
aria-labelledby="remove_select-multi-typeahead-expanded-selected_chip_three select-multi-typeahead-expanded-selected-chip_three"
|
|
1241
|
+
aria-label="Remove"
|
|
1242
|
+
id="remove_select-multi-typeahead-expanded-selected_chip_three"
|
|
1243
|
+
>
|
|
1244
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1245
|
+
</button>
|
|
1246
|
+
</span>
|
|
1215
1247
|
</div>
|
|
1216
1248
|
</li>
|
|
1217
1249
|
<li class="pf-c-chip-group__list-item">
|
|
1218
1250
|
<button class="pf-c-chip pf-m-overflow">
|
|
1219
|
-
<span class="pf-c-
|
|
1251
|
+
<span class="pf-c-chip__content">
|
|
1252
|
+
<span class="pf-c-chip__text">2 more</span>
|
|
1253
|
+
</span>
|
|
1220
1254
|
</button>
|
|
1221
1255
|
</li>
|
|
1222
1256
|
</ul>
|
|
@@ -1289,87 +1323,107 @@ The single select typeahead should be used when the user is selecting one option
|
|
|
1289
1323
|
>
|
|
1290
1324
|
<li class="pf-c-chip-group__list-item">
|
|
1291
1325
|
<div class="pf-c-chip">
|
|
1292
|
-
<span
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1326
|
+
<span class="pf-c-chip__content">
|
|
1327
|
+
<span
|
|
1328
|
+
class="pf-c-chip__text"
|
|
1329
|
+
id="select-multi-typeahead-invalid-chip_one"
|
|
1330
|
+
>Arkansas</span>
|
|
1331
|
+
</span>
|
|
1332
|
+
<span class="pf-c-chip__actions">
|
|
1333
|
+
<button
|
|
1334
|
+
class="pf-c-button pf-m-plain"
|
|
1335
|
+
type="button"
|
|
1336
|
+
aria-labelledby="remove_select-multi-typeahead-invalid_chip_one select-multi-typeahead-invalid-chip_two"
|
|
1337
|
+
aria-label="Remove"
|
|
1338
|
+
id="remove_select-multi-typeahead-invalid_chip_one"
|
|
1339
|
+
>
|
|
1340
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1341
|
+
</button>
|
|
1342
|
+
</span>
|
|
1305
1343
|
</div>
|
|
1306
1344
|
</li>
|
|
1307
1345
|
<li class="pf-c-chip-group__list-item">
|
|
1308
1346
|
<div class="pf-c-chip">
|
|
1309
|
-
<span
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1347
|
+
<span class="pf-c-chip__content">
|
|
1348
|
+
<span
|
|
1349
|
+
class="pf-c-chip__text"
|
|
1350
|
+
id="select-multi-typeahead-invalid-chip_two"
|
|
1351
|
+
>Massachusetts</span>
|
|
1352
|
+
</span>
|
|
1353
|
+
<span class="pf-c-chip__actions">
|
|
1354
|
+
<button
|
|
1355
|
+
class="pf-c-button pf-m-plain"
|
|
1356
|
+
type="button"
|
|
1357
|
+
aria-labelledby="remove_select-multi-typeahead-invalid_chip_two select-multi-typeahead-invalid-chip_two"
|
|
1358
|
+
aria-label="Remove"
|
|
1359
|
+
id="remove_select-multi-typeahead-invalid_chip_two"
|
|
1360
|
+
>
|
|
1361
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1362
|
+
</button>
|
|
1363
|
+
</span>
|
|
1322
1364
|
</div>
|
|
1323
1365
|
</li>
|
|
1324
1366
|
<li class="pf-c-chip-group__list-item">
|
|
1325
1367
|
<div class="pf-c-chip">
|
|
1326
|
-
<span
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1368
|
+
<span class="pf-c-chip__content">
|
|
1369
|
+
<span
|
|
1370
|
+
class="pf-c-chip__text"
|
|
1371
|
+
id="select-multi-typeahead-invalid-chip_three"
|
|
1372
|
+
>New Mexico</span>
|
|
1373
|
+
</span>
|
|
1374
|
+
<span class="pf-c-chip__actions">
|
|
1375
|
+
<button
|
|
1376
|
+
class="pf-c-button pf-m-plain"
|
|
1377
|
+
type="button"
|
|
1378
|
+
aria-labelledby="remove_select-multi-typeahead-invalid_chip_three select-multi-typeahead-invalid-chip_three"
|
|
1379
|
+
aria-label="Remove"
|
|
1380
|
+
id="remove_select-multi-typeahead-invalid_chip_three"
|
|
1381
|
+
>
|
|
1382
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1383
|
+
</button>
|
|
1384
|
+
</span>
|
|
1339
1385
|
</div>
|
|
1340
1386
|
</li>
|
|
1341
1387
|
<li class="pf-c-chip-group__list-item">
|
|
1342
1388
|
<div class="pf-c-chip">
|
|
1343
|
-
<span
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1389
|
+
<span class="pf-c-chip__content">
|
|
1390
|
+
<span
|
|
1391
|
+
class="pf-c-chip__text"
|
|
1392
|
+
id="select-multi-typeahead-invalid-chip_four"
|
|
1393
|
+
>Ohio</span>
|
|
1394
|
+
</span>
|
|
1395
|
+
<span class="pf-c-chip__actions">
|
|
1396
|
+
<button
|
|
1397
|
+
class="pf-c-button pf-m-plain"
|
|
1398
|
+
type="button"
|
|
1399
|
+
aria-labelledby="remove_select-multi-typeahead-invalid_chip_four select-multi-typeahead-invalid-chip_four"
|
|
1400
|
+
aria-label="Remove"
|
|
1401
|
+
id="remove_select-multi-typeahead-invalid_chip_four"
|
|
1402
|
+
>
|
|
1403
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1404
|
+
</button>
|
|
1405
|
+
</span>
|
|
1356
1406
|
</div>
|
|
1357
1407
|
</li>
|
|
1358
1408
|
<li class="pf-c-chip-group__list-item">
|
|
1359
1409
|
<div class="pf-c-chip">
|
|
1360
|
-
<span
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1410
|
+
<span class="pf-c-chip__content">
|
|
1411
|
+
<span
|
|
1412
|
+
class="pf-c-chip__text"
|
|
1413
|
+
id="select-multi-typeahead-invalid-chip_five"
|
|
1414
|
+
>Washington</span>
|
|
1415
|
+
</span>
|
|
1416
|
+
<span class="pf-c-chip__actions">
|
|
1417
|
+
<button
|
|
1418
|
+
class="pf-c-button pf-m-plain"
|
|
1419
|
+
type="button"
|
|
1420
|
+
aria-labelledby="remove_select-multi-typeahead-invalid_chip_five select-multi-typeahead-invalid-chip_five"
|
|
1421
|
+
aria-label="Remove"
|
|
1422
|
+
id="remove_select-multi-typeahead-invalid_chip_five"
|
|
1423
|
+
>
|
|
1424
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1425
|
+
</button>
|
|
1426
|
+
</span>
|
|
1373
1427
|
</div>
|
|
1374
1428
|
</li>
|
|
1375
1429
|
</ul>
|
|
@@ -1443,26 +1497,26 @@ The multiselect should be used when the user is selecting multiple items from a
|
|
|
1443
1497
|
|
|
1444
1498
|
### Accessibility
|
|
1445
1499
|
|
|
1446
|
-
| Attribute
|
|
1447
|
-
|
|
|
1500
|
+
| Attribute | Applied to | Outcome |
|
|
1501
|
+
| -- | -- | -- |
|
|
1448
1502
|
| `aria-selected="true"` | `.pf-c-select__menu-item` | Should be set programmatically to indicate the active item. |
|
|
1449
1503
|
|
|
1450
1504
|
### Usage
|
|
1451
1505
|
|
|
1452
|
-
| Class
|
|
1453
|
-
|
|
|
1454
|
-
| `.pf-c-select`
|
|
1455
|
-
| `.pf-c-select__toggle`
|
|
1456
|
-
| `.pf-c-select__toggle-wrapper`
|
|
1457
|
-
| `.pf-c-chip`
|
|
1458
|
-
| `.pf-c-select__toggle-typeahead` | `input.pf-c-form-control` |
|
|
1459
|
-
| `.pf-c-select__toggle-clear`
|
|
1460
|
-
| `.pf-c-select__toggle-button`
|
|
1461
|
-
| `.pf-c-select__toggle-arrow`
|
|
1462
|
-
| `.pf-c-select__menu`
|
|
1463
|
-
| `.pf-c-select__menu-item`
|
|
1464
|
-
| `.pf-m-expanded`
|
|
1465
|
-
| `.pf-m-typeahead`
|
|
1506
|
+
| Class | Applied to | Outcome |
|
|
1507
|
+
| -- | -- | -- |
|
|
1508
|
+
| `.pf-c-select` | `<div>` | Initiates the select component. |
|
|
1509
|
+
| `.pf-c-select__toggle` | `<div>` | Initiates the select toggle. |
|
|
1510
|
+
| `.pf-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper so that chips and input field can wrap together. |
|
|
1511
|
+
| `.pf-c-chip` | `<div>` | Initiates a chip. (See [chip component](/components/chip) for more details) |
|
|
1512
|
+
| `.pf-c-select__toggle-typeahead` | `input.pf-c-form-control` | Initiates the input field for typeahead. |
|
|
1513
|
+
| `.pf-c-select__toggle-clear` | `button.pf-m-plain` | Initiates a clear button in the toggle. |
|
|
1514
|
+
| `.pf-c-select__toggle-button` | `<button>` | Initiates a toggle button. |
|
|
1515
|
+
| `.pf-c-select__toggle-arrow` | `<span>` | Initiates the caret icon. |
|
|
1516
|
+
| `.pf-c-select__menu` | `<ul>` | Initiates the select dropdown menu. |
|
|
1517
|
+
| `.pf-c-select__menu-item` | `<li>` | Initiates the items in the select dropdown menu. |
|
|
1518
|
+
| `.pf-m-expanded` | `.pf-c-select` | Indicates the select is expanded. |
|
|
1519
|
+
| `.pf-m-typeahead` | `.pf-c-select__toggle` | Indicates the select has a typeahead. |
|
|
1466
1520
|
|
|
1467
1521
|
## Checkbox
|
|
1468
1522
|
|
|
@@ -2229,27 +2283,27 @@ The checkbox select can select multiple items using checkboxes. The number of it
|
|
|
2229
2283
|
|
|
2230
2284
|
### Usage
|
|
2231
2285
|
|
|
2232
|
-
| Class
|
|
2233
|
-
|
|
|
2234
|
-
| `.pf-c-select`
|
|
2235
|
-
| `.pf-c-select__toggle`
|
|
2236
|
-
| `.pf-c-select__toggle-wrapper`
|
|
2237
|
-
| `.pf-c-chip`
|
|
2238
|
-
| `.pf-c-select__toggle-typeahead` | `input.pf-c-form-control` |
|
|
2239
|
-
| `.pf-c-select__toggle-badge`
|
|
2240
|
-
| `.pf-c-select__toggle-clear`
|
|
2241
|
-
| `.pf-c-select__toggle-arrow`
|
|
2242
|
-
| `.pf-c-select__menu`
|
|
2243
|
-
| `.pf-c-select__menu-item`
|
|
2244
|
-
| `.pf-c-select__menu-item-row`
|
|
2245
|
-
| `.pf-c-select__menu-item-text`
|
|
2246
|
-
| `.pf-c-select__menu-item-count`
|
|
2247
|
-
| `.pf-c-select__menu-fieldset`
|
|
2248
|
-
| `.pf-c-select__menu-group`
|
|
2249
|
-
| `.pf-c-select__menu-group-title` | `<div>`
|
|
2250
|
-
| `.pf-c-select__menu-search`
|
|
2251
|
-
| `.pf-m-expanded`
|
|
2252
|
-
| `.pf-m-typeahead`
|
|
2286
|
+
| Class | Applied to | Outcome |
|
|
2287
|
+
| -- | -- | -- |
|
|
2288
|
+
| `.pf-c-select` | `<div>` | Initiates the select component. |
|
|
2289
|
+
| `.pf-c-select__toggle` | `<button>` | Initiates the select toggle. |
|
|
2290
|
+
| `.pf-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper so that chips and input field can wrap together. |
|
|
2291
|
+
| `.pf-c-chip` | `<div>` | Initiates a chip. (See [chip component](/components/chip) for more details) |
|
|
2292
|
+
| `.pf-c-select__toggle-typeahead` | `input.pf-c-form-control` | Initiates the input field for typeahead. |
|
|
2293
|
+
| `.pf-c-select__toggle-badge` | `<div>` | Initiates a container for a badge to indicate the number of items checked. \* note: This should contain an unread badge \* |
|
|
2294
|
+
| `.pf-c-select__toggle-clear` | `button.pf-m-plain` | Initiates a clear button in the toggle. |
|
|
2295
|
+
| `.pf-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
|
|
2296
|
+
| `.pf-c-select__menu` | `<div>` | Initiates the select dropdown menu. |
|
|
2297
|
+
| `.pf-c-select__menu-item` | `div.pf-c-check` | Initiates the items in the select dropdown menu. |
|
|
2298
|
+
| `.pf-c-select__menu-item-row` | `<span>` | Initiates a menu item row for use with positioning other elements before/after the item text. |
|
|
2299
|
+
| `.pf-c-select__menu-item-text` | `<span>` | Initiates the menu item row text. |
|
|
2300
|
+
| `.pf-c-select__menu-item-count` | `<span>` | Initiates the menu item row count. |
|
|
2301
|
+
| `.pf-c-select__menu-fieldset` | `<fieldset>` | Initiates a fieldset for the items in a checkbox select. |
|
|
2302
|
+
| `.pf-c-select__menu-group` | `<div>` | Initiates a group within a select menu. |
|
|
2303
|
+
| `.pf-c-select__menu-group-title` | `<div>` | Initiates a title for a group with a select menu. |
|
|
2304
|
+
| `.pf-c-select__menu-search` | `<div>` | Initiates a container for the search input group. |
|
|
2305
|
+
| `.pf-m-expanded` | `.pf-c-select` | Indicates the select is expanded. |
|
|
2306
|
+
| `.pf-m-typeahead` | `.pf-c-select__toggle` | Indicates the select has a typeahead. |
|
|
2253
2307
|
|
|
2254
2308
|
## Plain
|
|
2255
2309
|
|
|
@@ -2370,18 +2424,18 @@ The plain select variation should be used when you do not want a border applied
|
|
|
2370
2424
|
|
|
2371
2425
|
### Usage
|
|
2372
2426
|
|
|
2373
|
-
| Class
|
|
2374
|
-
|
|
|
2375
|
-
| `.pf-c-select`
|
|
2376
|
-
| `.pf-c-select__toggle`
|
|
2377
|
-
| `.pf-c-select__toggle-wrapper` | `<div>`
|
|
2378
|
-
| `.pf-c-select__toggle-arrow`
|
|
2379
|
-
| `.pf-c-select__menu`
|
|
2380
|
-
| `.pf-c-select__menu-item`
|
|
2381
|
-
| `.pf-c-select__menu-item-icon` | `<i>`
|
|
2382
|
-
| `.pf-m-expanded`
|
|
2383
|
-
| `.pf-m-plain`
|
|
2384
|
-
| `.pf-m-selected`
|
|
2427
|
+
| Class | Applied to | Outcome |
|
|
2428
|
+
| -- | -- | -- |
|
|
2429
|
+
| `.pf-c-select` | `<div>` | Initiates the select component. |
|
|
2430
|
+
| `.pf-c-select__toggle` | `<button>` | Initiates the select toggle. |
|
|
2431
|
+
| `.pf-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper. |
|
|
2432
|
+
| `.pf-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
|
|
2433
|
+
| `.pf-c-select__menu` | `<ul>` | Initiates the select dropdown menu. |
|
|
2434
|
+
| `.pf-c-select__menu-item` | `<li>` | Initiates the items in the select dropdown menu. |
|
|
2435
|
+
| `.pf-c-select__menu-item-icon` | `<i>` | Initiates the selected item icon. |
|
|
2436
|
+
| `.pf-m-expanded` | `.pf-c-select` | Indicates the select is expanded. |
|
|
2437
|
+
| `.pf-m-plain` | `.pf-c-select__toggle` | Modifies to display the toggle with no border. |
|
|
2438
|
+
| `.pf-m-selected` | `.pf-c-select__menu-item` | Indicates the menu item is selected. |
|
|
2385
2439
|
|
|
2386
2440
|
## Icon
|
|
2387
2441
|
|
|
@@ -2447,19 +2501,19 @@ The plain select variation should be used when you do not want a border applied
|
|
|
2447
2501
|
|
|
2448
2502
|
### Accessibility
|
|
2449
2503
|
|
|
2450
|
-
| Attribute
|
|
2451
|
-
|
|
|
2452
|
-
| `aria-hidden="true"` | `.pf-c-select__toggle-icon` | Hides the icon from assistive technologies.
|
|
2504
|
+
| Attribute | Applied to | Outcome |
|
|
2505
|
+
| -- | -- | -- |
|
|
2506
|
+
| `aria-hidden="true"` | `.pf-c-select__toggle-icon` | Hides the icon from assistive technologies.
|
|
2453
2507
|
|
|
2454
2508
|
### Usage
|
|
2455
2509
|
|
|
2456
|
-
| Class
|
|
2457
|
-
|
|
|
2458
|
-
| `.pf-c-select`
|
|
2459
|
-
| `.pf-c-select__toggle`
|
|
2460
|
-
| `.pf-c-select__toggle-wrapper` | `<div>`
|
|
2461
|
-
| `.pf-c-select__toggle-icon`
|
|
2462
|
-
| `.pf-c-select__toggle-arrow`
|
|
2510
|
+
| Class | Applied to | Outcome |
|
|
2511
|
+
| -- | -- | -- |
|
|
2512
|
+
| `.pf-c-select` | `<div>` | Initiates the select component. |
|
|
2513
|
+
| `.pf-c-select__toggle` | `<button>` | Initiates the select toggle. |
|
|
2514
|
+
| `.pf-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper. |
|
|
2515
|
+
| `.pf-c-select__toggle-icon` | `<span>` | Initiates the icon in the dropdown toggle. |
|
|
2516
|
+
| `.pf-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
|
|
2463
2517
|
|
|
2464
2518
|
## Panel
|
|
2465
2519
|
|
|
@@ -2495,13 +2549,13 @@ The plain select variation should be used when you do not want a border applied
|
|
|
2495
2549
|
|
|
2496
2550
|
### Usage
|
|
2497
2551
|
|
|
2498
|
-
| Class
|
|
2499
|
-
|
|
|
2500
|
-
| `.pf-c-select`
|
|
2501
|
-
| `.pf-c-select__toggle`
|
|
2502
|
-
| `.pf-c-select__toggle-wrapper` | `<div>`
|
|
2503
|
-
| `.pf-c-select__toggle-arrow`
|
|
2504
|
-
| `.pf-c-select__menu`
|
|
2552
|
+
| Class | Applied to | Outcome |
|
|
2553
|
+
| -- | -- | -- |
|
|
2554
|
+
| `.pf-c-select` | `<div>` | Initiates the select component. |
|
|
2555
|
+
| `.pf-c-select__toggle` | `<button>` | Initiates the select toggle. |
|
|
2556
|
+
| `.pf-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper. |
|
|
2557
|
+
| `.pf-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
|
|
2558
|
+
| `.pf-c-select__menu` | `<div>` | Initiates the select dropdown menu. |
|
|
2505
2559
|
|
|
2506
2560
|
## Description
|
|
2507
2561
|
|
|
@@ -2707,11 +2761,11 @@ The plain select variation should be used when you do not want a border applied
|
|
|
2707
2761
|
|
|
2708
2762
|
### Usage
|
|
2709
2763
|
|
|
2710
|
-
| Class
|
|
2711
|
-
|
|
|
2712
|
-
| `.pf-c-select__menu-item-description` | `<span>`
|
|
2713
|
-
| `.pf-c-select__menu-item-main`
|
|
2714
|
-
| `.pf-m-description`
|
|
2764
|
+
| Class | Applied to | Outcome |
|
|
2765
|
+
| -- | -- | -- |
|
|
2766
|
+
| `.pf-c-select__menu-item-description` | `<span>` | Initiates the select menu item description element. |
|
|
2767
|
+
| `.pf-c-select__menu-item-main` | `<span>` | Initiates the select menu item main element. Used when the description element is present. |
|
|
2768
|
+
| `.pf-m-description` | `.pf-c-select__menu-item` | Modifies the select menu item when selected to accommodate the description element. |
|
|
2715
2769
|
|
|
2716
2770
|
## Favorites
|
|
2717
2771
|
|
|
@@ -2914,20 +2968,20 @@ The plain select variation should be used when you do not want a border applied
|
|
|
2914
2968
|
|
|
2915
2969
|
### Accessibility
|
|
2916
2970
|
|
|
2917
|
-
| Attribute
|
|
2918
|
-
|
|
|
2919
|
-
| `aria-label="Not starred"` | `.pf-c-select__menu-wrapper > .pf-c-select__menu-item.pf-m-action`
|
|
2920
|
-
| `aria-label="Starred"`
|
|
2971
|
+
| Attribute | Applied to | Outcome |
|
|
2972
|
+
| -- | -- | -- |
|
|
2973
|
+
| `aria-label="Not starred"` | `.pf-c-select__menu-wrapper > .pf-c-select__menu-item.pf-m-action` | Provides an accessible label indicating that the favorite action is not selected. |
|
|
2974
|
+
| `aria-label="Starred"` | `.pf-c-select__menu-wrapper.pf-m-favorite > .pf-c-select__menu-item.pf-m-action` | Provides an accessible label indicating that the favorite action is selected. |
|
|
2921
2975
|
|
|
2922
2976
|
### Usage
|
|
2923
2977
|
|
|
2924
|
-
| Class
|
|
2925
|
-
|
|
|
2926
|
-
| `.pf-c-select__menu-wrapper` | `<li>`
|
|
2927
|
-
| `.pf-m-favorite`
|
|
2928
|
-
| `.pf-m-favorite-action`
|
|
2929
|
-
| `.pf-m-link`
|
|
2930
|
-
| `.pf-m-action`
|
|
2978
|
+
| Class | Applied to | Outcome |
|
|
2979
|
+
| -- | -- | -- |
|
|
2980
|
+
| `.pf-c-select__menu-wrapper` | `<li>` | Defines a menu wrapper for use with multiple actionable items in a single item row. |
|
|
2981
|
+
| `.pf-m-favorite` | `.pf-c-select__menu-wrapper` | Modifies wrapper to indicate that the item row has been favorited. |
|
|
2982
|
+
| `.pf-m-favorite-action` | `.pf-c-select__menu-item` | Modifies an item for favorite styles. |
|
|
2983
|
+
| `.pf-m-link` | `.pf-c-select__menu-item.pf-m-wrapper > .pf-c-select__menu-item` | Modifies item for link styles. |
|
|
2984
|
+
| `.pf-m-action` | `.pf-c-select__menu-item.pf-m-wrapper > .pf-c-select__menu-item` | Modifies item to for action styles. |
|
|
2931
2985
|
|
|
2932
2986
|
## View more
|
|
2933
2987
|
|
|
@@ -2992,8 +3046,8 @@ The plain select variation should be used when you do not want a border applied
|
|
|
2992
3046
|
|
|
2993
3047
|
### Usage
|
|
2994
3048
|
|
|
2995
|
-
| Class
|
|
2996
|
-
|
|
|
3049
|
+
| Class | Applied to | Outcome |
|
|
3050
|
+
| -- | -- | -- |
|
|
2997
3051
|
| `.pf-m-load` | `.pf-c-select__menu-item` | Modifies a menu item for load styles. |
|
|
2998
3052
|
|
|
2999
3053
|
## Loading
|
|
@@ -3067,10 +3121,10 @@ The plain select variation should be used when you do not want a border applied
|
|
|
3067
3121
|
|
|
3068
3122
|
### Usage
|
|
3069
3123
|
|
|
3070
|
-
| Class
|
|
3071
|
-
|
|
|
3072
|
-
| `.pf-c-select__list-item` | `<li>`
|
|
3073
|
-
| `.pf-m-loading`
|
|
3124
|
+
| Class | Applied to | Outcome |
|
|
3125
|
+
| -- | -- | -- |
|
|
3126
|
+
| `.pf-c-select__list-item` | `<li>` | Defines a list item element in the select menu. |
|
|
3127
|
+
| `.pf-m-loading` | `.pf-c-select__list-item` | Modifies a list item for loading styles. |
|
|
3074
3128
|
|
|
3075
3129
|
## Footer
|
|
3076
3130
|
|
|
@@ -3137,10 +3191,10 @@ The plain select variation should be used when you do not want a border applied
|
|
|
3137
3191
|
|
|
3138
3192
|
### Usage
|
|
3139
3193
|
|
|
3140
|
-
| Class
|
|
3141
|
-
|
|
|
3142
|
-
| `.pf-c-select__menu-footer` | `<div>`
|
|
3143
|
-
| `.pf-c-select__menu-list`
|
|
3194
|
+
| Class | Applied to | Outcome |
|
|
3195
|
+
| -- | -- | -- |
|
|
3196
|
+
| `.pf-c-select__menu-footer` | `<div>` | Defines a menu footer. |
|
|
3197
|
+
| `.pf-c-select__menu-list` | `<ul>` | Defines the menu list when the list is placed in `div.pf-c-select__menu`. |
|
|
3144
3198
|
|
|
3145
3199
|
## Placeholder
|
|
3146
3200
|
|
|
@@ -3381,8 +3435,8 @@ The plain select variation should be used when you do not want a border applied
|
|
|
3381
3435
|
|
|
3382
3436
|
### Usage
|
|
3383
3437
|
|
|
3384
|
-
| Class
|
|
3385
|
-
|
|
|
3438
|
+
| Class | Applied to | Outcome |
|
|
3439
|
+
| -- | -- | -- |
|
|
3386
3440
|
| `.pf-m-placeholder` | `.pf-c-select__toggle` | Modifies the toggle for placeholder styles. |
|
|
3387
3441
|
|
|
3388
3442
|
## Documentation
|