@patternfly/patternfly 6.0.0-alpha.98 → 6.0.0-alpha.99
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/components/Card/card.css +1 -0
- package/components/Card/card.scss +1 -0
- package/components/Check/check.css +10 -3
- package/components/Check/check.scss +17 -4
- package/components/Masthead/masthead.css +17 -9
- package/components/Masthead/masthead.scss +18 -9
- package/components/MenuToggle/menu-toggle.css +4 -4
- package/components/MenuToggle/menu-toggle.scss +4 -4
- package/components/ModalBox/modal-box.css +11 -7
- package/components/ModalBox/modal-box.scss +27 -12
- package/components/Nav/nav.css +64 -110
- package/components/Nav/nav.scss +70 -143
- package/components/Page/page.css +9 -17
- package/components/Page/page.scss +10 -23
- package/components/Radio/radio.css +12 -5
- package/components/Radio/radio.scss +21 -6
- package/components/Table/table-grid.css +30 -35
- package/components/Table/table-grid.scss +44 -32
- package/components/Table/table-scrollable.css +14 -6
- package/components/Table/table-scrollable.scss +6 -1
- package/components/Table/table-tree-view.css +5 -5
- package/components/Table/table-tree-view.scss +14 -8
- package/components/Table/table.css +90 -254
- package/components/Table/table.scss +158 -347
- package/components/Toolbar/toolbar.css +66 -2
- package/components/Toolbar/toolbar.scss +21 -2
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +12 -12
- package/docs/components/Accordion/examples/Accordion.md +19 -19
- package/docs/components/ActionList/examples/ActionList.md +5 -5
- package/docs/components/Alert/examples/Alert.md +26 -26
- package/docs/components/AppLauncher/deprecated/application-launcher.md +31 -31
- package/docs/components/Avatar/examples/Avatar.md +8 -8
- package/docs/components/BackToTop/examples/BackToTop.md +3 -3
- package/docs/components/Backdrop/examples/Backdrop.md +3 -3
- package/docs/components/BackgroundImage/examples/BackgroundImage.md +4 -4
- package/docs/components/Badge/examples/Badge.md +6 -6
- package/docs/components/Banner/examples/Banner.md +17 -17
- package/docs/components/Brand/examples/Brand.css +3 -3
- package/docs/components/Brand/examples/Brand.md +7 -7
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +12 -12
- package/docs/components/Button/examples/Button.css +2 -2
- package/docs/components/Button/examples/Button.md +35 -35
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +29 -29
- package/docs/components/Card/examples/Card.md +30 -30
- package/docs/components/Check/examples/Check.md +12 -12
- package/docs/components/Chip/examples/Chip.md +21 -21
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +19 -19
- package/docs/components/CodeBlock/examples/CodeBlock.md +8 -8
- package/docs/components/CodeEditor/examples/CodeEditor.md +14 -14
- package/docs/components/Content/examples/Content.md +5 -5
- package/docs/components/ContextSelector/deprecated/context-selector.md +23 -23
- package/docs/components/DataList/examples/DataList.md +177 -112
- package/docs/components/DatePicker/examples/DatePicker.md +10 -10
- package/docs/components/DescriptionList/examples/DescriptionList.md +29 -29
- package/docs/components/Divider/examples/Divider.md +7 -7
- package/docs/components/DragDrop/examples/DragDrop.md +5 -5
- package/docs/components/Drawer/examples/Drawer.md +36 -36
- package/docs/components/Dropdown/deprecated/Dropdown.css +1 -1
- package/docs/components/Dropdown/deprecated/Dropdown.md +47 -47
- package/docs/components/DualListSelector/examples/DualListSelector.md +41 -41
- package/docs/components/EmptyState/examples/EmptyState.md +21 -21
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +18 -18
- package/docs/components/FileUpload/examples/FileUpload.md +8 -8
- package/docs/components/Form/examples/Form.md +52 -52
- package/docs/components/FormControl/examples/FormControl.md +22 -22
- package/docs/components/HelperText/examples/HelperText.md +11 -11
- package/docs/components/Hint/examples/Hint.md +6 -6
- package/docs/components/Icon/examples/Icon.md +13 -13
- package/docs/components/InlineEdit/examples/InlineEdit.md +54 -138
- package/docs/components/InputGroup/examples/InputGroup.md +10 -10
- package/docs/components/JumpLinks/examples/JumpLinks.md +19 -19
- package/docs/components/Label/examples/Label.css +4 -4
- package/docs/components/Label/examples/Label.md +45 -45
- package/docs/components/List/examples/List.md +6 -6
- package/docs/components/LogViewer/examples/LogViewer.css +2 -2
- package/docs/components/LogViewer/examples/LogViewer.md +45 -165
- package/docs/components/Login/examples/Login.md +21 -21
- package/docs/components/Masthead/examples/masthead.md +7 -7
- package/docs/components/Menu/examples/Menu.md +60 -60
- package/docs/components/MenuToggle/examples/MenuToggle.md +34 -106
- package/docs/components/ModalBox/examples/ModalBox.md +75 -34
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +21 -21
- package/docs/components/Nav/examples/Navigation.css +20 -3
- package/docs/components/Nav/examples/Navigation.md +44 -50
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +8 -8
- package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +36 -36
- package/docs/components/NumberInput/examples/NumberInput.md +13 -13
- package/docs/components/OptionsMenu/deprecated/options-menu.md +22 -22
- package/docs/components/OverflowMenu/examples/overflow-menu.md +20 -20
- package/docs/components/Page/deprecated/PageHeader.md +30 -30
- package/docs/components/Page/examples/Page.md +55 -54
- package/docs/components/Pagination/examples/Pagination.md +25 -25
- package/docs/components/Panel/examples/Panel.md +10 -10
- package/docs/components/Popover/examples/Popover.md +30 -30
- package/docs/components/Progress/examples/Progress.md +31 -31
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +17 -17
- package/docs/components/Radio/examples/Radio.md +9 -9
- package/docs/components/Select/deprecated/Select.md +110 -110
- package/docs/components/Sidebar/examples/Sidebar.md +16 -16
- package/docs/components/SimpleList/examples/SimpleList.md +9 -9
- package/docs/components/Skeleton/examples/Skeleton.md +14 -14
- package/docs/components/SkipToContent/examples/SkipToContent.md +4 -4
- package/docs/components/Slider/examples/Slider.md +33 -33
- package/docs/components/Spinner/examples/Spinner.md +14 -14
- package/docs/components/Switch/examples/Switch.md +14 -14
- package/docs/components/TabContent/examples/TabContent.md +10 -10
- package/docs/components/Table/examples/Table.md +5395 -15077
- package/docs/components/Tabs/examples/Tabs.md +39 -39
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +1 -1
- package/docs/components/Tile/examples/Tile.md +12 -12
- package/docs/components/Timestamp/examples/Timestamp.md +4 -4
- package/docs/components/Title/examples/Title.md +20 -20
- package/docs/components/ToggleGroup/examples/toggle-group.md +10 -10
- package/docs/components/Toolbar/examples/Toolbar.md +68 -200
- package/docs/components/Tooltip/examples/Tooltip.md +9 -9
- package/docs/components/TreeView/examples/TreeView.md +31 -31
- package/docs/components/Truncate/examples/Truncate.md +8 -8
- package/docs/components/Wizard/examples/Wizard.md +46 -46
- package/docs/demos/AboutModal/examples/AboutModal.md +4 -52
- package/docs/demos/Alert/examples/Alert.md +12 -156
- package/docs/demos/BackToTop/examples/BackToTop.md +4 -52
- package/docs/demos/Banner/examples/Banner.md +9 -105
- package/docs/demos/Card/examples/Card.md +12 -19
- package/docs/demos/CardView/examples/CardView.md +5 -65
- package/docs/demos/ContextSelector/examples/ContextSelector.md +12 -156
- package/docs/demos/Dashboard/examples/Dashboard.md +4 -52
- package/docs/demos/DataList/examples/DataList.md +200 -553
- package/docs/demos/DescriptionList/examples/DescriptionList.md +18 -156
- package/docs/demos/Drawer/examples/Drawer.md +20 -260
- package/docs/demos/JumpLinks/examples/JumpLinks.md +24 -312
- package/docs/demos/Masthead/examples/Masthead.md +23 -255
- package/docs/demos/Modal/examples/Modal.md +24 -312
- package/docs/demos/Nav/examples/Nav.md +69 -461
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +20 -260
- package/docs/demos/Page/examples/Page.md +39 -505
- package/docs/demos/Page/examples/Penta.md +120 -53
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +35 -455
- package/docs/demos/Skeleton/examples/Skeleton.md +4 -52
- package/docs/demos/Table/examples/Table.md +1598 -6045
- package/docs/demos/Tabs/examples/Tabs.md +143 -499
- package/docs/demos/Toolbar/examples/Toolbar.md +245 -925
- package/docs/demos/Wizard/examples/Wizard.md +36 -468
- package/docs/layouts/Bullseye/examples/Bullseye.md +3 -3
- package/docs/layouts/Flex/examples/Flex.md +76 -76
- package/docs/layouts/Gallery/examples/Gallery.md +6 -6
- package/docs/layouts/Grid/examples/Grid.md +8 -8
- package/docs/layouts/Level/examples/Level.md +4 -4
- package/docs/layouts/Split/examples/Split.md +6 -6
- package/docs/layouts/Stack/examples/Stack.md +5 -5
- package/docs/utilities/Accessibility/examples/Accessibility.md +2 -2
- package/docs/utilities/Alignment/examples/Alignment.md +4 -4
- package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +10 -10
- package/docs/utilities/BoxShadow/examples/box-shadow.md +20 -20
- package/docs/utilities/Display/examples/Display.md +9 -9
- package/docs/utilities/Flex/examples/Flex.md +32 -32
- package/docs/utilities/Float/examples/Float.md +2 -2
- package/docs/utilities/Sizing/examples/Sizing.md +41 -41
- package/docs/utilities/Spacing/examples/Spacing.md +11 -11
- package/docs/utilities/Text/examples/Text.md +28 -28
- package/package.json +2 -1
- package/patternfly-no-globals.css +347 -463
- package/patternfly-theme-dark-unversioned.css +347 -463
- package/patternfly.css +347 -463
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/components/Table/themes/dark/table.scss +0 -16
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Toolbar
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-toolbar
|
|
5
5
|
---import './Toolbar.css'
|
|
6
6
|
|
|
7
7
|
<!-- TODO: add documentation for resize observer/responsive variable usage -->
|
|
8
8
|
|
|
9
|
-
Toolbar relies on groups (`.pf-
|
|
9
|
+
Toolbar relies on groups (`.pf-v6-c-toolbar__group`) and items (`.pf-v6-c-toolbar__item`), with default col/row gap values. Groups and items can be siblings and/or items can be nested within groups. Modifier selectors adjust spacing based on the type of group. The default `column-gap` value for items and groups is set to `--pf-v6-c--ColumnGap`, whose value is `--pf-t--global--spacer--sm` or 8px.
|
|
10
10
|
|
|
11
11
|
### Default spacing for items and groups:
|
|
12
12
|
|
|
13
13
|
| Class | CSS Variable | Computed Value |
|
|
14
14
|
| -- | -- | -- |
|
|
15
|
-
| `.pf-
|
|
16
|
-
| `.pf-
|
|
15
|
+
| `.pf-v6-c-toolbar__group` | `--pf-v6-c-toolbar__group--ColumnGap` | `8px` |
|
|
16
|
+
| `.pf-v6-c-toolbar__item` | `--pf-v6-c-toolbar__item--ColumnGap` | `8px` |
|
|
17
17
|
|
|
18
18
|
### Toolbar item types
|
|
19
19
|
|
|
20
20
|
| Class | Applied to | Outcome |
|
|
21
21
|
| -- | -- | -- |
|
|
22
|
-
| `.pf-m-pagination` | `.pf-
|
|
22
|
+
| `.pf-m-pagination` | `.pf-v6-c-toolbar__item` | Initiates pagination and margin. |
|
|
23
23
|
|
|
24
24
|
### Modifiers
|
|
25
25
|
|
|
26
26
|
| Class | Applied to | Outcome |
|
|
27
27
|
| -- | -- | -- |
|
|
28
|
-
| `.pf-m-[hidden/visible]` | `.pf-
|
|
29
|
-
| `.pf-m-flex-grow` | `.pf-
|
|
30
|
-
| `.pf-m-align-[start/end]` | `.pf-
|
|
31
|
-
| `.pf-m-align-items-[stretch/baseline/start/center/end]` | `.pf-
|
|
32
|
-
| `.pf-m-align-self-[stretch/baseline/start/center/end]` | `.pf-
|
|
28
|
+
| `.pf-m-[hidden/visible]` | `.pf-v6-c-toolbar > *` | Modifies toolbar element to be hidden/visible. |
|
|
29
|
+
| `.pf-m-flex-grow` | `.pf-v6-c-toolbar__group`, `.pf-v6-c-toolbar__item` | Modifies toolbar element to `flex-grow: 1`, allowing it to consume available main-axis space. |
|
|
30
|
+
| `.pf-m-align-[start/end]` | `.pf-v6-c-toolbar__group`, `.pf-v6-c-toolbar__item` | Modifies toolbar [main axis](https://developer.mozilla.org/en-US/docs/Glossary/Main_Axis) element alignment. |
|
|
31
|
+
| `.pf-m-align-items-[stretch/baseline/start/center/end]` | `.pf-v6-c-toolbar__content`, `.pf-v6-c-toolbar__content-section`, `.pf-v6-c-toolbar__group`, `.pf-v6-c-toolbar__item` | Modifies toolbar element [cross axis](https://developer.mozilla.org/en-US/docs/Glossary/Cross_Axis) child alignment. |
|
|
32
|
+
| `.pf-m-align-self-[stretch/baseline/start/center/end]` | `.pf-v6-c-toolbar__group`, `.pf-v6-c-toolbar__item` | Modifies toolbar element [cross axis](https://developer.mozilla.org/en-US/docs/Glossary/Cross_Axis) self alignment. |
|
|
33
33
|
|
|
34
34
|
### Special notes
|
|
35
35
|
|
|
36
|
-
Several components in the following examples do not include functional and/or accessibility specifications (for example `.pf-
|
|
36
|
+
Several components in the following examples do not include functional and/or accessibility specifications (for example `.pf-v6-c-select`, `.pf-v6-c-options-menu`). Rather, `.pf-v6-c-toolbar` focuses on functionality and accessibility specifications that apply to it only.
|
|
37
37
|
|
|
38
38
|
**Available [breakpoints](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes) are: `-on-sm`, `-on-md`, `-on-lg`, `-on-xl`, and `-on-2xl`.**
|
|
39
39
|
|
|
@@ -68,8 +68,8 @@ Several components in the following examples do not include functional and/or ac
|
|
|
68
68
|
|
|
69
69
|
| Class | Applied to | Outcome |
|
|
70
70
|
| -- | -- | -- |
|
|
71
|
-
| `.pf-
|
|
72
|
-
| `.pf-
|
|
71
|
+
| `.pf-v6-c-toolbar__item` | `<div>` | Initiates the toolbar component item. **Required** |
|
|
72
|
+
| `.pf-v6-c-toolbar__group` | `<div>` | Initiates the toolbar component group. |
|
|
73
73
|
|
|
74
74
|
### Adjusted group column gap
|
|
75
75
|
|
|
@@ -136,8 +136,8 @@ Several components in the following examples do not include functional and/or ac
|
|
|
136
136
|
|
|
137
137
|
| Class | Applied to | Outcome |
|
|
138
138
|
| -- | -- | -- |
|
|
139
|
-
| `.pf-m-column-gap-[none/sm/md/lg]` | `.pf-
|
|
140
|
-
| `.pf-m-inset-[none/sm/md/lg/xl/2xl]` | `.pf-
|
|
139
|
+
| `.pf-m-column-gap-[none/sm/md/lg]` | `.pf-v6-c-toolbar__group` | Modifies toolbar group child spacing. |
|
|
140
|
+
| `.pf-m-inset-[none/sm/md/lg/xl/2xl]` | `.pf-v6-c-toolbar` | Modifies toolbar horizontal. |
|
|
141
141
|
|
|
142
142
|
### Width control
|
|
143
143
|
|
|
@@ -148,7 +148,7 @@ Several components in the following examples do not include functional and/or ac
|
|
|
148
148
|
<div class="pf-v6-c-toolbar__group">
|
|
149
149
|
<div
|
|
150
150
|
class="pf-v6-c-toolbar__item"
|
|
151
|
-
style="--pf-
|
|
151
|
+
style="--pf-v6-c-toolbar__item--Width: 80px; --pf-v6-c-toolbar__item--Width-on-xl: 10rem"
|
|
152
152
|
>Item</div>
|
|
153
153
|
<div class="pf-v6-c-toolbar__item">Item</div>
|
|
154
154
|
</div>
|
|
@@ -165,8 +165,8 @@ Several components in the following examples do not include functional and/or ac
|
|
|
165
165
|
|
|
166
166
|
| Class | Applied to | Outcome |
|
|
167
167
|
| -- | -- | -- |
|
|
168
|
-
| `--pf-
|
|
169
|
-
| `--pf-
|
|
168
|
+
| `--pf-v6-c-toolbar__item--Width: {width}` | `.pf-v6-c-toolbar__item` | Modifies the width value of a toolbar item at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
169
|
+
| `--pf-v6-c-toolbar__item--MinWidth: {width}` | `.pf-v6-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). |
|
|
170
170
|
|
|
171
171
|
### Group types
|
|
172
172
|
|
|
@@ -271,8 +271,8 @@ Several components in the following examples do not include functional and/or ac
|
|
|
271
271
|
|
|
272
272
|
| Class | Applied to | Outcome |
|
|
273
273
|
| -- | -- | -- |
|
|
274
|
-
| `.pf-m-filter-group` | `.pf-
|
|
275
|
-
| `.pf-m-icon-button-group` | `.pf-
|
|
274
|
+
| `.pf-m-filter-group` | `.pf-v6-c-toolbar__group` | Modifies toolbar group column gap. |
|
|
275
|
+
| `.pf-m-icon-button-group` | `.pf-v6-c-toolbar__group` | Modifies toolbar group column gap. |
|
|
276
276
|
|
|
277
277
|
### Toggle group
|
|
278
278
|
|
|
@@ -290,19 +290,7 @@ Several components in the following examples do not include functional and/or ac
|
|
|
290
290
|
aria-controls="toolbar-toggle-group-example-expandable-content"
|
|
291
291
|
>
|
|
292
292
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
293
|
-
<
|
|
294
|
-
class="pf-v5-svg"
|
|
295
|
-
viewBox="0 0 192 512"
|
|
296
|
-
fill="currentColor"
|
|
297
|
-
aria-hidden="true"
|
|
298
|
-
role="img"
|
|
299
|
-
width="1em"
|
|
300
|
-
height="1em"
|
|
301
|
-
>
|
|
302
|
-
<path
|
|
303
|
-
d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"
|
|
304
|
-
/>
|
|
305
|
-
</svg>
|
|
293
|
+
<i class="fas fa-filter" aria-hidden="true"></i>
|
|
306
294
|
</span>
|
|
307
295
|
</button>
|
|
308
296
|
</div>
|
|
@@ -320,19 +308,7 @@ Several components in the following examples do not include functional and/or ac
|
|
|
320
308
|
id="toolbar-toggle-group-example-search-filter-menu"
|
|
321
309
|
>
|
|
322
310
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
323
|
-
<
|
|
324
|
-
class="pf-v5-svg"
|
|
325
|
-
viewBox="0 0 192 512"
|
|
326
|
-
fill="currentColor"
|
|
327
|
-
aria-hidden="true"
|
|
328
|
-
role="img"
|
|
329
|
-
width="1em"
|
|
330
|
-
height="1em"
|
|
331
|
-
>
|
|
332
|
-
<path
|
|
333
|
-
d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"
|
|
334
|
-
/>
|
|
335
|
-
</svg>
|
|
311
|
+
<i class="fas fa-filter" aria-hidden="true"></i>
|
|
336
312
|
</span>
|
|
337
313
|
<span class="pf-v6-c-menu-toggle__text">Name</span>
|
|
338
314
|
<span class="pf-v6-c-menu-toggle__controls">
|
|
@@ -422,19 +398,7 @@ Several components in the following examples do not include functional and/or ac
|
|
|
422
398
|
aria-controls="toolbar-toggle-group-collapsed-example-expandable-content"
|
|
423
399
|
>
|
|
424
400
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
425
|
-
<
|
|
426
|
-
class="pf-v5-svg"
|
|
427
|
-
viewBox="0 0 192 512"
|
|
428
|
-
fill="currentColor"
|
|
429
|
-
aria-hidden="true"
|
|
430
|
-
role="img"
|
|
431
|
-
width="1em"
|
|
432
|
-
height="1em"
|
|
433
|
-
>
|
|
434
|
-
<path
|
|
435
|
-
d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"
|
|
436
|
-
/>
|
|
437
|
-
</svg>
|
|
401
|
+
<i class="fas fa-filter" aria-hidden="true"></i>
|
|
438
402
|
</span>
|
|
439
403
|
</button>
|
|
440
404
|
</div>
|
|
@@ -458,19 +422,7 @@ Several components in the following examples do not include functional and/or ac
|
|
|
458
422
|
id="toolbar-toggle-group-collapsed-example-search-filter-menu"
|
|
459
423
|
>
|
|
460
424
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
461
|
-
<
|
|
462
|
-
class="pf-v5-svg"
|
|
463
|
-
viewBox="0 0 192 512"
|
|
464
|
-
fill="currentColor"
|
|
465
|
-
aria-hidden="true"
|
|
466
|
-
role="img"
|
|
467
|
-
width="1em"
|
|
468
|
-
height="1em"
|
|
469
|
-
>
|
|
470
|
-
<path
|
|
471
|
-
d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"
|
|
472
|
-
/>
|
|
473
|
-
</svg>
|
|
425
|
+
<i class="fas fa-filter" aria-hidden="true"></i>
|
|
474
426
|
</span>
|
|
475
427
|
<span class="pf-v6-c-menu-toggle__text">Name</span>
|
|
476
428
|
<span class="pf-v6-c-menu-toggle__controls">
|
|
@@ -546,24 +498,24 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
546
498
|
|
|
547
499
|
| Attribute | Applied to | Outcome |
|
|
548
500
|
| -- | -- | -- |
|
|
549
|
-
| `hidden` | `.pf-
|
|
550
|
-
| `aria-expanded="[true/false]"` | `.pf-
|
|
551
|
-
| `aria-controls="[id of expandable content]"` | `.pf-
|
|
552
|
-
| `id="[expandable-content_id]"` | `.pf-
|
|
501
|
+
| `hidden` | `.pf-v6-c-toolbar__item`, `.pf-v6-c-toolbar__group`, `.pf-v6-c-toolbar__toggle`, `.pf-v6-c-toolbar__expandable-content` | Indicates that the toggle group element is hidden. **Required** |
|
|
502
|
+
| `aria-expanded="[true/false]"` | `.pf-v6-c-toolbar__toggle > .pf-v6-c-button` | Indicates that the expandable content is visible/hidden. **Required** |
|
|
503
|
+
| `aria-controls="[id of expandable content]"` | `.pf-v6-c-toolbar__toggle > .pf-v6-c-button` | Identifies the expanded content controlled by the toggle button. **Required** |
|
|
504
|
+
| `id="[expandable-content_id]"` | `.pf-v6-c-toolbar__expandable-content` | Provides a reference for toggle button description. **Required** |
|
|
553
505
|
|
|
554
506
|
### Responsive attributes
|
|
555
507
|
|
|
556
508
|
| Attribute | Applied to | Outcome |
|
|
557
509
|
| -- | -- | -- |
|
|
558
|
-
| `aria-haspopup=true` | `.pf-
|
|
510
|
+
| `aria-haspopup=true` | `.pf-v6-c-toolbar__toggle > .pf-v6-c-button` | When expandable content appears above content (mobile viewport), `aria-haspopup=true` should be applied to indicate that focus should be trapped. **Required** |
|
|
559
511
|
|
|
560
512
|
### Usage
|
|
561
513
|
|
|
562
514
|
| Class | Applied to | Outcome |
|
|
563
515
|
| -- | -- | -- |
|
|
564
|
-
| `.pf-m-[show/hide][-on-[sm/md/lg/xl/2xl]]` | `.pf-
|
|
565
|
-
| `.pf-m-chip-container` | `.pf-
|
|
566
|
-
| `.pf-m-expanded` | `.pf-
|
|
516
|
+
| `.pf-m-[show/hide][-on-[sm/md/lg/xl/2xl]]` | `.pf-v6-c-toolbar__group.pf-m-toggle-group`, `.pf-v6-c-toolbar__expandable-content` | Modifies toolbar element visibility. |
|
|
517
|
+
| `.pf-m-chip-container` | `.pf-v6-c-toolbar__content-section`, `.pf-v6-c-toolbar__group` | Modifies the toolbar element for applied filters layout. |
|
|
518
|
+
| `.pf-m-expanded` | `.pf-v6-c-toolbar__expandable-content`, `.pf-v6-c-toolbar__toggle` | Modifies the component for the expanded state. |
|
|
567
519
|
|
|
568
520
|
### Selected
|
|
569
521
|
|
|
@@ -619,19 +571,7 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
619
571
|
aria-controls="toolbar-selected-filters-toggle-group-collapsed-example-expandable-content"
|
|
620
572
|
>
|
|
621
573
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
622
|
-
<
|
|
623
|
-
class="pf-v5-svg"
|
|
624
|
-
viewBox="0 0 192 512"
|
|
625
|
-
fill="currentColor"
|
|
626
|
-
aria-hidden="true"
|
|
627
|
-
role="img"
|
|
628
|
-
width="1em"
|
|
629
|
-
height="1em"
|
|
630
|
-
>
|
|
631
|
-
<path
|
|
632
|
-
d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"
|
|
633
|
-
/>
|
|
634
|
-
</svg>
|
|
574
|
+
<i class="fas fa-filter" aria-hidden="true"></i>
|
|
635
575
|
</span>
|
|
636
576
|
</button>
|
|
637
577
|
</div>
|
|
@@ -649,19 +589,7 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
649
589
|
id="toolbar-selected-filters-toggle-group-collapsed-example-search-filter-menu"
|
|
650
590
|
>
|
|
651
591
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
652
|
-
<
|
|
653
|
-
class="pf-v5-svg"
|
|
654
|
-
viewBox="0 0 192 512"
|
|
655
|
-
fill="currentColor"
|
|
656
|
-
aria-hidden="true"
|
|
657
|
-
role="img"
|
|
658
|
-
width="1em"
|
|
659
|
-
height="1em"
|
|
660
|
-
>
|
|
661
|
-
<path
|
|
662
|
-
d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"
|
|
663
|
-
/>
|
|
664
|
-
</svg>
|
|
592
|
+
<i class="fas fa-filter" aria-hidden="true"></i>
|
|
665
593
|
</span>
|
|
666
594
|
<span class="pf-v6-c-menu-toggle__text">Name</span>
|
|
667
595
|
<span class="pf-v6-c-menu-toggle__controls">
|
|
@@ -1012,19 +940,7 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
1012
940
|
aria-controls="toolbar-selected-filters-toggle-group-expanded-example-expandable-content"
|
|
1013
941
|
>
|
|
1014
942
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
1015
|
-
<
|
|
1016
|
-
class="pf-v5-svg"
|
|
1017
|
-
viewBox="0 0 192 512"
|
|
1018
|
-
fill="currentColor"
|
|
1019
|
-
aria-hidden="true"
|
|
1020
|
-
role="img"
|
|
1021
|
-
width="1em"
|
|
1022
|
-
height="1em"
|
|
1023
|
-
>
|
|
1024
|
-
<path
|
|
1025
|
-
d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"
|
|
1026
|
-
/>
|
|
1027
|
-
</svg>
|
|
943
|
+
<i class="fas fa-filter" aria-hidden="true"></i>
|
|
1028
944
|
</span>
|
|
1029
945
|
</button>
|
|
1030
946
|
</div>
|
|
@@ -1093,19 +1009,7 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
1093
1009
|
id="toolbar-selected-filters-toggle-group-expanded-example-search-filter-menu"
|
|
1094
1010
|
>
|
|
1095
1011
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
1096
|
-
<
|
|
1097
|
-
class="pf-v5-svg"
|
|
1098
|
-
viewBox="0 0 192 512"
|
|
1099
|
-
fill="currentColor"
|
|
1100
|
-
aria-hidden="true"
|
|
1101
|
-
role="img"
|
|
1102
|
-
width="1em"
|
|
1103
|
-
height="1em"
|
|
1104
|
-
>
|
|
1105
|
-
<path
|
|
1106
|
-
d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"
|
|
1107
|
-
/>
|
|
1108
|
-
</svg>
|
|
1012
|
+
<i class="fas fa-filter" aria-hidden="true"></i>
|
|
1109
1013
|
</span>
|
|
1110
1014
|
<span class="pf-v6-c-menu-toggle__text">Name</span>
|
|
1111
1015
|
<span class="pf-v6-c-menu-toggle__controls">
|
|
@@ -1390,19 +1294,7 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
1390
1294
|
aria-controls="toolbar-selected-filters-example-expandable-content"
|
|
1391
1295
|
>
|
|
1392
1296
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
1393
|
-
<
|
|
1394
|
-
class="pf-v5-svg"
|
|
1395
|
-
viewBox="0 0 192 512"
|
|
1396
|
-
fill="currentColor"
|
|
1397
|
-
aria-hidden="true"
|
|
1398
|
-
role="img"
|
|
1399
|
-
width="1em"
|
|
1400
|
-
height="1em"
|
|
1401
|
-
>
|
|
1402
|
-
<path
|
|
1403
|
-
d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"
|
|
1404
|
-
/>
|
|
1405
|
-
</svg>
|
|
1297
|
+
<i class="fas fa-filter" aria-hidden="true"></i>
|
|
1406
1298
|
</span>
|
|
1407
1299
|
</button>
|
|
1408
1300
|
</div>
|
|
@@ -1721,19 +1613,7 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
1721
1613
|
aria-controls="toolbar-stacked-example-expandable-content"
|
|
1722
1614
|
>
|
|
1723
1615
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
1724
|
-
<
|
|
1725
|
-
class="pf-v5-svg"
|
|
1726
|
-
viewBox="0 0 192 512"
|
|
1727
|
-
fill="currentColor"
|
|
1728
|
-
aria-hidden="true"
|
|
1729
|
-
role="img"
|
|
1730
|
-
width="1em"
|
|
1731
|
-
height="1em"
|
|
1732
|
-
>
|
|
1733
|
-
<path
|
|
1734
|
-
d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"
|
|
1735
|
-
/>
|
|
1736
|
-
</svg>
|
|
1616
|
+
<i class="fas fa-filter" aria-hidden="true"></i>
|
|
1737
1617
|
</span>
|
|
1738
1618
|
</button>
|
|
1739
1619
|
</div>
|
|
@@ -2072,19 +1952,7 @@ The `.pf-m-toggle-group` controls when, and at which breakpoint, filters will be
|
|
|
2072
1952
|
aria-controls="toolbar-stacked-collapsed-example-expandable-content"
|
|
2073
1953
|
>
|
|
2074
1954
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
2075
|
-
<
|
|
2076
|
-
class="pf-v5-svg"
|
|
2077
|
-
viewBox="0 0 192 512"
|
|
2078
|
-
fill="currentColor"
|
|
2079
|
-
aria-hidden="true"
|
|
2080
|
-
role="img"
|
|
2081
|
-
width="1em"
|
|
2082
|
-
height="1em"
|
|
2083
|
-
>
|
|
2084
|
-
<path
|
|
2085
|
-
d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"
|
|
2086
|
-
/>
|
|
2087
|
-
</svg>
|
|
1955
|
+
<i class="fas fa-filter" aria-hidden="true"></i>
|
|
2088
1956
|
</span>
|
|
2089
1957
|
</button>
|
|
2090
1958
|
</div>
|
|
@@ -2374,47 +2242,47 @@ As the toolbar component is a hybrid layout and component, some of its elements
|
|
|
2374
2242
|
|
|
2375
2243
|
| Class | Applied to | Outcome |
|
|
2376
2244
|
| -- | -- | -- |
|
|
2377
|
-
| `.pf-
|
|
2378
|
-
| `.pf-
|
|
2379
|
-
| `.pf-
|
|
2380
|
-
| `.pf-
|
|
2381
|
-
| `.pf-
|
|
2382
|
-
| `.pf-
|
|
2383
|
-
| `.pf-m-sticky` | `.pf-
|
|
2384
|
-
| `.pf-m-full-height` | `.pf-
|
|
2385
|
-
| `.pf-m-static` | `.pf-
|
|
2386
|
-
| `.pf-m-expanded` | `.pf-
|
|
2387
|
-
| `.pf-m-expanded` | `.pf-
|
|
2388
|
-
| `.pf-m-icon-button-group` | `.pf-
|
|
2389
|
-
| `.pf-m-filter-group` | `.pf-
|
|
2390
|
-
| `.pf-m-chip-container` | `.pf-
|
|
2391
|
-
| `.pf-m-overflow-container` | `.pf-
|
|
2392
|
-
| `.pf-m-expanded` | `.pf-
|
|
2393
|
-
| `.pf-m-[wrap/nowrap]` | `.pf-
|
|
2394
|
-
| `.pf-m-align-[start/end]` | `.pf-
|
|
2395
|
-
| `.pf-m-align-items-[stretch/baseline/start/center/end]` | `.pf-
|
|
2396
|
-
| `.pf-m-align-self-[stretch/baseline/start/center/end]` | `.pf-
|
|
2245
|
+
| `.pf-v6-c-toolbar` | `<div>` | Initiates the toolbar component. **Required** |
|
|
2246
|
+
| `.pf-v6-c-toolbar__item` | `<div>` | Initiates a toolbar item. **Required** |
|
|
2247
|
+
| `.pf-v6-c-toolbar__group` | `<div>` | Initiates a toolbar group. |
|
|
2248
|
+
| `.pf-v6-c-toolbar__content` | `<div>` | Initiates a toolbar content container. **Required** |
|
|
2249
|
+
| `.pf-v6-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-v6-c-toolbar__content-section` per `.pf-v6-c-toolbar__content` **Required** |
|
|
2250
|
+
| `.pf-v6-c-toolbar__expandable-content` | `<div>` | Initiates a toolbar expandable content section. |
|
|
2251
|
+
| `.pf-m-sticky` | `.pf-v6-c-toolbar` | Modifies toolbar component to be sticky to the top of its container. |
|
|
2252
|
+
| `.pf-m-full-height` | `.pf-v6-c-toolbar`, `.pf-v6-c-toolbar__content-section`, `.pf-v6-c-toolbar__group` | Modifies toolbar component to full height of its container and removes vertical padding. |
|
|
2253
|
+
| `.pf-m-static` | `.pf-v6-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. |
|
|
2254
|
+
| `.pf-m-expanded` | `.pf-v6-c-toolbar__expandable-content` | Modifies expandable content section for the expanded state. |
|
|
2255
|
+
| `.pf-m-expanded` | `.pf-v6-c-toolbar__item.pf-m-expand-all` | Modifies an expand all button for the expanded state. |
|
|
2256
|
+
| `.pf-m-icon-button-group` | `.pf-v6-c-toolbar__group` | Initiates icon button group spacing. |
|
|
2257
|
+
| `.pf-m-filter-group` | `.pf-v6-c-toolbar__group` | Initiates filter group spacing. |
|
|
2258
|
+
| `.pf-m-chip-container` | `.pf-v6-c-toolbar__content`, `.pf-v6-c-toolbar__content-section`, `.pf-v6-c-toolbar__group` | Modifies the toolbar element for applied filters layout. |
|
|
2259
|
+
| `.pf-m-overflow-container` | `.pf-v6-c-toolbar__item`, `.pf-v6-c-toolbar__group` | Modifies the toolbar element to hide overflow and respond to available space. Used for horizontal navigation. |
|
|
2260
|
+
| `.pf-m-expanded` | `.pf-v6-c-toolbar__expandable-content`, `.pf-v6-c-toolbar__toggle` | Modifies the component for the expanded state. |
|
|
2261
|
+
| `.pf-m-[wrap/nowrap]` | `.pf-v6-c-toolbar__content`, `.pf-v6-c-toolbar__content-section`, `.pf-v6-c-toolbar__group`, `.pf-v6-c-toolbar__item` | Modifies the toolbar element to wrap/not wrap. |
|
|
2262
|
+
| `.pf-m-align-[start/end]` | `.pf-v6-c-toolbar__group`, `.pf-v6-c-toolbar__item` | Modifies toolbar [main axis](https://developer.mozilla.org/en-US/docs/Glossary/Main_Axis) element alignment. |
|
|
2263
|
+
| `.pf-m-align-items-[stretch/baseline/start/center/end]` | `.pf-v6-c-toolbar__content`, `.pf-v6-c-toolbar__content-section`, `.pf-v6-c-toolbar__group`, `.pf-v6-c-toolbar__item` | Modifies toolbar element [cross axis](https://developer.mozilla.org/en-US/docs/Glossary/Cross_Axis) child alignment. |
|
|
2264
|
+
| `.pf-m-align-self-[stretch/baseline/start/center/end]` | `.pf-v6-c-toolbar__group`, `.pf-v6-c-toolbar__item` | Modifies toolbar element [cross axis](https://developer.mozilla.org/en-US/docs/Glossary/Cross_Axis) self alignment. |
|
|
2397
2265
|
|
|
2398
2266
|
### Accessibility
|
|
2399
2267
|
|
|
2400
2268
|
| Attribute | Applied to | Outcome |
|
|
2401
2269
|
| -- | -- | -- |
|
|
2402
|
-
| `hidden` | `.pf-
|
|
2403
|
-
| `aria-expanded="[true/false]"` | `.pf-
|
|
2404
|
-
| `aria-controls="[id of expandable content]"` | `.pf-
|
|
2405
|
-
| `id="[expandable-content_id]"` | `.pf-
|
|
2406
|
-
| `aria-label="Expand all"` | `.pf-
|
|
2407
|
-
| `aria-label="Collapse all"` | `.pf-
|
|
2270
|
+
| `hidden` | `.pf-v6-c-toolbar__item`, `.pf-v6-c-toolbar__group`, `.pf-v6-c-toolbar__toggle`, `.pf-v6-c-toolbar__expandable-content` | Indicates that the toolbar element is hidden. **Required** |
|
|
2271
|
+
| `aria-expanded="[true/false]"` | `.pf-v6-c-toolbar__toggle > .pf-v6-c-button` | Indicates the the expandable content is hidden/visible. **Required** |
|
|
2272
|
+
| `aria-controls="[id of expandable content]"` | `.pf-v6-c-toolbar__toggle > .pf-v6-c-button` | Identifies the expanded content controlled by the toggle button. **Required** |
|
|
2273
|
+
| `id="[expandable-content_id]"` | `.pf-v6-c-toolbar__expandable-content` | Provides a reference for toggle button description. **Required** |
|
|
2274
|
+
| `aria-label="Expand all"` | `.pf-v6-c-toolbar__item.pf-m-expand-all` | Provides an accessible label for the expand all item button. **Required** |
|
|
2275
|
+
| `aria-label="Collapse all"` | `.pf-v6-c-toolbar__item.pf-m-expand-all.pf-m-expanded` | Provides an accessible label for the expand all item button. **Required** |
|
|
2408
2276
|
|
|
2409
2277
|
### Toggle group usage
|
|
2410
2278
|
|
|
2411
2279
|
| Class | Applied to | Outcome |
|
|
2412
2280
|
| -- | -- | -- |
|
|
2413
|
-
| `.pf-m-toggle-group` | `.pf-
|
|
2414
|
-
| `.pf-m-[show/hide]` | `.pf-
|
|
2281
|
+
| `.pf-m-toggle-group` | `.pf-v6-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. |
|
|
2282
|
+
| `.pf-m-[show/hide]` | `.pf-v6-c-toolbar__group.pf-m-toggle-group`, `.pf-v6-c-toolbar__expandable-content` | Modifies toolbar element to hidden. |
|
|
2415
2283
|
|
|
2416
2284
|
### Spacer system
|
|
2417
2285
|
|
|
2418
2286
|
| Class | Applied to | Outcome |
|
|
2419
2287
|
| -- | -- | -- |
|
|
2420
|
-
| `.pf-m-[column/row]-gap-[none/sm/md/lg/xl/2xl]` | `.pf-
|
|
2288
|
+
| `.pf-m-[column/row]-gap-[none/sm/md/lg/xl/2xl]` | `.pf-v6-c-toolbar__group`, `.pf-v6-c-toolbar__item` | Modifies toolbar group or item spacing at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Tooltip
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-tooltip
|
|
5
5
|
---import "./Tooltip.css"
|
|
6
6
|
|
|
7
7
|
## Examples
|
|
@@ -132,11 +132,11 @@ A tooltip is used to provide contextual information for another component on hov
|
|
|
132
132
|
|
|
133
133
|
| Class | Applied to | Outcome |
|
|
134
134
|
| -- | -- | -- |
|
|
135
|
-
| `.pf-
|
|
136
|
-
| `.pf-
|
|
137
|
-
| `.pf-
|
|
138
|
-
| `.pf-m-left{-top/bottom}` | `.pf-
|
|
139
|
-
| `.pf-m-right{-top/bottom}` | `.pf-
|
|
140
|
-
| `.pf-m-top{-left/right}` | `.pf-
|
|
141
|
-
| `.pf-m-bottom{-left/right}` | `.pf-
|
|
142
|
-
| `.pf-m-text-align-left` | `.pf-
|
|
135
|
+
| `.pf-v6-c-tooltip` | `<div>` | Creates a tooltip. Always use with a modifier class that positions the tooltip relative to the element it describes. **Required**|
|
|
136
|
+
| `.pf-v6-c-tooltip__arrow` | `<div>` | Creates an arrow pointing towards the element the tooltip describes. **Required** |
|
|
137
|
+
| `.pf-v6-c-tooltip__content` | `<div>` | Creates the body of the tooltip. **Required** |
|
|
138
|
+
| `.pf-m-left{-top/bottom}` | `.pf-v6-c-tooltip` | Positions the tooltip to the left (or left top/left bottom) of the element. |
|
|
139
|
+
| `.pf-m-right{-top/bottom}` | `.pf-v6-c-tooltip` | Positions the tooltip to the right (or right top/right bottom) of the element. |
|
|
140
|
+
| `.pf-m-top{-left/right}` | `.pf-v6-c-tooltip` | Positions the tooltip to the top (or top left/top right) of the element. |
|
|
141
|
+
| `.pf-m-bottom{-left/right}` | `.pf-v6-c-tooltip` | Positions the tooltip to the bottom (or bottom left/bottom right) of the element. |
|
|
142
|
+
| `.pf-m-text-align-left` | `.pf-v6-c-tooltip__content` | Modifies tooltip content to text align left. |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Tree view
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-tree-view
|
|
5
5
|
---## Examples
|
|
6
6
|
|
|
7
7
|
### Default
|
|
@@ -3440,38 +3440,38 @@ cssPrefix: pf-v5-c-tree-view
|
|
|
3440
3440
|
|
|
3441
3441
|
| Attribute | Applied to | Outcome |
|
|
3442
3442
|
| -- | -- | -- |
|
|
3443
|
-
| `role="tree"` | `.pf-
|
|
3444
|
-
| `role="group"` | `.pf-
|
|
3445
|
-
| `role="treeitem"` | `.pf-
|
|
3446
|
-
| `aria-expanded="false"` | `.pf-
|
|
3447
|
-
| `aria-expanded="true"` | `.pf-
|
|
3448
|
-
| `tabindex="-1"` | `.pf-
|
|
3449
|
-
| `tabindex="0"` | `.pf-
|
|
3450
|
-
| `aria-label="[button label text]"` | `.pf-
|
|
3443
|
+
| `role="tree"` | `.pf-v6-c-tree-view__list` | Identifies the `ul` as a tree widget. **Place on the outermost `ul` only** |
|
|
3444
|
+
| `role="group"` | `.pf-v6-c-tree-view__list` | Identifies the `ul` element as a container of treeitem elements that form a branch of the tree. **Place on all `ul`s except the first `ul`** |
|
|
3445
|
+
| `role="treeitem"` | `.pf-v6-c-tree-view__list-item` | Hides the implicit listitem role of the li element from assistive technologies. |
|
|
3446
|
+
| `aria-expanded="false"` | `.pf-v6-c-tree-view__list-item` | For an expandable item, indicates the parent node is closed, i.e., the descendant elements are not visible. |
|
|
3447
|
+
| `aria-expanded="true"` | `.pf-v6-c-tree-view__list-item.pf-m-expanded` | Indicates the parent node is open, i.e., the descendant elements are visible. |
|
|
3448
|
+
| `tabindex="-1"` | `.pf-v6-c-tree-view__list-item` | Makes the element with the treeitem role focusable without including it in the tab sequence of the page. |
|
|
3449
|
+
| `tabindex="0"` | `.pf-v6-c-tree-view__list-item` | Includes the element with the treeitem role in the tab sequence. Only one treeitem in the tree has tabindex="0". When the user moves focus in the tree, the element included in the tab sequence changes to the element with focus. |
|
|
3450
|
+
| `aria-label="[button label text]"` | `.pf-v6-c-tree-view__action` | Provides an accessible name for the button when an icon is used instead of text. **Required when icon is used with no supporting text** |
|
|
3451
3451
|
|
|
3452
3452
|
### Usage
|
|
3453
3453
|
|
|
3454
3454
|
| Class | Applied | Outcome |
|
|
3455
3455
|
| -- | -- | -- |
|
|
3456
|
-
| `.pf-
|
|
3457
|
-
| `.pf-
|
|
3458
|
-
| `.pf-
|
|
3459
|
-
| `.pf-
|
|
3460
|
-
| `.pf-
|
|
3461
|
-
| `.pf-
|
|
3462
|
-
| `.pf-
|
|
3463
|
-
| `.pf-
|
|
3464
|
-
| `.pf-
|
|
3465
|
-
| `.pf-
|
|
3466
|
-
| `.pf-
|
|
3467
|
-
| `.pf-
|
|
3468
|
-
| `.pf-
|
|
3469
|
-
| `.pf-
|
|
3470
|
-
| `.pf-
|
|
3471
|
-
| `.pf-
|
|
3472
|
-
| `.pf-m-guides` | `.pf-
|
|
3473
|
-
| `.pf-m-compact` | `.pf-
|
|
3474
|
-
| `.pf-m-no-background` | `.pf-
|
|
3475
|
-
| `.pf-m-current` | `.pf-
|
|
3476
|
-
| `.pf-m-selectable` | `.pf-
|
|
3477
|
-
| `.pf-m-truncate` | `.pf-
|
|
3456
|
+
| `.pf-v6-c-tree-view` | `<div>` | Initiates the tree view container. **Required** |
|
|
3457
|
+
| `.pf-v6-c-tree-view__list` | `<ul>` | Initiates a tree view list. **Required** |
|
|
3458
|
+
| `.pf-v6-c-tree-view__list-item` | `<li>` | Initiates a tree view list item. **Required** |
|
|
3459
|
+
| `.pf-v6-c-tree-view__content` | `<div>` | Initiates a tree view node. **Required** |
|
|
3460
|
+
| `.pf-v6-c-tree-view__node` | `<button>`, `<label>` | Initiates a tree view node. **Required** |
|
|
3461
|
+
| `.pf-v6-c-tree-view__node-container` | `<span>` | Initiates a tree view node container. **Required for compact variant** |
|
|
3462
|
+
| `.pf-v6-c-tree-view__node-content` | `<span>` | Initiates a tree view node content container used to stack elements. |
|
|
3463
|
+
| `.pf-v6-c-tree-view__node-count` | `<span>` | Initiates a tree view node count. |
|
|
3464
|
+
| `.pf-v6-c-tree-view__node-toggle` | `<span>`, `<button>` | Initiates a tree view toggle. |
|
|
3465
|
+
| `.pf-v6-c-tree-view__node-toggle-icon` | `<span>` | Initiates a tree view toggle icon. |
|
|
3466
|
+
| `.pf-v6-c-tree-view__node-title` | `<span>` | Initiates a tree view node title. |
|
|
3467
|
+
| `.pf-v6-c-tree-view__node-text` | `<span>`, `<button>` | Initiates tree view text. **Note:** Use a `<button>` when the node is expandable and selectable. |
|
|
3468
|
+
| `.pf-v6-c-tree-view__node-icon` | `<span>` | Initiates a tree view icon. |
|
|
3469
|
+
| `.pf-v6-c-tree-view__node-check` | `<span>` | Initiates a tree view check. |
|
|
3470
|
+
| `.pf-v6-c-tree-view__action` | `<div>` | Initiates a tree view action wrapper. |
|
|
3471
|
+
| `.pf-v6-c-tree-view__search` | `<div>` | Initiates a tree view search wrapper. |
|
|
3472
|
+
| `.pf-m-guides` | `.pf-v6-c-tree-view` | Modifies the tree view to the guides presentation. |
|
|
3473
|
+
| `.pf-m-compact` | `.pf-v6-c-tree-view` | Modifies the tree view to the compact presentation. |
|
|
3474
|
+
| `.pf-m-no-background` | `.pf-v6-c-tree-view.pf-m-compact` | Modifies the tree view compact variant node containers to have a transparent background. |
|
|
3475
|
+
| `.pf-m-current` | `.pf-v6-c-tree-view__node` | Modifies the tree view node to be current. |
|
|
3476
|
+
| `.pf-m-selectable` | `.pf-v6-c-tree-view__node` | For use on nodes that are expandable and selectable, when the default click action on the node selects it instead of expanding it. |
|
|
3477
|
+
| `.pf-m-truncate` | `.pf-v6-c-tree-view`, `.pf-v6-c-tree-view__node-title`, `.pf-v6-c-tree-view__node-text` | Modifies the tree view title or text to truncate. |
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: 'Truncate'
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-truncate
|
|
5
5
|
---import './Truncate.css'
|
|
6
6
|
|
|
7
7
|
## Examples
|
|
8
8
|
|
|
9
9
|
### Notes
|
|
10
10
|
|
|
11
|
-
The truncate component contains two child elements, `.pf-
|
|
11
|
+
The truncate component contains two child elements, `.pf-v6-c-truncate__start` and `.pf-v6-c-truncate__end`. If both `start` and `end` are present within `.pf-v6-c-truncate`, trucation will occur in the middle of the string. If only `.pf-v6-c-truncate__start` is present, truncation will occur at the end of the string. If only `.pf-v6-c-truncate__end` is present, truncation will occur at the beginning of the string. A `.pf-v6-c-popover` will be automatically applied to the PatternFly React implementation. `‎` must be included at the end of string to denote the ending punctuation mark. Otherwise it will occur and the beggining of truncation for a `pf-v6-c-truncate__end` element.
|
|
12
12
|
|
|
13
13
|
### Default
|
|
14
14
|
|
|
15
15
|
```html
|
|
16
|
-
<div class="pf-
|
|
16
|
+
<div class="pf-v6-c-truncate--example">
|
|
17
17
|
<span class="pf-v6-c-truncate">
|
|
18
18
|
<span
|
|
19
19
|
class="pf-v6-c-truncate__start"
|
|
@@ -26,7 +26,7 @@ The truncate component contains two child elements, `.pf-v5-c-truncate__start` a
|
|
|
26
26
|
### Middle
|
|
27
27
|
|
|
28
28
|
```html
|
|
29
|
-
<div class="pf-
|
|
29
|
+
<div class="pf-v6-c-truncate--example">
|
|
30
30
|
<span class="pf-v6-c-truncate">
|
|
31
31
|
<span
|
|
32
32
|
class="pf-v6-c-truncate__start"
|
|
@@ -40,7 +40,7 @@ The truncate component contains two child elements, `.pf-v5-c-truncate__start` a
|
|
|
40
40
|
### Start
|
|
41
41
|
|
|
42
42
|
```html
|
|
43
|
-
<div class="pf-
|
|
43
|
+
<div class="pf-v6-c-truncate--example">
|
|
44
44
|
<span class="pf-v6-c-truncate">
|
|
45
45
|
<span
|
|
46
46
|
class="pf-v6-c-truncate__end"
|
|
@@ -56,6 +56,6 @@ The truncate component contains two child elements, `.pf-v5-c-truncate__start` a
|
|
|
56
56
|
|
|
57
57
|
| Class | Applied | Outcome |
|
|
58
58
|
| -- | -- | -- |
|
|
59
|
-
| `.pf-
|
|
60
|
-
| `.pf-
|
|
61
|
-
| `.pf-
|
|
59
|
+
| `.pf-v6-c-truncate` | `<span>` | Initiates the truncate component. |
|
|
60
|
+
| `.pf-v6-c-truncate__start` | `<span>` | Defines the truncate component starting text. |
|
|
61
|
+
| `.pf-v6-c-truncate__end` | `<span>` | Defines the truncate component ending text. |
|