@patternfly/patternfly 5.0.0-alpha.4 → 5.0.0-alpha.40
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 +18 -1
- package/assets/icons/iconUnicodes.json +1 -0
- package/assets/images/pfbg-icon.svg +1 -0
- package/assets/pficon/pficon.scss +7 -2
- 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/_fa-icons.scss +1 -2
- package/base/_fonts.scss +22 -27
- package/base/_globals.scss +92 -86
- package/base/_icons.scss +1 -28
- package/base/_svg-icons.scss +6 -0
- package/base/_variables.scss +4 -4
- package/base/patternfly-common.css +0 -10
- package/base/patternfly-fa-icons.css +1 -1
- package/base/patternfly-fonts.css +17 -17
- package/base/patternfly-globals.css +35 -41
- package/base/patternfly-icons.css +8 -22
- package/base/patternfly-pf-icons.css +6 -2
- package/base/patternfly-themes.css +0 -42
- package/base/patternfly-variables.css +3 -3
- package/base/themes/dark/_globals.scss +1 -1
- package/base/themes/dark/_variables.scss +1 -1
- package/components/AboutModalBox/about-modal-box.css +20 -50
- package/components/AboutModalBox/about-modal-box.scss +22 -14
- package/components/Accordion/accordion.css +2 -0
- package/components/Accordion/accordion.scss +2 -0
- package/components/Alert/alert.css +17 -8
- package/components/Alert/alert.scss +21 -7
- package/components/Alert/themes/dark/alert.scss +1 -1
- 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/BackgroundImage/background-image.css +8 -35
- package/components/BackgroundImage/background-image.scss +17 -43
- package/components/Banner/banner.css +14 -52
- 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 +115 -50
- package/components/Card/card.scss +164 -63
- 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 +13 -6
- package/components/ContextSelector/context-selector.scss +14 -7
- package/components/DataList/data-list-grid.css +7 -7
- package/components/DataList/data-list-grid.scss +1 -1
- package/components/DataList/data-list.css +46 -40
- package/components/DataList/data-list.scss +37 -28
- package/components/DatePicker/date-picker.css +0 -8
- package/components/DatePicker/date-picker.scss +0 -9
- 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 +26 -25
- package/components/Dropdown/dropdown.scss +17 -18
- 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 +14 -12
- package/components/Form/form.scss +9 -7
- package/components/FormControl/form-control.css +2 -5
- package/components/FormControl/themes/dark/form-control.scss +2 -6
- package/components/HelperText/helper-text.css +4 -0
- package/components/HelperText/helper-text.scss +5 -0
- package/components/Hint/hint.css +2 -2
- package/components/Hint/hint.scss +2 -2
- package/components/Icon/icon.css +3 -3
- package/components/Icon/icon.scss +3 -3
- package/components/InputGroup/input-group.css +61 -85
- package/components/InputGroup/input-group.scss +55 -61
- package/components/InputGroup/themes/dark/input-group.scss +11 -25
- package/components/Label/label.css +49 -36
- package/components/Label/label.scss +53 -38
- package/components/Label/themes/dark/label.scss +2 -2
- package/components/LabelGroup/label-group.css +26 -22
- package/components/LabelGroup/label-group.scss +31 -26
- package/components/LogViewer/log-viewer.css +0 -38
- package/components/Login/login.css +20 -60
- package/components/Login/login.scss +16 -18
- package/components/Login/themes/dark/login.scss +4 -0
- package/components/Masthead/masthead.css +4 -42
- 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 +12 -11
- package/components/ModalBox/modal-box.scss +14 -14
- 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 +8 -8
- package/components/NotificationDrawer/notification-drawer.scss +8 -8
- package/components/OptionsMenu/options-menu.css +8 -10
- package/components/OptionsMenu/options-menu.scss +9 -11
- package/components/Page/page.css +101 -122
- package/components/Page/page.scss +49 -21
- package/components/Pagination/pagination.css +2 -110
- package/components/Pagination/pagination.scss +0 -6
- package/components/Popover/popover.css +31 -37
- package/components/Popover/popover.scss +32 -37
- package/components/Popover/themes/dark/popover.scss +3 -9
- 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 +67 -65
- package/components/Table/table.scss +65 -62
- 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 -39
- package/components/Wizard/wizard.scss +20 -2
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +20 -14
- 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 +29 -29
- package/docs/components/AlertGroup/examples/AlertGroup.md +15 -15
- package/docs/components/AppLauncher/examples/application-launcher.md +52 -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 +13 -29
- 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 +301 -284
- package/docs/components/Card/examples/Card.md +676 -116
- package/docs/components/Check/examples/Check.md +16 -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 +87 -80
- package/docs/components/DataList/examples/DataList.md +239 -202
- package/docs/components/DatePicker/examples/DatePicker.md +139 -104
- 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 +125 -100
- 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 +146 -105
- package/docs/components/Form/examples/Form.md +152 -130
- package/docs/components/FormControl/examples/FormControl.md +21 -20
- package/docs/components/HelperText/examples/HelperText.md +24 -35
- package/docs/components/Hint/examples/Hint.md +7 -7
- package/docs/components/Icon/examples/Icon.md +11 -12
- package/docs/components/InlineEdit/examples/InlineEdit.md +29 -27
- package/docs/components/InputGroup/examples/InputGroup.md +229 -179
- 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 -74
- package/docs/components/Login/examples/Login.md +103 -181
- package/docs/components/Masthead/examples/masthead.md +9 -9
- package/docs/components/Menu/examples/Menu.md +83 -80
- package/docs/components/MenuToggle/examples/MenuToggle.md +29 -28
- package/docs/components/ModalBox/examples/ModalBox.md +113 -92
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +27 -26
- 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 +64 -64
- package/docs/components/NumberInput/examples/NumberInput.md +311 -239
- package/docs/components/OptionsMenu/examples/options-menu.md +28 -28
- package/docs/components/OverflowMenu/examples/overflow-menu.md +25 -25
- package/docs/components/Page/examples/Page.css +7 -1
- package/docs/components/Page/examples/Page.md +81 -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 +206 -149
- package/docs/components/Progress/examples/Progress.md +32 -61
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +45 -39
- package/docs/components/Radio/examples/Radio.md +12 -11
- package/docs/components/SearchInput/examples/SearchInput.md +185 -148
- package/docs/components/Select/examples/Select.md +368 -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 +84 -62
- 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 +5212 -5750
- package/docs/components/Tabs/examples/Tabs.md +155 -155
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +523 -406
- package/docs/components/Tile/examples/Tile.md +16 -17
- 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 +848 -726
- 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 -5
- package/docs/components/Wizard/examples/Wizard.md +119 -127
- package/docs/demos/AboutModal/examples/AboutModal.md +4 -5
- package/docs/demos/Alert/examples/Alert.md +118 -71
- 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 +216 -153
- package/docs/demos/CardView/examples/CardView.md +57 -30
- package/docs/demos/ContextSelector/examples/ContextSelector.md +18 -18
- package/docs/demos/Dashboard/examples/Dashboard.md +51 -33
- package/docs/demos/DataList/examples/DataList.md +312 -255
- 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 +220 -213
- package/docs/demos/HelperText/examples/HelperText.md +16 -14
- package/docs/demos/JumpLinks/examples/JumpLinks.md +28 -28
- package/docs/demos/Masthead/examples/Masthead.md +302 -284
- 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 +70 -58
- package/docs/demos/Page/examples/Page.md +982 -51
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +22 -18
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +121 -106
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +345 -311
- package/docs/demos/Skeleton/examples/Skeleton.md +4 -4
- package/docs/demos/Table/examples/Table.md +3323 -1288
- package/docs/demos/Tabs/examples/Tabs.md +141 -90
- package/docs/demos/Toolbar/examples/Toolbar.md +1994 -329
- 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 +5 -5
- package/docs/utilities/Alignment/examples/Alignment.md +7 -7
- package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +13 -13
- package/docs/utilities/BoxShadow/examples/box-shadow.md +23 -23
- package/docs/utilities/Display/examples/Display.md +12 -12
- package/docs/utilities/Flex/examples/Flex.md +35 -35
- package/docs/utilities/Float/examples/Float.md +5 -5
- package/docs/utilities/Sizing/examples/Sizing.md +51 -51
- package/docs/utilities/Spacing/examples/Spacing.md +35 -35
- package/docs/utilities/Text/examples/Text.md +31 -31
- 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-addons.css +48 -48
- package/{patternfly-base-no-reset.css → patternfly-base-no-globals.css} +28 -73
- package/{patternfly-base-no-reset.scss → patternfly-base-no-globals.scss} +1 -0
- package/patternfly-base.css +63 -114
- package/{patternfly-no-reset.css → patternfly-no-globals.css} +1179 -2293
- package/{patternfly-no-reset.scss → patternfly-no-globals.scss} +1 -0
- package/patternfly.css +1207 -2327
- 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/placeholders.scss +0 -23
- package/sass-utilities/scss-variables.scss +5 -6
- package/sass-utilities/themes/dark/placeholders.scss +0 -22
- package/sass-utilities/themes/dark/scss-variables.scss +1 -1
- package/utilities/Spacing/spacing.scss +2 -2
- package/utilities/Text/text.css +48 -48
- package/utilities/Text/text.scss +6 -6
- package/utilities/Text/themes/dark/text.scss +2 -2
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Black.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-BlackItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Bold.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-BoldItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Italic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Medium.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-MediumItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Regular.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Bold.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-BoldItalic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Italic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Medium.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-MediumItalic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Regular.woff +0 -0
- package/assets/fonts/webfonts/fa-solid-900.woff +0 -0
- package/assets/pficon/pficon.woff +0 -0
- 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
- package/sass-utilities/bs-variables.scss +0 -709
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Select
|
|
3
3
|
section: components
|
|
4
|
+
subsection: menus
|
|
4
5
|
cssPrefix: pf-c-select
|
|
5
6
|
---import './Select.css'
|
|
6
7
|
|
|
@@ -235,19 +236,19 @@ The single select should be used when the user is selecting an option from a lis
|
|
|
235
236
|
|
|
236
237
|
### Usage
|
|
237
238
|
|
|
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`
|
|
239
|
+
| Class | Applied to | Outcome |
|
|
240
|
+
| -- | -- | -- |
|
|
241
|
+
| `.pf-c-select` | `<div>` | Initiates a custom select. |
|
|
242
|
+
| `.pf-c-select__toggle` | `<button>` | Initiates a custom toggle. |
|
|
243
|
+
| `.pf-c-select__toggle-wrapper` | `<div>` | Initiates a custom select toggle wrapper. |
|
|
244
|
+
| `.pf-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
|
|
245
|
+
| `.pf-c-select__menu` | `<ul>` | Initiates the custom select dropdown menu. |
|
|
246
|
+
| `.pf-c-select__menu-item` | `<li>` | Initiates the items in the custom select dropdown menu. |
|
|
247
|
+
| `.pf-c-select__menu-item-icon` | `<i>` | Initiates the selected item icon. |
|
|
248
|
+
| `.pf-m-top` | `.pf-c-select` | Modifies the select menu to display above the toggle. |
|
|
249
|
+
| `.pf-m-align-right` | `.pf-c-select__menu` | Modifies the select menu to display right aligned to the toggle. |
|
|
250
|
+
| `.pf-m-static` | `.pf-c-select__menu` | Modifies the select menu to be statically positioned to support custom positioning. |
|
|
251
|
+
| `.pf-m-active` | `.pf-c-select` | Forces display of the active state of the toggle. |
|
|
251
252
|
|
|
252
253
|
## States
|
|
253
254
|
|
|
@@ -492,29 +493,29 @@ The single select should be used when the user is selecting an option from a lis
|
|
|
492
493
|
|
|
493
494
|
### Accessibility
|
|
494
495
|
|
|
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`
|
|
496
|
+
| Attribute | Applied to | Outcome |
|
|
497
|
+
| -- | -- | -- |
|
|
498
|
+
| `aria-invalid="true"` | `.pf-c-select__toggle` | Indicates that the select is in the invalid state. |
|
|
499
|
+
| `aria-selected="true"` | `.pf-c-select__menu-item` | Should be set programmatically to indicate the active item. |
|
|
500
|
+
| `disabled` | `.pf-c-select__toggle` | Disables the dropdown toggle and removes it from keyboard focus. |
|
|
500
501
|
|
|
501
502
|
### Usage
|
|
502
503
|
|
|
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`
|
|
504
|
+
| Class | Applied to | Outcome |
|
|
505
|
+
| -- | -- | -- |
|
|
506
|
+
| `.pf-c-select` | `<div>` | Initiates the select component. |
|
|
507
|
+
| `.pf-c-select__toggle` | `<button>` | Initiates the select toggle. |
|
|
508
|
+
| `.pf-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper. |
|
|
509
|
+
| `.pf-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
|
|
510
|
+
| `.pf-c-select__menu` | `<ul>` | Initiates the select dropdown menu. |
|
|
511
|
+
| `.pf-c-select__menu-item` | `<li>` | Initiates the items in the select dropdown menu. |
|
|
512
|
+
| `.pf-c-select__menu-item-icon` | `<span>` | Initiates the selected item icon wrapper. |
|
|
513
|
+
| `.pf-m-expanded` | `.pf-c-select` | Indicates the select is expanded. |
|
|
514
|
+
| `.pf-m-success` | `.pf-c-select` | Modifies select component for the success state. |
|
|
515
|
+
| `.pf-m-warning` | `.pf-c-select` | Modifies select component for the warning state. |
|
|
516
|
+
| `.pf-m-invalid` | `.pf-c-select` | Modifies select component for the invalid state. |
|
|
517
|
+
| `.pf-m-selected` | `.pf-c-select__menu-item` | Indicates the menu item is selected. |
|
|
518
|
+
| `.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
519
|
|
|
519
520
|
## Typeahead
|
|
520
521
|
|
|
@@ -902,26 +903,26 @@ The single select typeahead should be used when the user is selecting one option
|
|
|
902
903
|
|
|
903
904
|
### Accessibility
|
|
904
905
|
|
|
905
|
-
| Attribute
|
|
906
|
-
|
|
|
906
|
+
| Attribute | Applied to | Outcome |
|
|
907
|
+
| -- | -- | -- |
|
|
907
908
|
| `aria-selected="true"` | `.pf-c-select__menu-item` | Should be set programmatically to indicate the active item. |
|
|
908
909
|
|
|
909
910
|
### Usage
|
|
910
911
|
|
|
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`
|
|
912
|
+
| Class | Applied to | Outcome |
|
|
913
|
+
| -- | -- | -- |
|
|
914
|
+
| `.pf-c-select` | `<div>` | Initiates the select component. |
|
|
915
|
+
| `.pf-c-select__toggle` | `<div>` | Initiates the select toggle. |
|
|
916
|
+
| `.pf-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper. |
|
|
917
|
+
| `.pf-c-select__toggle-typeahead` | `input.pf-c-form-control` | Initiates the input field for typeahead. |
|
|
918
|
+
| `.pf-c-select__toggle-clear` | `button.pf-c-button.pf-m-plain` | Initiates a clear button in the toggle. |
|
|
919
|
+
| `.pf-c-select__toggle-button` | `button.pf-c-button.pf-m-plain` | Initiates a toggle button. |
|
|
920
|
+
| `.pf-c-select__toggle-arrow` | `<span>` | Initiates the caret icon. |
|
|
921
|
+
| `.pf-c-select__menu` | `<ul>` | Initiates the select dropdown menu. |
|
|
922
|
+
| `.pf-c-select__menu-item` | `<li>` | Initiates the items in the select dropdown menu. |
|
|
923
|
+
| `.pf-m-expanded` | `.pf-c-select` | Indicates the select is expanded. |
|
|
924
|
+
| `.pf-m-typeahead` | `.pf-c-select__toggle` | Indicates the select has a typeahead. |
|
|
925
|
+
| `.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
926
|
|
|
926
927
|
## Typeahead multiselect
|
|
927
928
|
|
|
@@ -1003,87 +1004,107 @@ The single select typeahead should be used when the user is selecting one option
|
|
|
1003
1004
|
>
|
|
1004
1005
|
<li class="pf-c-chip-group__list-item">
|
|
1005
1006
|
<div class="pf-c-chip">
|
|
1006
|
-
<span
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1007
|
+
<span class="pf-c-chip__content">
|
|
1008
|
+
<span
|
|
1009
|
+
class="pf-c-chip__text"
|
|
1010
|
+
id="select-multi-typeahead-expanded-chip_one"
|
|
1011
|
+
>Arkansas</span>
|
|
1012
|
+
</span>
|
|
1013
|
+
<span class="pf-c-chip__actions">
|
|
1014
|
+
<button
|
|
1015
|
+
class="pf-c-button pf-m-plain"
|
|
1016
|
+
type="button"
|
|
1017
|
+
aria-labelledby="remove_select-multi-typeahead-expanded_chip_one select-multi-typeahead-expanded-chip_two"
|
|
1018
|
+
aria-label="Remove"
|
|
1019
|
+
id="remove_select-multi-typeahead-expanded_chip_one"
|
|
1020
|
+
>
|
|
1021
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1022
|
+
</button>
|
|
1023
|
+
</span>
|
|
1019
1024
|
</div>
|
|
1020
1025
|
</li>
|
|
1021
1026
|
<li class="pf-c-chip-group__list-item">
|
|
1022
1027
|
<div class="pf-c-chip">
|
|
1023
|
-
<span
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1028
|
+
<span class="pf-c-chip__content">
|
|
1029
|
+
<span
|
|
1030
|
+
class="pf-c-chip__text"
|
|
1031
|
+
id="select-multi-typeahead-expanded-chip_two"
|
|
1032
|
+
>Massachusetts</span>
|
|
1033
|
+
</span>
|
|
1034
|
+
<span class="pf-c-chip__actions">
|
|
1035
|
+
<button
|
|
1036
|
+
class="pf-c-button pf-m-plain"
|
|
1037
|
+
type="button"
|
|
1038
|
+
aria-labelledby="remove_select-multi-typeahead-expanded_chip_two select-multi-typeahead-expanded-chip_two"
|
|
1039
|
+
aria-label="Remove"
|
|
1040
|
+
id="remove_select-multi-typeahead-expanded_chip_two"
|
|
1041
|
+
>
|
|
1042
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1043
|
+
</button>
|
|
1044
|
+
</span>
|
|
1036
1045
|
</div>
|
|
1037
1046
|
</li>
|
|
1038
1047
|
<li class="pf-c-chip-group__list-item">
|
|
1039
1048
|
<div class="pf-c-chip">
|
|
1040
|
-
<span
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1049
|
+
<span class="pf-c-chip__content">
|
|
1050
|
+
<span
|
|
1051
|
+
class="pf-c-chip__text"
|
|
1052
|
+
id="select-multi-typeahead-expanded-chip_three"
|
|
1053
|
+
>New Mexico</span>
|
|
1054
|
+
</span>
|
|
1055
|
+
<span class="pf-c-chip__actions">
|
|
1056
|
+
<button
|
|
1057
|
+
class="pf-c-button pf-m-plain"
|
|
1058
|
+
type="button"
|
|
1059
|
+
aria-labelledby="remove_select-multi-typeahead-expanded_chip_three select-multi-typeahead-expanded-chip_three"
|
|
1060
|
+
aria-label="Remove"
|
|
1061
|
+
id="remove_select-multi-typeahead-expanded_chip_three"
|
|
1062
|
+
>
|
|
1063
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1064
|
+
</button>
|
|
1065
|
+
</span>
|
|
1053
1066
|
</div>
|
|
1054
1067
|
</li>
|
|
1055
1068
|
<li class="pf-c-chip-group__list-item">
|
|
1056
1069
|
<div class="pf-c-chip">
|
|
1057
|
-
<span
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
+
<span class="pf-c-chip__content">
|
|
1071
|
+
<span
|
|
1072
|
+
class="pf-c-chip__text"
|
|
1073
|
+
id="select-multi-typeahead-expanded-chip_four"
|
|
1074
|
+
>Ohio</span>
|
|
1075
|
+
</span>
|
|
1076
|
+
<span class="pf-c-chip__actions">
|
|
1077
|
+
<button
|
|
1078
|
+
class="pf-c-button pf-m-plain"
|
|
1079
|
+
type="button"
|
|
1080
|
+
aria-labelledby="remove_select-multi-typeahead-expanded_chip_four select-multi-typeahead-expanded-chip_four"
|
|
1081
|
+
aria-label="Remove"
|
|
1082
|
+
id="remove_select-multi-typeahead-expanded_chip_four"
|
|
1083
|
+
>
|
|
1084
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1085
|
+
</button>
|
|
1086
|
+
</span>
|
|
1070
1087
|
</div>
|
|
1071
1088
|
</li>
|
|
1072
1089
|
<li class="pf-c-chip-group__list-item">
|
|
1073
1090
|
<div class="pf-c-chip">
|
|
1074
|
-
<span
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1091
|
+
<span class="pf-c-chip__content">
|
|
1092
|
+
<span
|
|
1093
|
+
class="pf-c-chip__text"
|
|
1094
|
+
id="select-multi-typeahead-expanded-chip_five"
|
|
1095
|
+
>Washington</span>
|
|
1096
|
+
</span>
|
|
1097
|
+
<span class="pf-c-chip__actions">
|
|
1098
|
+
<button
|
|
1099
|
+
class="pf-c-button pf-m-plain"
|
|
1100
|
+
type="button"
|
|
1101
|
+
aria-labelledby="remove_select-multi-typeahead-expanded_chip_five select-multi-typeahead-expanded-chip_five"
|
|
1102
|
+
aria-label="Remove"
|
|
1103
|
+
id="remove_select-multi-typeahead-expanded_chip_five"
|
|
1104
|
+
>
|
|
1105
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1106
|
+
</button>
|
|
1107
|
+
</span>
|
|
1087
1108
|
</div>
|
|
1088
1109
|
</li>
|
|
1089
1110
|
</ul>
|
|
@@ -1165,58 +1186,72 @@ The single select typeahead should be used when the user is selecting one option
|
|
|
1165
1186
|
>
|
|
1166
1187
|
<li class="pf-c-chip-group__list-item">
|
|
1167
1188
|
<div class="pf-c-chip">
|
|
1168
|
-
<span
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1189
|
+
<span class="pf-c-chip__content">
|
|
1190
|
+
<span
|
|
1191
|
+
class="pf-c-chip__text"
|
|
1192
|
+
id="select-multi-typeahead-expanded-selected-chip_one"
|
|
1193
|
+
>Arkansas</span>
|
|
1194
|
+
</span>
|
|
1195
|
+
<span class="pf-c-chip__actions">
|
|
1196
|
+
<button
|
|
1197
|
+
class="pf-c-button pf-m-plain"
|
|
1198
|
+
type="button"
|
|
1199
|
+
aria-labelledby="remove_select-multi-typeahead-expanded-selected_chip_one select-multi-typeahead-expanded-selected-chip_one"
|
|
1200
|
+
aria-label="Remove"
|
|
1201
|
+
id="remove_select-multi-typeahead-expanded-selected_chip_one"
|
|
1202
|
+
>
|
|
1203
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1204
|
+
</button>
|
|
1205
|
+
</span>
|
|
1181
1206
|
</div>
|
|
1182
1207
|
</li>
|
|
1183
1208
|
<li class="pf-c-chip-group__list-item">
|
|
1184
1209
|
<div class="pf-c-chip">
|
|
1185
|
-
<span
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1210
|
+
<span class="pf-c-chip__content">
|
|
1211
|
+
<span
|
|
1212
|
+
class="pf-c-chip__text"
|
|
1213
|
+
id="select-multi-typeahead-expanded-selected-chip_two"
|
|
1214
|
+
>Massachusetts</span>
|
|
1215
|
+
</span>
|
|
1216
|
+
<span class="pf-c-chip__actions">
|
|
1217
|
+
<button
|
|
1218
|
+
class="pf-c-button pf-m-plain"
|
|
1219
|
+
type="button"
|
|
1220
|
+
aria-labelledby="remove_select-multi-typeahead-expanded-selected_chip_two select-multi-typeahead-expanded-selected-chip_two"
|
|
1221
|
+
aria-label="Remove"
|
|
1222
|
+
id="remove_select-multi-typeahead-expanded-selected_chip_two"
|
|
1223
|
+
>
|
|
1224
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1225
|
+
</button>
|
|
1226
|
+
</span>
|
|
1198
1227
|
</div>
|
|
1199
1228
|
</li>
|
|
1200
1229
|
<li class="pf-c-chip-group__list-item">
|
|
1201
1230
|
<div class="pf-c-chip">
|
|
1202
|
-
<span
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1231
|
+
<span class="pf-c-chip__content">
|
|
1232
|
+
<span
|
|
1233
|
+
class="pf-c-chip__text"
|
|
1234
|
+
id="select-multi-typeahead-expanded-selected-chip_three"
|
|
1235
|
+
>New Mexico</span>
|
|
1236
|
+
</span>
|
|
1237
|
+
<span class="pf-c-chip__actions">
|
|
1238
|
+
<button
|
|
1239
|
+
class="pf-c-button pf-m-plain"
|
|
1240
|
+
type="button"
|
|
1241
|
+
aria-labelledby="remove_select-multi-typeahead-expanded-selected_chip_three select-multi-typeahead-expanded-selected-chip_three"
|
|
1242
|
+
aria-label="Remove"
|
|
1243
|
+
id="remove_select-multi-typeahead-expanded-selected_chip_three"
|
|
1244
|
+
>
|
|
1245
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1246
|
+
</button>
|
|
1247
|
+
</span>
|
|
1215
1248
|
</div>
|
|
1216
1249
|
</li>
|
|
1217
1250
|
<li class="pf-c-chip-group__list-item">
|
|
1218
1251
|
<button class="pf-c-chip pf-m-overflow">
|
|
1219
|
-
<span class="pf-c-
|
|
1252
|
+
<span class="pf-c-chip__content">
|
|
1253
|
+
<span class="pf-c-chip__text">2 more</span>
|
|
1254
|
+
</span>
|
|
1220
1255
|
</button>
|
|
1221
1256
|
</li>
|
|
1222
1257
|
</ul>
|
|
@@ -1289,87 +1324,107 @@ The single select typeahead should be used when the user is selecting one option
|
|
|
1289
1324
|
>
|
|
1290
1325
|
<li class="pf-c-chip-group__list-item">
|
|
1291
1326
|
<div class="pf-c-chip">
|
|
1292
|
-
<span
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1327
|
+
<span class="pf-c-chip__content">
|
|
1328
|
+
<span
|
|
1329
|
+
class="pf-c-chip__text"
|
|
1330
|
+
id="select-multi-typeahead-invalid-chip_one"
|
|
1331
|
+
>Arkansas</span>
|
|
1332
|
+
</span>
|
|
1333
|
+
<span class="pf-c-chip__actions">
|
|
1334
|
+
<button
|
|
1335
|
+
class="pf-c-button pf-m-plain"
|
|
1336
|
+
type="button"
|
|
1337
|
+
aria-labelledby="remove_select-multi-typeahead-invalid_chip_one select-multi-typeahead-invalid-chip_two"
|
|
1338
|
+
aria-label="Remove"
|
|
1339
|
+
id="remove_select-multi-typeahead-invalid_chip_one"
|
|
1340
|
+
>
|
|
1341
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1342
|
+
</button>
|
|
1343
|
+
</span>
|
|
1305
1344
|
</div>
|
|
1306
1345
|
</li>
|
|
1307
1346
|
<li class="pf-c-chip-group__list-item">
|
|
1308
1347
|
<div class="pf-c-chip">
|
|
1309
|
-
<span
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1348
|
+
<span class="pf-c-chip__content">
|
|
1349
|
+
<span
|
|
1350
|
+
class="pf-c-chip__text"
|
|
1351
|
+
id="select-multi-typeahead-invalid-chip_two"
|
|
1352
|
+
>Massachusetts</span>
|
|
1353
|
+
</span>
|
|
1354
|
+
<span class="pf-c-chip__actions">
|
|
1355
|
+
<button
|
|
1356
|
+
class="pf-c-button pf-m-plain"
|
|
1357
|
+
type="button"
|
|
1358
|
+
aria-labelledby="remove_select-multi-typeahead-invalid_chip_two select-multi-typeahead-invalid-chip_two"
|
|
1359
|
+
aria-label="Remove"
|
|
1360
|
+
id="remove_select-multi-typeahead-invalid_chip_two"
|
|
1361
|
+
>
|
|
1362
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1363
|
+
</button>
|
|
1364
|
+
</span>
|
|
1322
1365
|
</div>
|
|
1323
1366
|
</li>
|
|
1324
1367
|
<li class="pf-c-chip-group__list-item">
|
|
1325
1368
|
<div class="pf-c-chip">
|
|
1326
|
-
<span
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1369
|
+
<span class="pf-c-chip__content">
|
|
1370
|
+
<span
|
|
1371
|
+
class="pf-c-chip__text"
|
|
1372
|
+
id="select-multi-typeahead-invalid-chip_three"
|
|
1373
|
+
>New Mexico</span>
|
|
1374
|
+
</span>
|
|
1375
|
+
<span class="pf-c-chip__actions">
|
|
1376
|
+
<button
|
|
1377
|
+
class="pf-c-button pf-m-plain"
|
|
1378
|
+
type="button"
|
|
1379
|
+
aria-labelledby="remove_select-multi-typeahead-invalid_chip_three select-multi-typeahead-invalid-chip_three"
|
|
1380
|
+
aria-label="Remove"
|
|
1381
|
+
id="remove_select-multi-typeahead-invalid_chip_three"
|
|
1382
|
+
>
|
|
1383
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1384
|
+
</button>
|
|
1385
|
+
</span>
|
|
1339
1386
|
</div>
|
|
1340
1387
|
</li>
|
|
1341
1388
|
<li class="pf-c-chip-group__list-item">
|
|
1342
1389
|
<div class="pf-c-chip">
|
|
1343
|
-
<span
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1390
|
+
<span class="pf-c-chip__content">
|
|
1391
|
+
<span
|
|
1392
|
+
class="pf-c-chip__text"
|
|
1393
|
+
id="select-multi-typeahead-invalid-chip_four"
|
|
1394
|
+
>Ohio</span>
|
|
1395
|
+
</span>
|
|
1396
|
+
<span class="pf-c-chip__actions">
|
|
1397
|
+
<button
|
|
1398
|
+
class="pf-c-button pf-m-plain"
|
|
1399
|
+
type="button"
|
|
1400
|
+
aria-labelledby="remove_select-multi-typeahead-invalid_chip_four select-multi-typeahead-invalid-chip_four"
|
|
1401
|
+
aria-label="Remove"
|
|
1402
|
+
id="remove_select-multi-typeahead-invalid_chip_four"
|
|
1403
|
+
>
|
|
1404
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1405
|
+
</button>
|
|
1406
|
+
</span>
|
|
1356
1407
|
</div>
|
|
1357
1408
|
</li>
|
|
1358
1409
|
<li class="pf-c-chip-group__list-item">
|
|
1359
1410
|
<div class="pf-c-chip">
|
|
1360
|
-
<span
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1411
|
+
<span class="pf-c-chip__content">
|
|
1412
|
+
<span
|
|
1413
|
+
class="pf-c-chip__text"
|
|
1414
|
+
id="select-multi-typeahead-invalid-chip_five"
|
|
1415
|
+
>Washington</span>
|
|
1416
|
+
</span>
|
|
1417
|
+
<span class="pf-c-chip__actions">
|
|
1418
|
+
<button
|
|
1419
|
+
class="pf-c-button pf-m-plain"
|
|
1420
|
+
type="button"
|
|
1421
|
+
aria-labelledby="remove_select-multi-typeahead-invalid_chip_five select-multi-typeahead-invalid-chip_five"
|
|
1422
|
+
aria-label="Remove"
|
|
1423
|
+
id="remove_select-multi-typeahead-invalid_chip_five"
|
|
1424
|
+
>
|
|
1425
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
1426
|
+
</button>
|
|
1427
|
+
</span>
|
|
1373
1428
|
</div>
|
|
1374
1429
|
</li>
|
|
1375
1430
|
</ul>
|
|
@@ -1443,26 +1498,26 @@ The multiselect should be used when the user is selecting multiple items from a
|
|
|
1443
1498
|
|
|
1444
1499
|
### Accessibility
|
|
1445
1500
|
|
|
1446
|
-
| Attribute
|
|
1447
|
-
|
|
|
1501
|
+
| Attribute | Applied to | Outcome |
|
|
1502
|
+
| -- | -- | -- |
|
|
1448
1503
|
| `aria-selected="true"` | `.pf-c-select__menu-item` | Should be set programmatically to indicate the active item. |
|
|
1449
1504
|
|
|
1450
1505
|
### Usage
|
|
1451
1506
|
|
|
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`
|
|
1507
|
+
| Class | Applied to | Outcome |
|
|
1508
|
+
| -- | -- | -- |
|
|
1509
|
+
| `.pf-c-select` | `<div>` | Initiates the select component. |
|
|
1510
|
+
| `.pf-c-select__toggle` | `<div>` | Initiates the select toggle. |
|
|
1511
|
+
| `.pf-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper so that chips and input field can wrap together. |
|
|
1512
|
+
| `.pf-c-chip` | `<div>` | Initiates a chip. (See [chip component](/components/chip) for more details) |
|
|
1513
|
+
| `.pf-c-select__toggle-typeahead` | `input.pf-c-form-control` | Initiates the input field for typeahead. |
|
|
1514
|
+
| `.pf-c-select__toggle-clear` | `button.pf-m-plain` | Initiates a clear button in the toggle. |
|
|
1515
|
+
| `.pf-c-select__toggle-button` | `<button>` | Initiates a toggle button. |
|
|
1516
|
+
| `.pf-c-select__toggle-arrow` | `<span>` | Initiates the caret icon. |
|
|
1517
|
+
| `.pf-c-select__menu` | `<ul>` | Initiates the select dropdown menu. |
|
|
1518
|
+
| `.pf-c-select__menu-item` | `<li>` | Initiates the items in the select dropdown menu. |
|
|
1519
|
+
| `.pf-m-expanded` | `.pf-c-select` | Indicates the select is expanded. |
|
|
1520
|
+
| `.pf-m-typeahead` | `.pf-c-select__toggle` | Indicates the select has a typeahead. |
|
|
1466
1521
|
|
|
1467
1522
|
## Checkbox
|
|
1468
1523
|
|
|
@@ -2229,27 +2284,27 @@ The checkbox select can select multiple items using checkboxes. The number of it
|
|
|
2229
2284
|
|
|
2230
2285
|
### Usage
|
|
2231
2286
|
|
|
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`
|
|
2287
|
+
| Class | Applied to | Outcome |
|
|
2288
|
+
| -- | -- | -- |
|
|
2289
|
+
| `.pf-c-select` | `<div>` | Initiates the select component. |
|
|
2290
|
+
| `.pf-c-select__toggle` | `<button>` | Initiates the select toggle. |
|
|
2291
|
+
| `.pf-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper so that chips and input field can wrap together. |
|
|
2292
|
+
| `.pf-c-chip` | `<div>` | Initiates a chip. (See [chip component](/components/chip) for more details) |
|
|
2293
|
+
| `.pf-c-select__toggle-typeahead` | `input.pf-c-form-control` | Initiates the input field for typeahead. |
|
|
2294
|
+
| `.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 \* |
|
|
2295
|
+
| `.pf-c-select__toggle-clear` | `button.pf-m-plain` | Initiates a clear button in the toggle. |
|
|
2296
|
+
| `.pf-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
|
|
2297
|
+
| `.pf-c-select__menu` | `<div>` | Initiates the select dropdown menu. |
|
|
2298
|
+
| `.pf-c-select__menu-item` | `div.pf-c-check` | Initiates the items in the select dropdown menu. |
|
|
2299
|
+
| `.pf-c-select__menu-item-row` | `<span>` | Initiates a menu item row for use with positioning other elements before/after the item text. |
|
|
2300
|
+
| `.pf-c-select__menu-item-text` | `<span>` | Initiates the menu item row text. |
|
|
2301
|
+
| `.pf-c-select__menu-item-count` | `<span>` | Initiates the menu item row count. |
|
|
2302
|
+
| `.pf-c-select__menu-fieldset` | `<fieldset>` | Initiates a fieldset for the items in a checkbox select. |
|
|
2303
|
+
| `.pf-c-select__menu-group` | `<div>` | Initiates a group within a select menu. |
|
|
2304
|
+
| `.pf-c-select__menu-group-title` | `<div>` | Initiates a title for a group with a select menu. |
|
|
2305
|
+
| `.pf-c-select__menu-search` | `<div>` | Initiates a container for the search input group. |
|
|
2306
|
+
| `.pf-m-expanded` | `.pf-c-select` | Indicates the select is expanded. |
|
|
2307
|
+
| `.pf-m-typeahead` | `.pf-c-select__toggle` | Indicates the select has a typeahead. |
|
|
2253
2308
|
|
|
2254
2309
|
## Plain
|
|
2255
2310
|
|
|
@@ -2370,18 +2425,18 @@ The plain select variation should be used when you do not want a border applied
|
|
|
2370
2425
|
|
|
2371
2426
|
### Usage
|
|
2372
2427
|
|
|
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`
|
|
2428
|
+
| Class | Applied to | Outcome |
|
|
2429
|
+
| -- | -- | -- |
|
|
2430
|
+
| `.pf-c-select` | `<div>` | Initiates the select component. |
|
|
2431
|
+
| `.pf-c-select__toggle` | `<button>` | Initiates the select toggle. |
|
|
2432
|
+
| `.pf-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper. |
|
|
2433
|
+
| `.pf-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
|
|
2434
|
+
| `.pf-c-select__menu` | `<ul>` | Initiates the select dropdown menu. |
|
|
2435
|
+
| `.pf-c-select__menu-item` | `<li>` | Initiates the items in the select dropdown menu. |
|
|
2436
|
+
| `.pf-c-select__menu-item-icon` | `<i>` | Initiates the selected item icon. |
|
|
2437
|
+
| `.pf-m-expanded` | `.pf-c-select` | Indicates the select is expanded. |
|
|
2438
|
+
| `.pf-m-plain` | `.pf-c-select__toggle` | Modifies to display the toggle with no border. |
|
|
2439
|
+
| `.pf-m-selected` | `.pf-c-select__menu-item` | Indicates the menu item is selected. |
|
|
2385
2440
|
|
|
2386
2441
|
## Icon
|
|
2387
2442
|
|
|
@@ -2447,19 +2502,19 @@ The plain select variation should be used when you do not want a border applied
|
|
|
2447
2502
|
|
|
2448
2503
|
### Accessibility
|
|
2449
2504
|
|
|
2450
|
-
| Attribute
|
|
2451
|
-
|
|
|
2452
|
-
| `aria-hidden="true"` | `.pf-c-select__toggle-icon` | Hides the icon from assistive technologies.
|
|
2505
|
+
| Attribute | Applied to | Outcome |
|
|
2506
|
+
| -- | -- | -- |
|
|
2507
|
+
| `aria-hidden="true"` | `.pf-c-select__toggle-icon` | Hides the icon from assistive technologies.
|
|
2453
2508
|
|
|
2454
2509
|
### Usage
|
|
2455
2510
|
|
|
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`
|
|
2511
|
+
| Class | Applied to | Outcome |
|
|
2512
|
+
| -- | -- | -- |
|
|
2513
|
+
| `.pf-c-select` | `<div>` | Initiates the select component. |
|
|
2514
|
+
| `.pf-c-select__toggle` | `<button>` | Initiates the select toggle. |
|
|
2515
|
+
| `.pf-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper. |
|
|
2516
|
+
| `.pf-c-select__toggle-icon` | `<span>` | Initiates the icon in the dropdown toggle. |
|
|
2517
|
+
| `.pf-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
|
|
2463
2518
|
|
|
2464
2519
|
## Panel
|
|
2465
2520
|
|
|
@@ -2495,13 +2550,13 @@ The plain select variation should be used when you do not want a border applied
|
|
|
2495
2550
|
|
|
2496
2551
|
### Usage
|
|
2497
2552
|
|
|
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`
|
|
2553
|
+
| Class | Applied to | Outcome |
|
|
2554
|
+
| -- | -- | -- |
|
|
2555
|
+
| `.pf-c-select` | `<div>` | Initiates the select component. |
|
|
2556
|
+
| `.pf-c-select__toggle` | `<button>` | Initiates the select toggle. |
|
|
2557
|
+
| `.pf-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper. |
|
|
2558
|
+
| `.pf-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
|
|
2559
|
+
| `.pf-c-select__menu` | `<div>` | Initiates the select dropdown menu. |
|
|
2505
2560
|
|
|
2506
2561
|
## Description
|
|
2507
2562
|
|
|
@@ -2707,11 +2762,11 @@ The plain select variation should be used when you do not want a border applied
|
|
|
2707
2762
|
|
|
2708
2763
|
### Usage
|
|
2709
2764
|
|
|
2710
|
-
| Class
|
|
2711
|
-
|
|
|
2712
|
-
| `.pf-c-select__menu-item-description` | `<span>`
|
|
2713
|
-
| `.pf-c-select__menu-item-main`
|
|
2714
|
-
| `.pf-m-description`
|
|
2765
|
+
| Class | Applied to | Outcome |
|
|
2766
|
+
| -- | -- | -- |
|
|
2767
|
+
| `.pf-c-select__menu-item-description` | `<span>` | Initiates the select menu item description element. |
|
|
2768
|
+
| `.pf-c-select__menu-item-main` | `<span>` | Initiates the select menu item main element. Used when the description element is present. |
|
|
2769
|
+
| `.pf-m-description` | `.pf-c-select__menu-item` | Modifies the select menu item when selected to accommodate the description element. |
|
|
2715
2770
|
|
|
2716
2771
|
## Favorites
|
|
2717
2772
|
|
|
@@ -2914,20 +2969,20 @@ The plain select variation should be used when you do not want a border applied
|
|
|
2914
2969
|
|
|
2915
2970
|
### Accessibility
|
|
2916
2971
|
|
|
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"`
|
|
2972
|
+
| Attribute | Applied to | Outcome |
|
|
2973
|
+
| -- | -- | -- |
|
|
2974
|
+
| `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. |
|
|
2975
|
+
| `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
2976
|
|
|
2922
2977
|
### Usage
|
|
2923
2978
|
|
|
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`
|
|
2979
|
+
| Class | Applied to | Outcome |
|
|
2980
|
+
| -- | -- | -- |
|
|
2981
|
+
| `.pf-c-select__menu-wrapper` | `<li>` | Defines a menu wrapper for use with multiple actionable items in a single item row. |
|
|
2982
|
+
| `.pf-m-favorite` | `.pf-c-select__menu-wrapper` | Modifies wrapper to indicate that the item row has been favorited. |
|
|
2983
|
+
| `.pf-m-favorite-action` | `.pf-c-select__menu-item` | Modifies an item for favorite styles. |
|
|
2984
|
+
| `.pf-m-link` | `.pf-c-select__menu-item.pf-m-wrapper > .pf-c-select__menu-item` | Modifies item for link styles. |
|
|
2985
|
+
| `.pf-m-action` | `.pf-c-select__menu-item.pf-m-wrapper > .pf-c-select__menu-item` | Modifies item to for action styles. |
|
|
2931
2986
|
|
|
2932
2987
|
## View more
|
|
2933
2988
|
|
|
@@ -2992,8 +3047,8 @@ The plain select variation should be used when you do not want a border applied
|
|
|
2992
3047
|
|
|
2993
3048
|
### Usage
|
|
2994
3049
|
|
|
2995
|
-
| Class
|
|
2996
|
-
|
|
|
3050
|
+
| Class | Applied to | Outcome |
|
|
3051
|
+
| -- | -- | -- |
|
|
2997
3052
|
| `.pf-m-load` | `.pf-c-select__menu-item` | Modifies a menu item for load styles. |
|
|
2998
3053
|
|
|
2999
3054
|
## Loading
|
|
@@ -3067,10 +3122,10 @@ The plain select variation should be used when you do not want a border applied
|
|
|
3067
3122
|
|
|
3068
3123
|
### Usage
|
|
3069
3124
|
|
|
3070
|
-
| Class
|
|
3071
|
-
|
|
|
3072
|
-
| `.pf-c-select__list-item` | `<li>`
|
|
3073
|
-
| `.pf-m-loading`
|
|
3125
|
+
| Class | Applied to | Outcome |
|
|
3126
|
+
| -- | -- | -- |
|
|
3127
|
+
| `.pf-c-select__list-item` | `<li>` | Defines a list item element in the select menu. |
|
|
3128
|
+
| `.pf-m-loading` | `.pf-c-select__list-item` | Modifies a list item for loading styles. |
|
|
3074
3129
|
|
|
3075
3130
|
## Footer
|
|
3076
3131
|
|
|
@@ -3137,10 +3192,10 @@ The plain select variation should be used when you do not want a border applied
|
|
|
3137
3192
|
|
|
3138
3193
|
### Usage
|
|
3139
3194
|
|
|
3140
|
-
| Class
|
|
3141
|
-
|
|
|
3142
|
-
| `.pf-c-select__menu-footer` | `<div>`
|
|
3143
|
-
| `.pf-c-select__menu-list`
|
|
3195
|
+
| Class | Applied to | Outcome |
|
|
3196
|
+
| -- | -- | -- |
|
|
3197
|
+
| `.pf-c-select__menu-footer` | `<div>` | Defines a menu footer. |
|
|
3198
|
+
| `.pf-c-select__menu-list` | `<ul>` | Defines the menu list when the list is placed in `div.pf-c-select__menu`. |
|
|
3144
3199
|
|
|
3145
3200
|
## Placeholder
|
|
3146
3201
|
|
|
@@ -3381,8 +3436,8 @@ The plain select variation should be used when you do not want a border applied
|
|
|
3381
3436
|
|
|
3382
3437
|
### Usage
|
|
3383
3438
|
|
|
3384
|
-
| Class
|
|
3385
|
-
|
|
|
3439
|
+
| Class | Applied to | Outcome |
|
|
3440
|
+
| -- | -- | -- |
|
|
3386
3441
|
| `.pf-m-placeholder` | `.pf-c-select__toggle` | Modifies the toggle for placeholder styles. |
|
|
3387
3442
|
|
|
3388
3443
|
## Documentation
|