@patternfly/patternfly 5.0.0-alpha.2 → 5.0.0-alpha.20
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/README.md +1 -1
- package/RELEASE-NOTES.md +47 -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/_chart-globals.scss +0 -4
- package/base/_common.scss +0 -22
- package/base/patternfly-common.css +0 -10
- package/base/patternfly-icons.css +5 -1
- package/base/patternfly-pf-icons.css +5 -1
- package/components/Accordion/accordion.css +2 -0
- package/components/Accordion/accordion.scss +2 -0
- package/components/AppLauncher/app-launcher.css +2 -0
- package/components/AppLauncher/app-launcher.scss +2 -0
- package/components/Breadcrumb/breadcrumb.css +2 -0
- package/components/Breadcrumb/breadcrumb.scss +2 -0
- package/components/CalendarMonth/calendar-month.css +1 -1
- package/components/CalendarMonth/calendar-month.scss +1 -1
- package/components/Card/card.css +9 -12
- package/components/Card/card.scss +11 -17
- package/components/ChipGroup/chip-group.css +27 -17
- package/components/ChipGroup/chip-group.scss +36 -22
- package/components/Content/content.css +6 -0
- package/components/Content/content.scss +8 -0
- package/components/ContextSelector/context-selector.css +5 -1
- package/components/ContextSelector/context-selector.scss +6 -2
- package/components/DataList/data-list.css +2 -1
- package/components/DataList/data-list.scss +2 -1
- package/components/Drawer/drawer.css +13 -14
- package/components/Drawer/drawer.scss +0 -1
- package/components/Dropdown/dropdown.css +27 -10
- package/components/Dropdown/dropdown.scss +22 -0
- 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/FormControl/form-control.css +1 -1
- package/components/FormControl/themes/dark/form-control.scss +1 -1
- package/components/InputGroup/input-group.css +14 -0
- package/components/InputGroup/input-group.scss +9 -0
- package/components/InputGroup/themes/dark/input-group.scss +8 -0
- package/components/Label/label.css +2 -0
- package/components/Label/label.scss +2 -0
- package/components/LabelGroup/label-group.css +26 -22
- package/components/LabelGroup/label-group.scss +31 -26
- package/components/Login/login.css +1 -1
- package/components/Menu/menu.css +7 -0
- package/components/Menu/menu.scss +8 -0
- package/components/MenuToggle/menu-toggle.css +2 -0
- package/components/MenuToggle/menu-toggle.scss +2 -0
- package/components/ModalBox/modal-box.css +9 -8
- package/components/ModalBox/modal-box.scss +11 -11
- package/components/Page/page.css +60 -60
- package/components/Pagination/pagination.css +122 -2
- package/components/Pagination/pagination.scss +24 -1
- package/components/Popover/popover.css +2 -7
- package/components/Popover/themes/dark/popover.scss +2 -8
- package/components/Progress/progress.css +5 -2
- package/components/Progress/progress.scss +5 -2
- package/components/SearchInput/search-input.css +2 -0
- package/components/SearchInput/search-input.scss +2 -0
- package/components/Slider/slider.css +0 -7
- package/components/Slider/slider.scss +0 -9
- package/components/Table/table-grid.css +28 -28
- package/components/Table/table-tree-view.css +4 -4
- package/components/Tabs/tabs.css +0 -4
- package/components/Tabs/tabs.scss +0 -7
- package/components/TextInputGroup/text-input-group.css +4 -2
- package/components/TextInputGroup/text-input-group.scss +4 -3
- package/components/Toolbar/toolbar.css +65 -37
- package/components/Toolbar/toolbar.scss +37 -3
- 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 +2 -0
- package/components/Wizard/wizard.scss +2 -0
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +13 -13
- package/docs/components/Accordion/examples/Accordion.md +12 -12
- package/docs/components/ActionList/examples/ActionList.md +6 -6
- package/docs/components/Alert/examples/Alert.md +19 -19
- package/docs/components/AlertGroup/examples/AlertGroup.md +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 +61 -44
- package/docs/components/Check/examples/Check.md +15 -19
- package/docs/components/Chip/examples/Chip.md +13 -13
- package/docs/components/ChipGroup/examples/ChipGroup.md +15 -344
- 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 +311 -71
- 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 +24 -24
- package/docs/components/InputGroup/examples/InputGroup.md +10 -9
- package/docs/components/JumpLinks/examples/JumpLinks.md +35 -35
- package/docs/components/Label/examples/Label.md +31 -31
- package/docs/components/LabelGroup/examples/LabelGroup.md +24 -36
- package/docs/components/List/examples/List.md +18 -18
- package/docs/components/LogViewer/examples/LogViewer.md +69 -69
- 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 +129 -30
- package/docs/components/Panel/examples/Panel.md +10 -10
- package/docs/components/Popover/examples/Popover.md +34 -34
- package/docs/components/Progress/examples/Progress.md +31 -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 +143 -143
- package/docs/components/Sidebar/examples/Sidebar.md +14 -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 +30 -30
- package/docs/components/Spinner/examples/Spinner.md +24 -24
- package/docs/components/Switch/examples/Switch.md +19 -19
- package/docs/components/TabContent/examples/TabContent.md +13 -13
- package/docs/components/Table/examples/Table.md +1272 -855
- package/docs/components/Tabs/examples/Tabs.md +149 -149
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +19 -19
- package/docs/components/Tile/examples/Tile.md +15 -15
- package/docs/components/Timestamp/examples/Timestamp.md +5 -5
- package/docs/components/Title/examples/Title.md +17 -17
- package/docs/components/ToggleGroup/examples/toggle-group.md +13 -13
- package/docs/components/Toolbar/examples/Toolbar.md +165 -144
- 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 +63 -70
- 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 +10 -11
- package/docs/demos/Card/examples/Card.md +151 -116
- package/docs/demos/CardView/examples/CardView.md +16 -15
- package/docs/demos/ContextSelector/examples/ContextSelector.md +18 -18
- package/docs/demos/Dashboard/examples/Dashboard.md +10 -9
- package/docs/demos/DataList/examples/DataList.md +160 -111
- package/docs/demos/DescriptionList/examples/DescriptionList.md +12 -13
- package/docs/demos/Drawer/examples/Drawer.md +20 -20
- 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 +32 -35
- package/docs/demos/Modal/examples/Modal.md +54 -66
- package/docs/demos/Nav/examples/Nav.md +720 -767
- 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 +53 -49
- package/docs/demos/Skeleton/examples/Skeleton.md +4 -4
- package/docs/demos/Table/examples/Table.md +522 -378
- package/docs/demos/Tabs/examples/Tabs.md +120 -601
- package/docs/demos/Toolbar/examples/Toolbar.md +1781 -171
- package/docs/demos/Wizard/examples/Wizard.md +229 -225
- 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/Grid/grid.css +5 -5
- package/package.json +59 -64
- package/patternfly-base-no-reset.css +5 -11
- package/patternfly-base.css +5 -11
- package/patternfly-no-reset.css +524 -336
- package/patternfly.css +524 -336
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/scss-variables.scss +0 -1
|
@@ -10,28 +10,32 @@ Toolbar relies on groups (`.pf-c-toolbar__group`) and items (`.pf-c-toolbar__ite
|
|
|
10
10
|
|
|
11
11
|
### Default spacing for items and groups:
|
|
12
12
|
|
|
13
|
-
| Class
|
|
14
|
-
|
|
|
15
|
-
| `.pf-c-toolbar__item`
|
|
16
|
-
| `.pf-c-toolbar__group` | `--pf-c-toolbar__group--spacer` | `16px`
|
|
13
|
+
| Class | CSS Variable | Computed Value |
|
|
14
|
+
| -- | -- | -- |
|
|
15
|
+
| `.pf-c-toolbar__item` | `--pf-c-toolbar__item--spacer` | `16px` |
|
|
16
|
+
| `.pf-c-toolbar__group` | `--pf-c-toolbar__group--spacer` | `16px` |
|
|
17
17
|
|
|
18
18
|
### Toolbar item types
|
|
19
19
|
|
|
20
|
-
| Class
|
|
21
|
-
|
|
|
22
|
-
| `.pf-m-bulk-select`
|
|
23
|
-
| `.pf-m-overflow-menu` | `.pf-c-toolbar__item` | Initiates overflow menu spacing. Spacer value is set to `var(--pf-c-toolbar--m-overflow-menu--spacer)`.
|
|
24
|
-
| `.pf-m-pagination`
|
|
25
|
-
| `.pf-m-search-filter` | `.pf-c-toolbar__item` | Initiates search filter spacing. Spacer value is set to `var(--pf-c-toolbar--m-search-filter--spacer)`.
|
|
20
|
+
| Class | Applied to | Outcome |
|
|
21
|
+
| -- | -- | -- |
|
|
22
|
+
| `.pf-m-bulk-select` | `.pf-c-toolbar__item` | Initiates bulk select spacing. Spacer value is set to `var(--pf-c-toolbar--m-bulk-select--spacer)`. |
|
|
23
|
+
| `.pf-m-overflow-menu` | `.pf-c-toolbar__item` | Initiates overflow menu spacing. Spacer value is set to `var(--pf-c-toolbar--m-overflow-menu--spacer)`. |
|
|
24
|
+
| `.pf-m-pagination` | `.pf-c-toolbar__item` | Initiates pagination spacing and margin. Spacer value is set to `var(--pf-c-toolbar--m-pagination--spacer)`. |
|
|
25
|
+
| `.pf-m-search-filter` | `.pf-c-toolbar__item` | Initiates search filter spacing. Spacer value is set to `var(--pf-c-toolbar--m-search-filter--spacer)`. |
|
|
26
26
|
|
|
27
27
|
### Modifiers
|
|
28
28
|
|
|
29
|
-
| Class
|
|
30
|
-
|
|
|
31
|
-
| `.pf-m-hidden{-on-[breakpoint]}`
|
|
32
|
-
| `.pf-m-visible{-on-[breakpoint]}`
|
|
29
|
+
| Class | Applied to | Outcome |
|
|
30
|
+
| -- | -- | -- |
|
|
31
|
+
| `.pf-m-hidden{-on-[breakpoint]}` | `.pf-c-toolbar > *` | Modifies toolbar element to be hidden, at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
32
|
+
| `.pf-m-visible{-on-[breakpoint]}` | `.pf-c-toolbar > *` | Modifies toolbar element to be shown, at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
33
33
|
| `.pf-m-align-right{-on-[breakpoint]}` | `.pf-c-toolbar > *` | Modifies toolbar element to align right, at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
34
|
-
| `.pf-m-align-left{-on-[breakpoint]}`
|
|
34
|
+
| `.pf-m-align-left{-on-[breakpoint]}` | `.pf-c-toolbar > *` | Modifies toolbar element to align left, at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
35
|
+
| `.pf-m-align-items-center` | `.pf-c-toolbar__content-section`, `.pf-c-toolbar__group` | Modifies toolbar element to vertically align children to center. |
|
|
36
|
+
| `.pf-m-align-items-baseline` | `.pf-c-toolbar__group` | Modifies toolbar group to vertically align children to baseline. |
|
|
37
|
+
| `.pf-m-align-self-center` | `.pf-c-toolbar__group`, `.pf-c-toolbar__item` | Modifies toolbar element to vertically align self to center. |
|
|
38
|
+
| `.pf-m-align-self-baseline` | `.pf-c-toolbar__group`, `.pf-c-toolbar__item` | Modifies toolbar element to vertically align self to baseline. |
|
|
35
39
|
|
|
36
40
|
### Special notes
|
|
37
41
|
|
|
@@ -68,10 +72,10 @@ Several components in the following examples do not include functional and/or ac
|
|
|
68
72
|
|
|
69
73
|
### Item types
|
|
70
74
|
|
|
71
|
-
| Class
|
|
72
|
-
|
|
|
73
|
-
| `.pf-c-toolbar__item`
|
|
74
|
-
| `.pf-c-toolbar__group` | `<div>`
|
|
75
|
+
| Class | Applied to | Outcome |
|
|
76
|
+
| -- | -- | -- |
|
|
77
|
+
| `.pf-c-toolbar__item` | `<div>` | Initiates the toolbar component item. **Required** |
|
|
78
|
+
| `.pf-c-toolbar__group` | `<div>` | Initiates the toolbar component group. |
|
|
75
79
|
|
|
76
80
|
### Spacers
|
|
77
81
|
|
|
@@ -164,12 +168,12 @@ In some instances, it may be necessary to adjust spacing explicitly where items
|
|
|
164
168
|
|
|
165
169
|
### Toolbar spacers and insets
|
|
166
170
|
|
|
167
|
-
| Class
|
|
168
|
-
|
|
|
169
|
-
| `.pf-m-page-insets`
|
|
170
|
-
| `.pf-m-spacer-{none, sm, md, lg}{-on-[breakpoint]}`
|
|
171
|
-
| `.pf-m-space-items-{none, sm, md, lg}{-on-[breakpoint]}`
|
|
172
|
-
| `.pf-m-inset-{none, sm, md, lg, xl, 2xl}{-on-[breakpoint]}` | `.pf-c-toolbar`
|
|
171
|
+
| Class | Applied to | Outcome |
|
|
172
|
+
| -- | -- | -- |
|
|
173
|
+
| `.pf-m-page-insets` | `.pf-c-toolbar` | Modifies toolbar insets to match page section, table, page header or any other component whose inset shifts from `--pf-global--spacer--md` to `--pf-global--spacer--lg` at the `xl` breakpoint. |
|
|
174
|
+
| `.pf-m-spacer-{none, sm, md, lg}{-on-[breakpoint]}` | `.pf-c-toolbar__group`, `.pf-c-toolbar__item` | Modifies toolbar group or item spacing at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
175
|
+
| `.pf-m-space-items-{none, sm, md, lg}{-on-[breakpoint]}` | `.pf-c-toolbar__group` | Modifies toolbar group child spacing at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
176
|
+
| `.pf-m-inset-{none, sm, md, lg, xl, 2xl}{-on-[breakpoint]}` | `.pf-c-toolbar` | Modifies toolbar horizontal padding at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
173
177
|
|
|
174
178
|
### Width control
|
|
175
179
|
|
|
@@ -195,10 +199,10 @@ In some instances, it may be necessary to adjust spacing explicitly where items
|
|
|
195
199
|
|
|
196
200
|
### Width control usage
|
|
197
201
|
|
|
198
|
-
| Class
|
|
199
|
-
|
|
|
200
|
-
| `--pf-c-toolbar__item--Width{-on-[breakpoint]}: {width}`
|
|
201
|
-
| `--pf-c-toolbar__item--MinWidth{-on-[breakpoint]}: {width}` | `.pf-c-toolbar__item` |
|
|
202
|
+
| Class | Applied to | Outcome |
|
|
203
|
+
| -- | -- | -- |
|
|
204
|
+
| `--pf-c-toolbar__item--Width{-on-[breakpoint]}: {width}` | `.pf-c-toolbar__item` | Modifies the width value of a toolbar item at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
205
|
+
| `--pf-c-toolbar__item--MinWidth{-on-[breakpoint]}: {width}` | `.pf-c-toolbar__item` | Modifies the min width value of a toolbar item at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
202
206
|
|
|
203
207
|
### Group types
|
|
204
208
|
|
|
@@ -433,11 +437,11 @@ In some instances, it may be necessary to adjust spacing explicitly where items
|
|
|
433
437
|
|
|
434
438
|
### Toolbar group types
|
|
435
439
|
|
|
436
|
-
| Class
|
|
437
|
-
|
|
|
438
|
-
| `.pf-m-filter-group`
|
|
440
|
+
| Class | Applied to | Outcome |
|
|
441
|
+
| -- | -- | -- |
|
|
442
|
+
| `.pf-m-filter-group` | `.pf-c-toolbar__group` | Modifies toolbar group spacing. Spacer value is set to `var(--pf-c-toolbar__group--m-filter-group--spacer)`. Child spacer value is set to `var(--pf-c-toolbar__group--m-filter-group--space-items)`. |
|
|
439
443
|
| `.pf-m-icon-button-group` | `.pf-c-toolbar__group` | Modifies toolbar group spacing. Spacer value is set to `var(--pf-c-toolbar__group--m-toggle-group--spacer)`. Child spacer value is set to `var(--pf-c-toolbar__group--m-icon-button-group--space-items)`. |
|
|
440
|
-
| `.pf-m-button-group`
|
|
444
|
+
| `.pf-m-button-group` | `.pf-c-toolbar__group` | Modifies toolbar group spacing. Spacer value is set to `var(--pf-c-toolbar__group--m-toggle-group--spacer)`. Child spacer value is set to `var(--pf-c-toolbar__group--m-button-group--space-items)`. |
|
|
441
445
|
|
|
442
446
|
### Toggle group
|
|
443
447
|
|
|
@@ -489,7 +493,6 @@ In some instances, it may be necessary to adjust spacing explicitly where items
|
|
|
489
493
|
role="listbox"
|
|
490
494
|
aria-labelledby="toolbar-toggle-group-example-select-name-label"
|
|
491
495
|
hidden
|
|
492
|
-
style="width: 175px"
|
|
493
496
|
>
|
|
494
497
|
<li role="presentation">
|
|
495
498
|
<button class="pf-c-select__menu-item" role="option">Running</button>
|
|
@@ -520,7 +523,7 @@ In some instances, it may be necessary to adjust spacing explicitly where items
|
|
|
520
523
|
</li>
|
|
521
524
|
</ul>
|
|
522
525
|
</div>
|
|
523
|
-
<div class="pf-c-text-input-group">
|
|
526
|
+
<div class="pf-c-text-input-group" style="width: auto">
|
|
524
527
|
<div class="pf-c-text-input-group__main pf-m-icon">
|
|
525
528
|
<span class="pf-c-text-input-group__text">
|
|
526
529
|
<span class="pf-c-text-input-group__icon">
|
|
@@ -528,9 +531,9 @@ In some instances, it may be necessary to adjust spacing explicitly where items
|
|
|
528
531
|
</span>
|
|
529
532
|
<input
|
|
530
533
|
class="pf-c-text-input-group__text-input"
|
|
531
|
-
type="
|
|
532
|
-
value
|
|
534
|
+
type="search"
|
|
533
535
|
placeholder="Filter by name"
|
|
536
|
+
value
|
|
534
537
|
aria-label="Type to filter"
|
|
535
538
|
/>
|
|
536
539
|
</span>
|
|
@@ -810,7 +813,6 @@ In some instances, it may be necessary to adjust spacing explicitly where items
|
|
|
810
813
|
role="listbox"
|
|
811
814
|
aria-labelledby="toolbar-toggle-group-collapsed-example-select-name-label"
|
|
812
815
|
hidden
|
|
813
|
-
style="width: 175px"
|
|
814
816
|
>
|
|
815
817
|
<li role="presentation">
|
|
816
818
|
<button class="pf-c-select__menu-item" role="option">Running</button>
|
|
@@ -841,7 +843,7 @@ In some instances, it may be necessary to adjust spacing explicitly where items
|
|
|
841
843
|
</li>
|
|
842
844
|
</ul>
|
|
843
845
|
</div>
|
|
844
|
-
<div class="pf-c-text-input-group">
|
|
846
|
+
<div class="pf-c-text-input-group" style="width: auto">
|
|
845
847
|
<div class="pf-c-text-input-group__main pf-m-icon">
|
|
846
848
|
<span class="pf-c-text-input-group__text">
|
|
847
849
|
<span class="pf-c-text-input-group__icon">
|
|
@@ -849,9 +851,9 @@ In some instances, it may be necessary to adjust spacing explicitly where items
|
|
|
849
851
|
</span>
|
|
850
852
|
<input
|
|
851
853
|
class="pf-c-text-input-group__text-input"
|
|
852
|
-
type="
|
|
853
|
-
value
|
|
854
|
+
type="search"
|
|
854
855
|
placeholder="Filter by name"
|
|
856
|
+
value
|
|
855
857
|
aria-label="Type to filter"
|
|
856
858
|
/>
|
|
857
859
|
</span>
|
|
@@ -1075,27 +1077,27 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
1075
1077
|
|
|
1076
1078
|
### Accessibility
|
|
1077
1079
|
|
|
1078
|
-
| Attribute
|
|
1079
|
-
|
|
|
1080
|
-
| `hidden`
|
|
1081
|
-
| `aria-expanded="true"`
|
|
1082
|
-
| `aria-expanded="false"`
|
|
1083
|
-
| `aria-controls="[id of expandable content]"` | `.pf-c-toolbar__toggle > .pf-c-button`
|
|
1084
|
-
| `id="[expandable-content_id]"`
|
|
1080
|
+
| Attribute | Applied to | Outcome |
|
|
1081
|
+
| -- | -- | -- |
|
|
1082
|
+
| `hidden` | `.pf-c-toolbar__item`, `.pf-c-toolbar__group`, `.pf-c-toolbar__toggle`, `.pf-c-toolbar__expandable-content` | Indicates that the toggle group element is hidden. **Required** |
|
|
1083
|
+
| `aria-expanded="true"` | `.pf-c-toolbar__toggle > .pf-c-button` | Indicates that the expandable content is visible. **Required** |
|
|
1084
|
+
| `aria-expanded="false"` | `.pf-c-toolbar__toggle > .pf-c-button` | Indicates the the expandable content is hidden. **Required** |
|
|
1085
|
+
| `aria-controls="[id of expandable content]"` | `.pf-c-toolbar__toggle > .pf-c-button` | Identifies the expanded content controlled by the toggle button. **Required** |
|
|
1086
|
+
| `id="[expandable-content_id]"` | `.pf-c-toolbar__expandable-content` | Provides a reference for toggle button description. **Required** |
|
|
1085
1087
|
|
|
1086
1088
|
### Responsive attributes
|
|
1087
1089
|
|
|
1088
|
-
| Attribute
|
|
1089
|
-
|
|
|
1090
|
+
| Attribute | Applied to | Outcome |
|
|
1091
|
+
| -- | -- | -- |
|
|
1090
1092
|
| `aria-haspopup="true"` | `.pf-c-toolbar__toggle > .pf-c-button` | When expandable content appears above content (mobile viewport), `aria-haspopup="true"` should be applied to indicate that focus should be trapped. **Required** |
|
|
1091
1093
|
|
|
1092
1094
|
### Usage
|
|
1093
1095
|
|
|
1094
|
-
| Class
|
|
1095
|
-
|
|
|
1096
|
+
| Class | Applied to | Outcome |
|
|
1097
|
+
| -- | -- | -- |
|
|
1096
1098
|
| `.pf-m-show{-on-[breakpoint]}` | `.pf-c-toolbar__group.pf-m-toggle-group`, `.pf-c-toolbar__expandable-content` | Modifies toolbar element visibility at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). This selector must be applied consistently to toggle group and expandable content. |
|
|
1097
|
-
| `.pf-m-chip-container`
|
|
1098
|
-
| `.pf-m-expanded`
|
|
1099
|
+
| `.pf-m-chip-container` | `.pf-c-toolbar__content-section`, `.pf-c-toolbar__group` | Modifies the toolbar element for applied filters layout. |
|
|
1100
|
+
| `.pf-m-expanded` | `.pf-c-toolbar__expandable-content`, `.pf-c-toolbar__toggle` | Modifies the component for the expanded state. |
|
|
1099
1101
|
|
|
1100
1102
|
### Selected
|
|
1101
1103
|
|
|
@@ -1115,11 +1117,14 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
1115
1117
|
class="pf-c-dropdown__toggle-check"
|
|
1116
1118
|
for="toolbar-selected-filters-toggle-group-collapsed-example-bulk-select-toggle-check"
|
|
1117
1119
|
>
|
|
1118
|
-
<
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1120
|
+
<div class="pf-c-check pf-m-standalone">
|
|
1121
|
+
<input
|
|
1122
|
+
class="pf-c-check__input"
|
|
1123
|
+
type="checkbox"
|
|
1124
|
+
id="toolbar-selected-filters-toggle-group-collapsed-example-bulk-select-toggle-check"
|
|
1125
|
+
aria-label="Select all"
|
|
1126
|
+
/>
|
|
1127
|
+
</div>
|
|
1123
1128
|
</label>
|
|
1124
1129
|
|
|
1125
1130
|
<button
|
|
@@ -1192,7 +1197,6 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
1192
1197
|
role="listbox"
|
|
1193
1198
|
aria-labelledby="toolbar-selected-filters-toggle-group-collapsed-example-select-name-label"
|
|
1194
1199
|
hidden
|
|
1195
|
-
style="width: 175px"
|
|
1196
1200
|
>
|
|
1197
1201
|
<li role="presentation">
|
|
1198
1202
|
<button class="pf-c-select__menu-item" role="option">Running</button>
|
|
@@ -1223,7 +1227,7 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
1223
1227
|
</li>
|
|
1224
1228
|
</ul>
|
|
1225
1229
|
</div>
|
|
1226
|
-
<div class="pf-c-text-input-group">
|
|
1230
|
+
<div class="pf-c-text-input-group" style="width: auto">
|
|
1227
1231
|
<div class="pf-c-text-input-group__main pf-m-icon">
|
|
1228
1232
|
<span class="pf-c-text-input-group__text">
|
|
1229
1233
|
<span class="pf-c-text-input-group__icon">
|
|
@@ -1231,9 +1235,9 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
1231
1235
|
</span>
|
|
1232
1236
|
<input
|
|
1233
1237
|
class="pf-c-text-input-group__text-input"
|
|
1234
|
-
type="
|
|
1235
|
-
value
|
|
1238
|
+
type="search"
|
|
1236
1239
|
placeholder="Filter by name"
|
|
1240
|
+
value
|
|
1237
1241
|
aria-label="Type to filter"
|
|
1238
1242
|
/>
|
|
1239
1243
|
</span>
|
|
@@ -1656,11 +1660,14 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
1656
1660
|
class="pf-c-dropdown__toggle-check"
|
|
1657
1661
|
for="toolbar-selected-filters-toggle-group-expanded-example-bulk-select-toggle-check"
|
|
1658
1662
|
>
|
|
1659
|
-
<
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1663
|
+
<div class="pf-c-check pf-m-standalone">
|
|
1664
|
+
<input
|
|
1665
|
+
class="pf-c-check__input"
|
|
1666
|
+
type="checkbox"
|
|
1667
|
+
id="toolbar-selected-filters-toggle-group-expanded-example-bulk-select-toggle-check"
|
|
1668
|
+
aria-label="Select all"
|
|
1669
|
+
/>
|
|
1670
|
+
</div>
|
|
1664
1671
|
</label>
|
|
1665
1672
|
|
|
1666
1673
|
<button
|
|
@@ -1774,7 +1781,6 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
1774
1781
|
role="listbox"
|
|
1775
1782
|
aria-labelledby="toolbar-selected-filters-toggle-group-expanded-example-select-name-label"
|
|
1776
1783
|
hidden
|
|
1777
|
-
style="width: 175px"
|
|
1778
1784
|
>
|
|
1779
1785
|
<li role="presentation">
|
|
1780
1786
|
<button class="pf-c-select__menu-item" role="option">Running</button>
|
|
@@ -1805,7 +1811,7 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
1805
1811
|
</li>
|
|
1806
1812
|
</ul>
|
|
1807
1813
|
</div>
|
|
1808
|
-
<div class="pf-c-text-input-group">
|
|
1814
|
+
<div class="pf-c-text-input-group" style="width: auto">
|
|
1809
1815
|
<div class="pf-c-text-input-group__main pf-m-icon">
|
|
1810
1816
|
<span class="pf-c-text-input-group__text">
|
|
1811
1817
|
<span class="pf-c-text-input-group__icon">
|
|
@@ -1813,9 +1819,9 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
1813
1819
|
</span>
|
|
1814
1820
|
<input
|
|
1815
1821
|
class="pf-c-text-input-group__text-input"
|
|
1816
|
-
type="
|
|
1817
|
-
value
|
|
1822
|
+
type="search"
|
|
1818
1823
|
placeholder="Filter by name"
|
|
1824
|
+
value
|
|
1819
1825
|
aria-label="Type to filter"
|
|
1820
1826
|
/>
|
|
1821
1827
|
</span>
|
|
@@ -2192,11 +2198,14 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
2192
2198
|
class="pf-c-dropdown__toggle-check"
|
|
2193
2199
|
for="toolbar-selected-filters-example-bulk-select-toggle-check"
|
|
2194
2200
|
>
|
|
2195
|
-
<
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2201
|
+
<div class="pf-c-check pf-m-standalone">
|
|
2202
|
+
<input
|
|
2203
|
+
class="pf-c-check__input"
|
|
2204
|
+
type="checkbox"
|
|
2205
|
+
id="toolbar-selected-filters-example-bulk-select-toggle-check"
|
|
2206
|
+
aria-label="Select all"
|
|
2207
|
+
/>
|
|
2208
|
+
</div>
|
|
2200
2209
|
</label>
|
|
2201
2210
|
|
|
2202
2211
|
<button
|
|
@@ -3104,11 +3113,14 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
3104
3113
|
class="pf-c-dropdown__toggle-check"
|
|
3105
3114
|
for="toolbar-stacked-example-bulk-select-toggle-check"
|
|
3106
3115
|
>
|
|
3107
|
-
<
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3116
|
+
<div class="pf-c-check pf-m-standalone">
|
|
3117
|
+
<input
|
|
3118
|
+
class="pf-c-check__input"
|
|
3119
|
+
type="checkbox"
|
|
3120
|
+
id="toolbar-stacked-example-bulk-select-toggle-check"
|
|
3121
|
+
aria-label="Select all"
|
|
3122
|
+
/>
|
|
3123
|
+
</div>
|
|
3112
3124
|
</label>
|
|
3113
3125
|
|
|
3114
3126
|
<button
|
|
@@ -3617,11 +3629,14 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
3617
3629
|
class="pf-c-dropdown__toggle-check"
|
|
3618
3630
|
for="toolbar-stacked-collapsed-example-bulk-select-toggle-check"
|
|
3619
3631
|
>
|
|
3620
|
-
<
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3632
|
+
<div class="pf-c-check pf-m-standalone">
|
|
3633
|
+
<input
|
|
3634
|
+
class="pf-c-check__input"
|
|
3635
|
+
type="checkbox"
|
|
3636
|
+
id="toolbar-stacked-collapsed-example-bulk-select-toggle-check"
|
|
3637
|
+
aria-label="Select all"
|
|
3638
|
+
/>
|
|
3639
|
+
</div>
|
|
3625
3640
|
</label>
|
|
3626
3641
|
|
|
3627
3642
|
<button
|
|
@@ -3765,11 +3780,14 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
3765
3780
|
class="pf-c-dropdown__toggle-check"
|
|
3766
3781
|
for="toolbar-expanded-elements-example-bulk-select-toggle-check"
|
|
3767
3782
|
>
|
|
3768
|
-
<
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3783
|
+
<div class="pf-c-check pf-m-standalone">
|
|
3784
|
+
<input
|
|
3785
|
+
class="pf-c-check__input"
|
|
3786
|
+
type="checkbox"
|
|
3787
|
+
id="toolbar-expanded-elements-example-bulk-select-toggle-check"
|
|
3788
|
+
aria-label="Select all"
|
|
3789
|
+
/>
|
|
3790
|
+
</div>
|
|
3773
3791
|
</label>
|
|
3774
3792
|
|
|
3775
3793
|
<button
|
|
@@ -3842,7 +3860,6 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
3842
3860
|
role="listbox"
|
|
3843
3861
|
aria-labelledby="toolbar-expanded-elements-example-select-name-label"
|
|
3844
3862
|
hidden
|
|
3845
|
-
style="width: 175px"
|
|
3846
3863
|
>
|
|
3847
3864
|
<li role="presentation">
|
|
3848
3865
|
<button class="pf-c-select__menu-item" role="option">Running</button>
|
|
@@ -3873,7 +3890,7 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
3873
3890
|
</li>
|
|
3874
3891
|
</ul>
|
|
3875
3892
|
</div>
|
|
3876
|
-
<div class="pf-c-text-input-group">
|
|
3893
|
+
<div class="pf-c-text-input-group" style="width: auto">
|
|
3877
3894
|
<div class="pf-c-text-input-group__main pf-m-icon">
|
|
3878
3895
|
<span class="pf-c-text-input-group__text">
|
|
3879
3896
|
<span class="pf-c-text-input-group__icon">
|
|
@@ -3881,9 +3898,9 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
3881
3898
|
</span>
|
|
3882
3899
|
<input
|
|
3883
3900
|
class="pf-c-text-input-group__text-input"
|
|
3884
|
-
type="
|
|
3885
|
-
value
|
|
3901
|
+
type="search"
|
|
3886
3902
|
placeholder="Filter by name"
|
|
3903
|
+
value
|
|
3887
3904
|
aria-label="Type to filter"
|
|
3888
3905
|
/>
|
|
3889
3906
|
</span>
|
|
@@ -4193,61 +4210,65 @@ As the toolbar component is a hybrid layout and component, some of its elements
|
|
|
4193
4210
|
|
|
4194
4211
|
### Usage
|
|
4195
4212
|
|
|
4196
|
-
| Class
|
|
4197
|
-
|
|
|
4198
|
-
| `.pf-c-toolbar`
|
|
4199
|
-
| `.pf-c-toolbar__item`
|
|
4200
|
-
| `.pf-c-toolbar__group`
|
|
4201
|
-
| `.pf-c-toolbar__content`
|
|
4202
|
-
| `.pf-c-toolbar__content-section`
|
|
4203
|
-
| `.pf-c-toolbar__expandable-content`
|
|
4204
|
-
| `.pf-m-sticky`
|
|
4205
|
-
| `.pf-m-full-height`
|
|
4206
|
-
| `.pf-m-static`
|
|
4207
|
-
| `.pf-m-expanded`
|
|
4208
|
-
| `.pf-m-bulk-select`
|
|
4209
|
-
| `.pf-m-overflow-menu`
|
|
4210
|
-
| `.pf-m-pagination`
|
|
4211
|
-
| `.pf-m-search-filter`
|
|
4212
|
-
| `.pf-m-chip-group`
|
|
4213
|
-
| `.pf-m-expand-all`
|
|
4214
|
-
| `.pf-m-expanded`
|
|
4215
|
-
| `.pf-m-button-group`
|
|
4216
|
-
| `.pf-m-icon-button-group`
|
|
4217
|
-
| `.pf-m-filter-group`
|
|
4218
|
-
| `.pf-m-hidden{-on-[breakpoint]}`
|
|
4219
|
-
| `.pf-m-visible{-on-[breakpoint]}`
|
|
4220
|
-
| `.pf-m-align-right{-on-[breakpoint]}` | `.pf-c-toolbar > *`
|
|
4221
|
-
| `.pf-m-align-left{-on-[breakpoint]}`
|
|
4222
|
-
| `.pf-m-
|
|
4223
|
-
| `.pf-m-
|
|
4224
|
-
| `.pf-m-
|
|
4225
|
-
| `.pf-m-
|
|
4226
|
-
| `.pf-m-
|
|
4227
|
-
| `.pf-m-
|
|
4213
|
+
| Class | Applied to | Outcome |
|
|
4214
|
+
| -- | -- | -- |
|
|
4215
|
+
| `.pf-c-toolbar` | `<div>` | Initiates the toolbar component. **Required** |
|
|
4216
|
+
| `.pf-c-toolbar__item` | `<div>` | Initiates a toolbar item. **Required** |
|
|
4217
|
+
| `.pf-c-toolbar__group` | `<div>` | Initiates a toolbar group. |
|
|
4218
|
+
| `.pf-c-toolbar__content` | `<div>` | Initiates a toolbar content container. **Required** |
|
|
4219
|
+
| `.pf-c-toolbar__content-section` | `<div>` | Initiates a toolbar content section. This is used to separate static elements from dynamic elements within a content container. There should be no more than one `.pf-c-toolbar__content-section` per `.pf-c-toolbar__content` **Required** |
|
|
4220
|
+
| `.pf-c-toolbar__expandable-content` | `<div>` | Initiates a toolbar expandable content section. |
|
|
4221
|
+
| `.pf-m-sticky` | `.pf-c-toolbar` | Modifies toolbar component to be sticky to the top of its container. |
|
|
4222
|
+
| `.pf-m-full-height` | `.pf-c-toolbar` | Modifies toolbar component to full height of its container and removes vertical padding. |
|
|
4223
|
+
| `.pf-m-static` | `.pf-c-toolbar` | Modifies expandable content section to position itself to the nearest absolutely positioned parent outside of the toolbar component. This is used primarily for masthead toolbar. |
|
|
4224
|
+
| `.pf-m-expanded` | `.pf-c-toolbar__expandable-content` | Modifies expandable content section for the expanded state. |
|
|
4225
|
+
| `.pf-m-bulk-select` | `.pf-c-toolbar__item` | Initiates bulk select spacing. |
|
|
4226
|
+
| `.pf-m-overflow-menu` | `.pf-c-toolbar__item` | Initiates overflow menu spacing. |
|
|
4227
|
+
| `.pf-m-pagination` | `.pf-c-toolbar__item` | Initiates pagination spacing and margin. |
|
|
4228
|
+
| `.pf-m-search-filter` | `.pf-c-toolbar__item` | Initiates search filter spacing. |
|
|
4229
|
+
| `.pf-m-chip-group` | `.pf-c-toolbar__item` | Initiates chip group spacing. |
|
|
4230
|
+
| `.pf-m-expand-all` | `.pf-c-toolbar__item` | Initiates an item for an expand all button. |
|
|
4231
|
+
| `.pf-m-expanded` | `.pf-c-toolbar__item.pf-m-expand-all` | Modifies an expand all button for the expanded state. |
|
|
4232
|
+
| `.pf-m-button-group` | `.pf-c-toolbar__group` | Initiates button group spacing. |
|
|
4233
|
+
| `.pf-m-icon-button-group` | `.pf-c-toolbar__group` | Initiates icon button group spacing. |
|
|
4234
|
+
| `.pf-m-filter-group` | `.pf-c-toolbar__group` | Initiates filter group spacing. |
|
|
4235
|
+
| `.pf-m-hidden{-on-[breakpoint]}` | `.pf-c-toolbar__content`, `.pf-c-toolbar__content-section`, `.pf-c-toolbar__item`, `.pf-c-toolbar__group` | Modifies toolbar element to be hidden, at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
4236
|
+
| `.pf-m-visible{-on-[breakpoint]}` | `.pf-c-toolbar__content`, `.pf-c-toolbar__content-section`, `.pf-c-toolbar__item`, `.pf-c-toolbar__group` | Modifies toolbar element to be shown, at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
4237
|
+
| `.pf-m-align-right{-on-[breakpoint]}` | `.pf-c-toolbar > *` | Modifies toolbar element to align right, at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
4238
|
+
| `.pf-m-align-left{-on-[breakpoint]}` | `.pf-c-toolbar > *` | Modifies toolbar element to align left, at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
4239
|
+
| `.pf-m-align-items-center` | `.pf-c-toolbar__content-section`, `.pf-c-toolbar__group` | Modifies toolbar element to vertically align children to center. |
|
|
4240
|
+
| `.pf-m-align-items-baseline` | `.pf-c-toolbar__group` | Modifies toolbar group to vertically align children to baseline. |
|
|
4241
|
+
| `.pf-m-align-self-center` | `.pf-c-toolbar__group`, `.pf-c-toolbar__item` | Modifies toolbar element to vertically align self to center. |
|
|
4242
|
+
| `.pf-m-align-self-baseline` | `.pf-c-toolbar__group`, `.pf-c-toolbar__item` | Modifies toolbar element to vertically align self to baseline. |
|
|
4243
|
+
| `.pf-m-label` | `.pf-c-toolbar__item` | Modifies toolbar item to label. |
|
|
4244
|
+
| `.pf-m-chip-container` | `.pf-c-toolbar__content`, `.pf-c-toolbar__group` | Modifies the toolbar element for applied filters layout. |
|
|
4245
|
+
| `.pf-m-overflow-container` | `.pf-c-toolbar__item`, `.pf-c-toolbar__group` | Modifies the toolbar element to hide overflow and respond to available space. Used for horizontal navigation. |
|
|
4246
|
+
| `.pf-m-expanded` | `.pf-c-toolbar__expandable-content`, `.pf-c-toolbar__toggle` | Modifies the component for the expanded state. |
|
|
4247
|
+
| `.pf-m-wrap` | `.pf-c-toolbar`, `.pf-c-toolbar__content-section`, `.pf-c-toolbar__group` | Modifies the toolbar element to wrap. |
|
|
4248
|
+
| `.pf-m-nowrap` | `.pf-c-toolbar`, `.pf-c-toolbar__group` | Modifies the toolbar element to nowrap. |
|
|
4228
4249
|
|
|
4229
4250
|
### Accessibility
|
|
4230
4251
|
|
|
4231
|
-
| Attribute
|
|
4232
|
-
|
|
|
4233
|
-
| `hidden`
|
|
4234
|
-
| `aria-expanded="true"`
|
|
4235
|
-
| `aria-expanded="false"`
|
|
4236
|
-
| `aria-controls="[id of expandable content]"` | `.pf-c-toolbar__toggle > .pf-c-button`
|
|
4237
|
-
| `id="[expandable-content_id]"`
|
|
4238
|
-
| `aria-label="Expand all"`
|
|
4239
|
-
| `aria-label="Collapse all"`
|
|
4252
|
+
| Attribute | Applied to | Outcome |
|
|
4253
|
+
| -- | -- | -- |
|
|
4254
|
+
| `hidden` | `.pf-c-toolbar__item`, `.pf-c-toolbar__group`, `.pf-c-toolbar__toggle`, `.pf-c-toolbar__expandable-content` | Indicates that the toolbar element is hidden. **Required** |
|
|
4255
|
+
| `aria-expanded="true"` | `.pf-c-toolbar__toggle > .pf-c-button` | Indicates that the expandable content is visible. **Required** |
|
|
4256
|
+
| `aria-expanded="false"` | `.pf-c-toolbar__toggle > .pf-c-button` | Indicates the the expandable content is hidden. **Required** |
|
|
4257
|
+
| `aria-controls="[id of expandable content]"` | `.pf-c-toolbar__toggle > .pf-c-button` | Identifies the expanded content controlled by the toggle button. **Required** |
|
|
4258
|
+
| `id="[expandable-content_id]"` | `.pf-c-toolbar__expandable-content` | Provides a reference for toggle button description. **Required** |
|
|
4259
|
+
| `aria-label="Expand all"` | `.pf-c-toolbar__item.pf-m-expand-all` | Provides an accessible label for the expand all item button. **Required** |
|
|
4260
|
+
| `aria-label="Collapse all"` | `.pf-c-toolbar__item.pf-m-expand-all.pf-m-expanded` | Provides an accessible label for the expand all item button. **Required** |
|
|
4240
4261
|
|
|
4241
4262
|
### Toggle group usage
|
|
4242
4263
|
|
|
4243
|
-
| Class
|
|
4244
|
-
|
|
|
4245
|
-
| `.pf-m-toggle-group`
|
|
4264
|
+
| Class | Applied to | Outcome |
|
|
4265
|
+
| -- | -- | -- |
|
|
4266
|
+
| `.pf-m-toggle-group` | `.pf-c-toolbar__group` | Modifies toolbar group to control when, and at which breakpoint, filters will be hidden/shown. By default, all filters are hidden until the specified breakpoint is reached. |
|
|
4246
4267
|
| `.pf-m-show{-on-[breakpoint]}` | `.pf-c-toolbar__group.pf-m-toggle-group`, `.pf-c-toolbar__expandable-content` | Modifies toolbar element to hidden at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). This selector must be applied consistently to toggle group and expandable content. |
|
|
4247
4268
|
|
|
4248
4269
|
### Spacer system
|
|
4249
4270
|
|
|
4250
|
-
| Class
|
|
4251
|
-
|
|
|
4252
|
-
| `.pf-m-spacer-{none, sm, md, lg, xl}{-on-[breakpoint]}`
|
|
4253
|
-
| `.pf-m-space-items-{none, sm, md, lg, xl}{-on-[breakpoint]}` | `.pf-c-toolbar__group`
|
|
4271
|
+
| Class | Applied to | Outcome |
|
|
4272
|
+
| -- | -- | -- |
|
|
4273
|
+
| `.pf-m-spacer-{none, sm, md, lg, xl}{-on-[breakpoint]}` | `.pf-c-toolbar__group`, `.pf-c-toolbar__item` | Modifies toolbar group or item spacing at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
4274
|
+
| `.pf-m-space-items-{none, sm, md, lg, xl}{-on-[breakpoint]}` | `.pf-c-toolbar__group` | Modifies toolbar group child spacing at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
@@ -128,13 +128,13 @@ A tooltip is used to provide contextual information for another component on hov
|
|
|
128
128
|
|
|
129
129
|
### Usage
|
|
130
130
|
|
|
131
|
-
| Class
|
|
132
|
-
|
|
|
133
|
-
| `.pf-c-tooltip`
|
|
134
|
-
| `.pf-c-tooltip__arrow`
|
|
135
|
-
| `.pf-c-tooltip__content`
|
|
136
|
-
| `.pf-m-left{-top/bottom}`
|
|
137
|
-
| `.pf-m-right{-top/bottom}`
|
|
138
|
-
| `.pf-m-top{-left/right}`
|
|
139
|
-
| `.pf-m-bottom{-left/right}` | `.pf-c-tooltip`
|
|
140
|
-
| `.pf-m-text-align-left`
|
|
131
|
+
| Class | Applied to | Outcome |
|
|
132
|
+
| -- | -- | -- |
|
|
133
|
+
| `.pf-c-tooltip` | `<div>` | Creates a tooltip. Always use with a modifier class that positions the tooltip relative to the element it describes. **Required**|
|
|
134
|
+
| `.pf-c-tooltip__arrow` | `<div>` | Creates an arrow pointing towards the element the tooltip describes. **Required** |
|
|
135
|
+
| `.pf-c-tooltip__content` | `<div>` | Creates the body of the tooltip. **Required** |
|
|
136
|
+
| `.pf-m-left{-top/bottom}` | `.pf-c-tooltip` | Positions the tooltip to the left (or left top/left bottom) of the element. |
|
|
137
|
+
| `.pf-m-right{-top/bottom}` | `.pf-c-tooltip` | Positions the tooltip to the right (or right top/right bottom) of the element. |
|
|
138
|
+
| `.pf-m-top{-left/right}` | `.pf-c-tooltip` | Positions the tooltip to the top (or top left/top right) of the element. |
|
|
139
|
+
| `.pf-m-bottom{-left/right}` | `.pf-c-tooltip` | Positions the tooltip to the bottom (or bottom left/bottom right) of the element. |
|
|
140
|
+
| `.pf-m-text-align-left` | `.pf-c-tooltip__content` | Modifies tooltip content to text align left. |
|