@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
id: 'Menu toggle'
|
|
3
3
|
section: components
|
|
4
4
|
subsection: menus
|
|
5
|
-
cssPrefix: pf-
|
|
5
|
+
cssPrefix: pf-v6-c-menu-toggle
|
|
6
6
|
---import './MenuToggle.css'
|
|
7
7
|
|
|
8
8
|
## Examples
|
|
@@ -212,20 +212,8 @@ cssPrefix: pf-v5-c-menu-toggle
|
|
|
212
212
|
aria-expanded="false"
|
|
213
213
|
aria-label="Actions"
|
|
214
214
|
>
|
|
215
|
-
<span class="pf-v6-c-menu-
|
|
216
|
-
<
|
|
217
|
-
class="pf-v5-svg"
|
|
218
|
-
viewBox="0 0 192 512"
|
|
219
|
-
fill="currentColor"
|
|
220
|
-
aria-hidden="true"
|
|
221
|
-
role="img"
|
|
222
|
-
width="1em"
|
|
223
|
-
height="1em"
|
|
224
|
-
>
|
|
225
|
-
<path
|
|
226
|
-
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"
|
|
227
|
-
/>
|
|
228
|
-
</svg>
|
|
215
|
+
<span class="pf-v6-c-menu-toggle__icon">
|
|
216
|
+
<i class="fas fa-ellipsis-v" aria-hidden="true"></i>
|
|
229
217
|
</span>
|
|
230
218
|
</button>
|
|
231
219
|
|
|
@@ -235,20 +223,8 @@ cssPrefix: pf-v5-c-menu-toggle
|
|
|
235
223
|
aria-expanded="true"
|
|
236
224
|
aria-label="Actions"
|
|
237
225
|
>
|
|
238
|
-
<span class="pf-v6-c-menu-
|
|
239
|
-
<
|
|
240
|
-
class="pf-v5-svg"
|
|
241
|
-
viewBox="0 0 192 512"
|
|
242
|
-
fill="currentColor"
|
|
243
|
-
aria-hidden="true"
|
|
244
|
-
role="img"
|
|
245
|
-
width="1em"
|
|
246
|
-
height="1em"
|
|
247
|
-
>
|
|
248
|
-
<path
|
|
249
|
-
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"
|
|
250
|
-
/>
|
|
251
|
-
</svg>
|
|
226
|
+
<span class="pf-v6-c-menu-toggle__icon">
|
|
227
|
+
<i class="fas fa-ellipsis-v" aria-hidden="true"></i>
|
|
252
228
|
</span>
|
|
253
229
|
</button>
|
|
254
230
|
|
|
@@ -259,20 +235,8 @@ cssPrefix: pf-v5-c-menu-toggle
|
|
|
259
235
|
disabled
|
|
260
236
|
aria-label="Actions"
|
|
261
237
|
>
|
|
262
|
-
<span class="pf-v6-c-menu-
|
|
263
|
-
<
|
|
264
|
-
class="pf-v5-svg"
|
|
265
|
-
viewBox="0 0 192 512"
|
|
266
|
-
fill="currentColor"
|
|
267
|
-
aria-hidden="true"
|
|
268
|
-
role="img"
|
|
269
|
-
width="1em"
|
|
270
|
-
height="1em"
|
|
271
|
-
>
|
|
272
|
-
<path
|
|
273
|
-
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"
|
|
274
|
-
/>
|
|
275
|
-
</svg>
|
|
238
|
+
<span class="pf-v6-c-menu-toggle__icon">
|
|
239
|
+
<i class="fas fa-ellipsis-v" aria-hidden="true"></i>
|
|
276
240
|
</span>
|
|
277
241
|
</button>
|
|
278
242
|
|
|
@@ -512,20 +476,8 @@ cssPrefix: pf-v5-c-menu-toggle
|
|
|
512
476
|
aria-expanded="false"
|
|
513
477
|
aria-label="Actions"
|
|
514
478
|
>
|
|
515
|
-
<span class="pf-v6-c-menu-
|
|
516
|
-
<
|
|
517
|
-
class="pf-v5-svg"
|
|
518
|
-
viewBox="0 0 192 512"
|
|
519
|
-
fill="currentColor"
|
|
520
|
-
aria-hidden="true"
|
|
521
|
-
role="img"
|
|
522
|
-
width="1em"
|
|
523
|
-
height="1em"
|
|
524
|
-
>
|
|
525
|
-
<path
|
|
526
|
-
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"
|
|
527
|
-
/>
|
|
528
|
-
</svg>
|
|
479
|
+
<span class="pf-v6-c-menu-toggle__icon">
|
|
480
|
+
<i class="fas fa-ellipsis-v" aria-hidden="true"></i>
|
|
529
481
|
</span>
|
|
530
482
|
</button>
|
|
531
483
|
|
|
@@ -535,20 +487,8 @@ cssPrefix: pf-v5-c-menu-toggle
|
|
|
535
487
|
aria-expanded="true"
|
|
536
488
|
aria-label="Actions"
|
|
537
489
|
>
|
|
538
|
-
<span class="pf-v6-c-menu-
|
|
539
|
-
<
|
|
540
|
-
class="pf-v5-svg"
|
|
541
|
-
viewBox="0 0 192 512"
|
|
542
|
-
fill="currentColor"
|
|
543
|
-
aria-hidden="true"
|
|
544
|
-
role="img"
|
|
545
|
-
width="1em"
|
|
546
|
-
height="1em"
|
|
547
|
-
>
|
|
548
|
-
<path
|
|
549
|
-
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"
|
|
550
|
-
/>
|
|
551
|
-
</svg>
|
|
490
|
+
<span class="pf-v6-c-menu-toggle__icon">
|
|
491
|
+
<i class="fas fa-ellipsis-v" aria-hidden="true"></i>
|
|
552
492
|
</span>
|
|
553
493
|
</button>
|
|
554
494
|
|
|
@@ -559,20 +499,8 @@ cssPrefix: pf-v5-c-menu-toggle
|
|
|
559
499
|
disabled
|
|
560
500
|
aria-label="Actions"
|
|
561
501
|
>
|
|
562
|
-
<span class="pf-v6-c-menu-
|
|
563
|
-
<
|
|
564
|
-
class="pf-v5-svg"
|
|
565
|
-
viewBox="0 0 192 512"
|
|
566
|
-
fill="currentColor"
|
|
567
|
-
aria-hidden="true"
|
|
568
|
-
role="img"
|
|
569
|
-
width="1em"
|
|
570
|
-
height="1em"
|
|
571
|
-
>
|
|
572
|
-
<path
|
|
573
|
-
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"
|
|
574
|
-
/>
|
|
575
|
-
</svg>
|
|
502
|
+
<span class="pf-v6-c-menu-toggle__icon">
|
|
503
|
+
<i class="fas fa-ellipsis-v" aria-hidden="true"></i>
|
|
576
504
|
</span>
|
|
577
505
|
</button>
|
|
578
506
|
|
|
@@ -1177,29 +1105,29 @@ cssPrefix: pf-v5-c-menu-toggle
|
|
|
1177
1105
|
|
|
1178
1106
|
| Class | Applied to | Outcome |
|
|
1179
1107
|
| -- | -- | -- |
|
|
1180
|
-
| `aria-expanded="true"` | `.pf-
|
|
1181
|
-
| `aria-expanded="false"` | `.pf-
|
|
1182
|
-
| `aria-label="Descriptive text"` | `.pf-
|
|
1183
|
-
| `disabled` | `.pf-
|
|
1108
|
+
| `aria-expanded="true"` | `.pf-v6-c-menu-toggle`, `.pf-v6-c-menu-toggle__button` | Indicates that the menu toggle component is in the expanded state. |
|
|
1109
|
+
| `aria-expanded="false"` | `.pf-v6-c-menu-toggle`, `.pf-v6-c-menu-toggle__button` | Indicates that the menu toggle component is in the collapsed state. |
|
|
1110
|
+
| `aria-label="Descriptive text"` | `.pf-v6-c-menu-toggle`, `.pf-v6-c-menu-toggle.pf-m-plain` | Gives the menu toggle component an accessible label. Used whenever there is no text visible in the menu toggle. Often, plain modifiers are used when the menu toggle only contains an icon. |
|
|
1111
|
+
| `disabled` | `.pf-v6-c-menu-toggle`, `.pf-v6-c-menu-toggle__button` | Indicates that the menu toggle component is disabled. |
|
|
1184
1112
|
|
|
1185
1113
|
### Usage
|
|
1186
1114
|
|
|
1187
1115
|
| Class | Applied | Outcome |
|
|
1188
1116
|
| -- | -- | -- |
|
|
1189
|
-
| `.pf-
|
|
1190
|
-
| `.pf-
|
|
1191
|
-
| `.pf-
|
|
1192
|
-
| `.pf-
|
|
1193
|
-
| `.pf-
|
|
1194
|
-
| `.pf-
|
|
1195
|
-
| `.pf-
|
|
1196
|
-
| `.pf-m-split-button` | `.pf-
|
|
1197
|
-
| `.pf-m-action` | `.pf-
|
|
1198
|
-
| `.pf-m-disabled` | `.pf-
|
|
1199
|
-
| `.pf-m-primary` | `.pf-
|
|
1200
|
-
| `.pf-m-secondary` | `.pf-
|
|
1201
|
-
| `.pf-m-text` | `.pf-
|
|
1202
|
-
| `.pf-m-plain` | `.pf-
|
|
1203
|
-
| `.pf-m-expanded` | `.pf-
|
|
1204
|
-
| `.pf-m-full-height` | `.pf-
|
|
1205
|
-
| `.pf-m-full-width` | `.pf-
|
|
1117
|
+
| `.pf-v6-c-menu-toggle` | `<button>` | Initiates the menu toggle component. |
|
|
1118
|
+
| `.pf-v6-c-menu-toggle__icon` | `<span>` | Defines the menu toggle component icon/image. |
|
|
1119
|
+
| `.pf-v6-c-menu-toggle__text` | `<span>` | Defines the menu toggle component text. |
|
|
1120
|
+
| `.pf-v6-c-menu-toggle__count` | `<span>` | Defines the menu toggle component count. |
|
|
1121
|
+
| `.pf-v6-c-menu-toggle__controls` | `<span>` | Defines the menu toggle component controls. |
|
|
1122
|
+
| `.pf-v6-c-menu-toggle__toggle-icon` | `<span>` | Defines the menu toggle component toggle/arrow icon. |
|
|
1123
|
+
| `.pf-v6-c-menu-toggle__button` | `<button>` | Initiates the menu toggle button. |
|
|
1124
|
+
| `.pf-m-split-button` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component for the split button variation. |
|
|
1125
|
+
| `.pf-m-action` | `.pf-v6-c-menu-toggle.pf-m-split-button` | Modifies the menu toggle component for the action, split button variation. |
|
|
1126
|
+
| `.pf-m-disabled` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component for the disabled variation. |
|
|
1127
|
+
| `.pf-m-primary` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component for the primary variation. |
|
|
1128
|
+
| `.pf-m-secondary` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component for the secondary variation. |
|
|
1129
|
+
| `.pf-m-text` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component for the text variation. |
|
|
1130
|
+
| `.pf-m-plain` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component for the plain variation. |
|
|
1131
|
+
| `.pf-m-expanded` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component for the expanded state. |
|
|
1132
|
+
| `.pf-m-full-height` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component to full height of parent. |
|
|
1133
|
+
| `.pf-m-full-width` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component to full width of parent. |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Modal
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-modal-box
|
|
5
5
|
---import './ModalBox.css'
|
|
6
6
|
|
|
7
7
|
## Examples
|
|
@@ -470,50 +470,91 @@ cssPrefix: pf-v5-c-modal-box
|
|
|
470
470
|
|
|
471
471
|
```
|
|
472
472
|
|
|
473
|
+
### Danger alert with modifier on modal title
|
|
474
|
+
|
|
475
|
+
The status modifier classes can be applied directly to the modal title element, instead of the parent modal.
|
|
476
|
+
|
|
477
|
+
```html isFullscreen isBeta
|
|
478
|
+
<div
|
|
479
|
+
class="pf-v6-c-modal-box"
|
|
480
|
+
role="dialog"
|
|
481
|
+
aria-modal="true"
|
|
482
|
+
aria-labelledby="danger-alert-title-title"
|
|
483
|
+
aria-describedby="danger-alert-title-description"
|
|
484
|
+
>
|
|
485
|
+
<div class="pf-v6-c-modal-box__close">
|
|
486
|
+
<button class="pf-v6-c-button pf-m-plain" type="button" aria-label="Close">
|
|
487
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
488
|
+
</button>
|
|
489
|
+
</div>
|
|
490
|
+
<header class="pf-v6-c-modal-box__header">
|
|
491
|
+
<h1
|
|
492
|
+
class="pf-v6-c-modal-box__title pf-m-icon pf-m-danger"
|
|
493
|
+
id="danger-alert-title-title"
|
|
494
|
+
>
|
|
495
|
+
<span class="pf-v6-c-modal-box__title-icon">
|
|
496
|
+
<i class="fas fa-fw fa-exclamation-circle" aria-hidden="true"></i>
|
|
497
|
+
</span>
|
|
498
|
+
<span class="pf-v6-u-screen-reader">
|
|
499
|
+
Danger
|
|
500
|
+
alert:
|
|
501
|
+
</span>
|
|
502
|
+
<span class="pf-v6-c-modal-box__title-text">Danger alert modal title</span>
|
|
503
|
+
</h1>
|
|
504
|
+
</header>
|
|
505
|
+
<div
|
|
506
|
+
class="pf-v6-c-modal-box__body"
|
|
507
|
+
id="danger-alert-title-description"
|
|
508
|
+
>To support screen reader user awareness of the dialog text, the dialog text is wrapped in a div that is referenced by aria-describedby.</div>
|
|
509
|
+
<footer class="pf-v6-c-modal-box__footer">Modal footer</footer>
|
|
510
|
+
</div>
|
|
511
|
+
|
|
512
|
+
```
|
|
513
|
+
|
|
473
514
|
## Documentation
|
|
474
515
|
|
|
475
516
|
### Overview
|
|
476
517
|
|
|
477
|
-
A modal box is a generic rectangular container that can be used to build modals. A modal box can have the following sections: header, title, description, body, and footer. With normal use of the modal, a title or body is required. Alternatively, no child elements can be used, and the `.pf-
|
|
518
|
+
A modal box is a generic rectangular container that can be used to build modals. A modal box can have the following sections: header, title, description, body, and footer. With normal use of the modal, a title or body is required. Alternatively, no child elements can be used, and the `.pf-v6-c-modal-box` container will serve as a generic container with no padding for custom modal content. If no `.pf-v6-c-modal-box__title` is used, `aria-label="[title of modal]"` must be provided for `.pf-v6-c-modal-box`.
|
|
478
519
|
|
|
479
520
|
### Accessibility
|
|
480
521
|
|
|
481
522
|
| Attribute | Applies to | Outcome |
|
|
482
523
|
| -- | -- | -- |
|
|
483
|
-
| `role="dialog"` | `.pf-
|
|
484
|
-
| `aria-labelledby="[id value of .pf-
|
|
485
|
-
| `aria-label="[title of modal]"` | `.pf-
|
|
486
|
-
| `aria-describedby="[id value of applicable content]"` | `.pf-
|
|
487
|
-
| `aria-modal="true"` | `.pf-
|
|
488
|
-
| `aria-label="Close"` | `.pf-
|
|
489
|
-
| `aria-hidden="true"` | Parent element containing the page contents when modal is open | Hides main contents of the page from screen readers. The element with `.pf-
|
|
490
|
-
| `form="[id of form in modal body]"` | `.pf-
|
|
491
|
-
| `tabindex="0"` | `.pf-
|
|
524
|
+
| `role="dialog"` | `.pf-v6-c-modal-box` | Identifies the element that serves as the modal container. **Required** |
|
|
525
|
+
| `aria-labelledby="[id value of .pf-v6-c-modal-box__title or custom modal title]"` | `.pf-v6-c-modal-box` | Gives the modal an accessible name by referring to the element that provides the dialog title. **Required when .pf-v6-c-title is present** |
|
|
526
|
+
| `aria-label="[title of modal]"` | `.pf-v6-c-modal-box` | Gives the modal an accessible name. **Required when `.pf-v6-c-modal-box__title` is *not* present** |
|
|
527
|
+
| `aria-describedby="[id value of applicable content]"` | `.pf-v6-c-modal-box` | Gives the modal an accessible description by referring to the modal content that describes the primary message or purpose of the dialog. Not used if there is no static text that describes the modal. |
|
|
528
|
+
| `aria-modal="true"` | `.pf-v6-c-modal-box` | Tells assistive technologies that the windows underneath the current modal are not available for interaction. **Required**|
|
|
529
|
+
| `aria-label="Close"` | `.pf-v6-c-modal-box__close .pf-v6-c-button` | Provides an accessible name for the close button as it uses an icon instead of text. **Required**|
|
|
530
|
+
| `aria-hidden="true"` | Parent element containing the page contents when modal is open | Hides main contents of the page from screen readers. The element with `.pf-v6-c-modal-box` must not be a descendent of the element with `aria-hidden="true"`. For more info see [trapping focus](/accessibility/product-development-guide#trapping-focus). **Required** |
|
|
531
|
+
| `form="[id of form in modal body]"` | `.pf-v6-c-modal-box__footer .pf-v6-c-button` | Associates a submit button in the modal footer with a form in the modal body. For use when the submit button is outside of the `<form>` that the button submits. |
|
|
532
|
+
| `tabindex="0"` | `.pf-v6-c-modal-box__body` | If a modal box body has overflow content that triggers a scrollbar, to ensure that the content is keyboard accessible, the body must include either a focusable element within the scrollable region or the body itself must be focusable by adding `tabindex="0"`. |
|
|
492
533
|
|
|
493
534
|
### Usage
|
|
494
535
|
|
|
495
536
|
| Class | Applied | Outcome |
|
|
496
537
|
| -- | -- | -- |
|
|
497
|
-
| `.pf-
|
|
498
|
-
| `.pf-
|
|
499
|
-
| `.pf-
|
|
500
|
-
| `.pf-
|
|
501
|
-
| `.pf-
|
|
502
|
-
| `.pf-
|
|
503
|
-
| `.pf-
|
|
504
|
-
| `.pf-
|
|
505
|
-
| `.pf-
|
|
506
|
-
| `.pf-
|
|
507
|
-
| `.pf-
|
|
508
|
-
| `.pf-
|
|
509
|
-
| `.pf-m-sm` | `.pf-
|
|
510
|
-
| `.pf-m-md` | `.pf-
|
|
511
|
-
| `.pf-m-lg` | `.pf-
|
|
512
|
-
| `.pf-m-align-top` | `.pf-
|
|
513
|
-
| `.pf-m-icon` | `.pf-
|
|
514
|
-
| `.pf-m-custom` | `.pf-
|
|
515
|
-
| `.pf-m-info` | `.pf-
|
|
516
|
-
| `.pf-m-success` | `.pf-
|
|
517
|
-
| `.pf-m-warning` | `.pf-
|
|
518
|
-
| `.pf-m-danger` | `.pf-
|
|
519
|
-
| `.pf-m-help` | `.pf-
|
|
538
|
+
| `.pf-v6-c-modal-box` | `<div>` | Initiates a modal box. **Required** |
|
|
539
|
+
| `.pf-v6-c-modal-box__close` | `<div>` | Creates a container for the modal box close button. **Required** if there is a close button. |
|
|
540
|
+
| `.pf-v6-c-button.pf-m-plain` | `<button>` | Initiates a modal box close button. |
|
|
541
|
+
| `.pf-v6-c-modal-box__header` | `<header>` | Initiates a modal box header. **Required** if using a `.pf-v6-c-modal-box__title`. |
|
|
542
|
+
| `.pf-v6-c-modal-box__header-main` | `<div>` | Initiates a modal box header main container. **Required** when `pf-v6-c-modal-box__header-help` is used. |
|
|
543
|
+
| `.pf-v6-c-modal-box__header-help` | `<div>` | Initiates the help button container in the modal box header actions. |
|
|
544
|
+
| `.pf-v6-c-modal-box__title` | `<h1>`,`<h2>`,`<h3>`,`<h4>`,`<h5>`,`<h6>`, `<div>` | Initiates a modal box title. **Required** if using a modal description. |
|
|
545
|
+
| `.pf-v6-c-modal-box__title-icon` | `<span>` | Initiates a container for the modal box title icon. |
|
|
546
|
+
| `.pf-v6-c-modal-box__title-text` | `<span>` | Initiates a container for the modal box title text. |
|
|
547
|
+
| `.pf-v6-c-modal-box__description` | `<div>` | Initiates a modal box description. |
|
|
548
|
+
| `.pf-v6-c-modal-box__body` | `<div>` | Initiates a modal box body. |
|
|
549
|
+
| `.pf-v6-c-modal-box__footer` | `<footer>` | Initiates a modal box footer. |
|
|
550
|
+
| `.pf-m-sm` | `.pf-v6-c-modal-box` | Modifies for a small modal box width. |
|
|
551
|
+
| `.pf-m-md` | `.pf-v6-c-modal-box` | Modifies for a medium modal box width. |
|
|
552
|
+
| `.pf-m-lg` | `.pf-v6-c-modal-box` | Modifies for a large modal box width. |
|
|
553
|
+
| `.pf-m-align-top` | `.pf-v6-c-modal-box` | Modifies for top alignment. |
|
|
554
|
+
| `.pf-m-icon` | `.pf-v6-c-modal-box__title` | Modifies the title layout to accommodate an icon. |
|
|
555
|
+
| `.pf-m-custom` | `.pf-v6-c-modal-box`, `.pf-v6-c-modal-box__title` | Modifies for the custom alert state. |
|
|
556
|
+
| `.pf-m-info` | `.pf-v6-c-modal-box`, `.pf-v6-c-modal-box__title` | Modifies for the info alert state. |
|
|
557
|
+
| `.pf-m-success` | `.pf-v6-c-modal-box`, `.pf-v6-c-modal-box__title` | Modifies for the success alert state. |
|
|
558
|
+
| `.pf-m-warning` | `.pf-v6-c-modal-box`, `.pf-v6-c-modal-box__title` | Modifies for the warning alert state. |
|
|
559
|
+
| `.pf-m-danger` | `.pf-v6-c-modal-box`, `.pf-v6-c-modal-box__title` | Modifies for the danger alert state. |
|
|
560
|
+
| `.pf-m-help` | `.pf-v6-c-modal-box__header` | Modifies the modal box header to support the help action |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
id: 'Multiple file upload'
|
|
3
3
|
section: components
|
|
4
4
|
subsection: file-upload
|
|
5
|
-
cssPrefix: pf-
|
|
5
|
+
cssPrefix: pf-v6-c-multiple-file-upload
|
|
6
6
|
---## Examples
|
|
7
7
|
|
|
8
8
|
### Basic
|
|
@@ -708,23 +708,23 @@ cssPrefix: pf-v5-c-multiple-file-upload
|
|
|
708
708
|
|
|
709
709
|
| Class | Applied | Outcome |
|
|
710
710
|
| -- | -- | -- |
|
|
711
|
-
| `.pf-
|
|
712
|
-
| `.pf-
|
|
713
|
-
| `.pf-
|
|
714
|
-
| `.pf-
|
|
715
|
-
| `.pf-
|
|
716
|
-
| `.pf-
|
|
717
|
-
| `.pf-
|
|
718
|
-
| `.pf-
|
|
719
|
-
| `.pf-
|
|
720
|
-
| `.pf-
|
|
721
|
-
| `.pf-
|
|
722
|
-
| `.pf-
|
|
723
|
-
| `.pf-
|
|
724
|
-
| `.pf-
|
|
725
|
-
| `.pf-
|
|
726
|
-
| `.pf-
|
|
727
|
-
| `.pf-
|
|
728
|
-
| `.pf-
|
|
729
|
-
| `.pf-
|
|
730
|
-
| `.pf-
|
|
711
|
+
| `.pf-v6-c-multiple-file-upload` | `<div>` | Initiates the multiple file upload component. **Required** |
|
|
712
|
+
| `.pf-v6-c-multiple-file-upload__main` | `<div>` | Defines the main section. |
|
|
713
|
+
| `.pf-v6-c-multiple-file-upload__title` | `<div>` | Defines the title. |
|
|
714
|
+
| `.pf-v6-c-multiple-file-upload__title-icon` | `<div>` | Defines the title icon. |
|
|
715
|
+
| `.pf-v6-c-multiple-file-upload__title-text` | `<div>` | Defines the title text. |
|
|
716
|
+
| `.pf-v6-c-multiple-file-upload__title-text-separator` | `<div>` | Defines the title text separator. |
|
|
717
|
+
| `.pf-v6-c-multiple-file-upload__upload` | `<div>` | Defines the upload button. |
|
|
718
|
+
| `.pf-v6-c-multiple-file-upload__info` | `<div>` | Defines the info section. |
|
|
719
|
+
| `.pf-v6-c-multiple-file-upload__status` | `<div>` | Defines the status section. |
|
|
720
|
+
| `.pf-v6-c-multiple-file-upload__status-progress` | `<div>` | Defines the status toggle progress. |
|
|
721
|
+
| `.pf-v6-c-multiple-file-upload__status-progress-icon` | `<div>` | Defines the status toggle progress icon. |
|
|
722
|
+
| `.pf-v6-c-multiple-file-upload__status-progress-text` | `<div>` | Defines the status toggle progress text. |
|
|
723
|
+
| `.pf-v6-c-multiple-file-upload__status-list` | `<div>` | Defines the status item list. |
|
|
724
|
+
| `.pf-v6-c-multiple-file-upload__status-item` | `<div>` | Defines a status item. |
|
|
725
|
+
| `.pf-v6-c-multiple-file-upload__status-item-icon` | `<div>` | Defines the status item icon. |
|
|
726
|
+
| `.pf-v6-c-multiple-file-upload__status-item-main` | `<div>` | Defines the status item main progress section. |
|
|
727
|
+
| `.pf-v6-c-multiple-file-upload__status-item-close` | `<div>` | Defines the status item close button. |
|
|
728
|
+
| `.pf-v6-c-multiple-file-upload__status-item-progress` | `<div>` | Defines the status item progress description. |
|
|
729
|
+
| `.pf-v6-c-multiple-file-upload__status-item-progress-text` | `<div>` | Defines the status item progress description text. |
|
|
730
|
+
| `.pf-v6-c-multiple-file-upload__status-item-progress-size` | `<div>` | Defines the status item progress description size. |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
#ws-core-c-navigation-horizontal-in-masthead .pf-
|
|
2
|
-
#ws-core-c-navigation-horizontal-in-masthead-overflow .pf-
|
|
1
|
+
#ws-core-c-navigation-horizontal-in-masthead .pf-v6-c-page__header-nav,
|
|
2
|
+
#ws-core-c-navigation-horizontal-in-masthead-overflow .pf-v6-c-page__header-nav {
|
|
3
3
|
grid-row: 1;
|
|
4
4
|
}
|
|
5
5
|
|
|
@@ -12,8 +12,25 @@
|
|
|
12
12
|
position: relative;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
#ws-core-c-navigation-nav-with-flyout .pf-
|
|
15
|
+
#ws-core-c-navigation-nav-with-flyout .pf-v6-c-menu.pf-m-flyout.pf-m-nav {
|
|
16
16
|
position: absolute;
|
|
17
17
|
inset-block-start: 168px;
|
|
18
18
|
inset-inline-start: 256px;
|
|
19
19
|
}
|
|
20
|
+
|
|
21
|
+
#ws-core-c-navigation-horizontal .ws-preview-html,
|
|
22
|
+
#ws-core-c-navigation-horizontal-overflow .ws-preview-html {
|
|
23
|
+
padding: var(--pf-t--global--spacer--md);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ws-core-c-navigation .ws-preview-html {
|
|
27
|
+
background: var(--pf-v6-c-page__sidebar--BackgroundColor); /* use sidebar background for vertical nav examples */
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[id^="ws-core-c-navigation-horizontal"] .ws-preview-html {
|
|
31
|
+
background: var(--pf-v6-c-masthead--BackgroundColor); /* use masthead background for horizontal nav examples */
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[id^="ws-core-c-navigation-horizontal-subnav"] .ws-preview-html {
|
|
35
|
+
background: transparent; /* reset background for horizontal subnav examples */
|
|
36
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Navigation
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-nav
|
|
5
5
|
---import './Navigation.css'
|
|
6
6
|
|
|
7
7
|
## Examples
|
|
@@ -489,13 +489,12 @@ cssPrefix: pf-v5-c-nav
|
|
|
489
489
|
<nav class="pf-v6-c-nav pf-m-scrollable pf-m-horizontal" aria-label="Global">
|
|
490
490
|
<div class="pf-v6-c-nav__scroll-button">
|
|
491
491
|
<button
|
|
492
|
-
class="pf-v6-c-button pf-m-plain
|
|
492
|
+
class="pf-v6-c-button pf-m-plain"
|
|
493
493
|
type="button"
|
|
494
494
|
aria-label="Scroll start"
|
|
495
|
+
disabled
|
|
495
496
|
>
|
|
496
|
-
<
|
|
497
|
-
<i class="fas fa-angle-left" aria-hidden="true"></i>
|
|
498
|
-
</span>
|
|
497
|
+
<i class="fas fa-angle-left" aria-hidden="true"></i>
|
|
499
498
|
</button>
|
|
500
499
|
</div>
|
|
501
500
|
<ul class="pf-v6-c-nav__list" role="list">
|
|
@@ -521,13 +520,11 @@ cssPrefix: pf-v5-c-nav
|
|
|
521
520
|
</ul>
|
|
522
521
|
<div class="pf-v6-c-nav__scroll-button">
|
|
523
522
|
<button
|
|
524
|
-
class="pf-v6-c-button pf-m-plain
|
|
523
|
+
class="pf-v6-c-button pf-m-plain"
|
|
525
524
|
type="button"
|
|
526
525
|
aria-label="Scroll end"
|
|
527
526
|
>
|
|
528
|
-
<
|
|
529
|
-
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
530
|
-
</span>
|
|
527
|
+
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
531
528
|
</button>
|
|
532
529
|
</div>
|
|
533
530
|
</nav>
|
|
@@ -566,13 +563,12 @@ cssPrefix: pf-v5-c-nav
|
|
|
566
563
|
>
|
|
567
564
|
<div class="pf-v6-c-nav__scroll-button">
|
|
568
565
|
<button
|
|
569
|
-
class="pf-v6-c-button pf-m-plain
|
|
566
|
+
class="pf-v6-c-button pf-m-plain"
|
|
570
567
|
type="button"
|
|
571
568
|
aria-label="Scroll start"
|
|
569
|
+
disabled
|
|
572
570
|
>
|
|
573
|
-
<
|
|
574
|
-
<i class="fas fa-angle-left" aria-hidden="true"></i>
|
|
575
|
-
</span>
|
|
571
|
+
<i class="fas fa-angle-left" aria-hidden="true"></i>
|
|
576
572
|
</button>
|
|
577
573
|
</div>
|
|
578
574
|
<ul class="pf-v6-c-nav__list" role="list">
|
|
@@ -598,13 +594,11 @@ cssPrefix: pf-v5-c-nav
|
|
|
598
594
|
</ul>
|
|
599
595
|
<div class="pf-v6-c-nav__scroll-button">
|
|
600
596
|
<button
|
|
601
|
-
class="pf-v6-c-button pf-m-plain
|
|
597
|
+
class="pf-v6-c-button pf-m-plain"
|
|
602
598
|
type="button"
|
|
603
599
|
aria-label="Scroll end"
|
|
604
600
|
>
|
|
605
|
-
<
|
|
606
|
-
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
607
|
-
</span>
|
|
601
|
+
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
608
602
|
</button>
|
|
609
603
|
</div>
|
|
610
604
|
</nav>
|
|
@@ -1251,7 +1245,7 @@ cssPrefix: pf-v5-c-nav
|
|
|
1251
1245
|
<div class="pf-v6-c-menu pf-m-drilldown pf-m-drilled-in">
|
|
1252
1246
|
<div
|
|
1253
1247
|
class="pf-v6-c-menu__content"
|
|
1254
|
-
style="--pf-
|
|
1248
|
+
style="--pf-v6-c-menu__content--Height: 228px;"
|
|
1255
1249
|
>
|
|
1256
1250
|
<ul class="pf-v6-c-menu__list" role="menu">
|
|
1257
1251
|
<li class="pf-v6-c-menu__list-item" role="none">
|
|
@@ -1783,7 +1777,7 @@ cssPrefix: pf-v5-c-nav
|
|
|
1783
1777
|
<div class="pf-v6-c-menu pf-m-drilldown pf-m-drilled-in">
|
|
1784
1778
|
<div
|
|
1785
1779
|
class="pf-v6-c-menu__content"
|
|
1786
|
-
style="--pf-
|
|
1780
|
+
style="--pf-v6-c-menu__content--Height: 284px;"
|
|
1787
1781
|
>
|
|
1788
1782
|
<ul class="pf-v6-c-menu__list" role="menu">
|
|
1789
1783
|
<li class="pf-v6-c-menu__list-item" role="none">
|
|
@@ -2313,7 +2307,7 @@ cssPrefix: pf-v5-c-nav
|
|
|
2313
2307
|
|
|
2314
2308
|
### Nav link text
|
|
2315
2309
|
|
|
2316
|
-
When using anything other than a text node for the link text, wrap the link text in an element with `.pf-
|
|
2310
|
+
When using anything other than a text node for the link text, wrap the link text in an element with `.pf-v6-c-nav__link-text`.
|
|
2317
2311
|
|
|
2318
2312
|
```html isBeta
|
|
2319
2313
|
<nav class="pf-v6-c-nav" aria-label="Global">
|
|
@@ -2415,43 +2409,43 @@ When using anything other than a text node for the link text, wrap the link text
|
|
|
2415
2409
|
|
|
2416
2410
|
The navigation system relies on several different sub-components:
|
|
2417
2411
|
|
|
2418
|
-
* `.pf-
|
|
2412
|
+
* `.pf-v6-c-nav__list` - default navigation list. It is the basis for both default and expandable, vertical navigation.
|
|
2419
2413
|
|
|
2420
2414
|
### Accessibility
|
|
2421
2415
|
|
|
2422
2416
|
| Attribute | Applied to | Outcome |
|
|
2423
2417
|
| -- | -- | -- |
|
|
2424
|
-
| `aria-label="[landmark description]"` | `.pf-
|
|
2425
|
-
| `aria-label="[section title]"` | `.pf-
|
|
2426
|
-
| `aria-labelledby="[id value of link describing subnav]"` | `.pf-
|
|
2427
|
-
| `aria-expanded="false"` | `.pf-
|
|
2428
|
-
| `aria-expanded="true"` | `.pf-
|
|
2429
|
-
| `hidden` | `.pf-
|
|
2430
|
-
| `disabled` | `.pf-
|
|
2431
|
-
| `aria-current="page"` | `.pf-
|
|
2432
|
-
| `aria-haspopup="true"` | `.pf-
|
|
2418
|
+
| `aria-label="[landmark description]"` | `.pf-v6-c-nav` | Describes `<nav>` landmark. |
|
|
2419
|
+
| `aria-label="[section title]"` | `.pf-v6-c-nav__section` | Describes a nav `<section>`, where a `.pf-v6-c-nav__section-title` is not present. |
|
|
2420
|
+
| `aria-labelledby="[id value of link describing subnav]"` | `.pf-v6-c-nav__subnav` | Gives the subnav `<section>` landmark an accessible name by referring to the element that provides the subnav `<section>` landmark title. |
|
|
2421
|
+
| `aria-expanded="false"` | `.pf-v6-c-nav__link` | Indicates that subnav section is hidden. |
|
|
2422
|
+
| `aria-expanded="true"` | `.pf-v6-c-nav__link` | Indicates that subnav section is visible. |
|
|
2423
|
+
| `hidden` | `.pf-v6-c-nav__subnav` | Indicates that the subnav section is hidden so that it isn't visible in the UI and isn't accessed by assistive technologies. |
|
|
2424
|
+
| `disabled` | `.pf-v6-c-nav__scroll-button` | Indicates that a scroll button is disabled, when at the first or last item of a list. **Required when disabled** |
|
|
2425
|
+
| `aria-current="page"` | `.pf-v6-c-nav__link` | Indicates the current page link. Can only occur once on page. |
|
|
2426
|
+
| `aria-haspopup="true"` | `.pf-v6-c-nav__link` | Declares that a nav item has a submenu. |
|
|
2433
2427
|
|
|
2434
2428
|
### Usage
|
|
2435
2429
|
|
|
2436
2430
|
| Class | Applied to | Outcome |
|
|
2437
2431
|
| -- | -- | -- |
|
|
2438
|
-
| `.pf-
|
|
2439
|
-
| `.pf-
|
|
2440
|
-
| `.pf-
|
|
2441
|
-
| `.pf-
|
|
2442
|
-
| `.pf-
|
|
2443
|
-
| `.pf-
|
|
2444
|
-
| `.pf-
|
|
2445
|
-
| `.pf-
|
|
2446
|
-
| `.pf-
|
|
2447
|
-
| `.pf-
|
|
2448
|
-
| `.pf-
|
|
2449
|
-
| `.pf-m-horizontal` | `.pf-
|
|
2450
|
-
| `.pf-m-horizontal-subnav` | `.pf-
|
|
2451
|
-
| `.pf-m-full-width` | `.pf-
|
|
2452
|
-
| `.pf-m-flyout` | `.pf-
|
|
2453
|
-
| `.pf-m-scrollable` | `.pf-
|
|
2454
|
-
| `.pf-m-expandable` | `.pf-
|
|
2455
|
-
| `.pf-m-expanded` | `.pf-
|
|
2456
|
-
| `.pf-m-current` | `.pf-
|
|
2457
|
-
| `.pf-m-hover` | `.pf-
|
|
2432
|
+
| `.pf-v6-c-nav` | `<nav>` | Initiates a primary nav element. |
|
|
2433
|
+
| `.pf-v6-c-nav__subnav` | `<section>` | Initiates a subnav section. |
|
|
2434
|
+
| `.pf-v6-c-nav__list` | `<ul>` | Initiates nav list. |
|
|
2435
|
+
| `.pf-v6-c-nav__item` | `<li>` | Initiates nav list item. |
|
|
2436
|
+
| `.pf-v6-c-nav__link` | `<a>` | Initiates nav list link. |
|
|
2437
|
+
| `.pf-v6-c-nav__link-text` | `<span>` | Initiates nav list link text. |
|
|
2438
|
+
| `.pf-v6-c-nav__section` | `<section>` | Initiates a nav section element. |
|
|
2439
|
+
| `.pf-v6-c-nav__section-title` | `<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>` | Initiates a nav section title. |
|
|
2440
|
+
| `.pf-v6-c-nav__toggle` | `<span>` | Initiates the nav toggle wrapper. |
|
|
2441
|
+
| `.pf-v6-c-nav__toggle-icon` | `<span>` | Initiates a nav toggle icon wrapper. |
|
|
2442
|
+
| `.pf-v6-c-nav__scroll-button` | `<button>` | Initiates a nav scroll button. **Required for horizontal navs** |
|
|
2443
|
+
| `.pf-m-horizontal` | `.pf-v6-c-nav` | Modifies nav for the horizontal variation. |
|
|
2444
|
+
| `.pf-m-horizontal-subnav` | `.pf-v6-c-nav` | Modifies nav for the horizontal subnav variation. |
|
|
2445
|
+
| `.pf-m-full-width` | `.pf-v6-c-nav` | Modifies nav for to full width of parent. |
|
|
2446
|
+
| `.pf-m-flyout` | `.pf-v6-c-nav__item` | Modifies nav item for the flyout variation. |
|
|
2447
|
+
| `.pf-m-scrollable` | `.pf-v6-c-nav` | Modifies nav for the scrollable state. |
|
|
2448
|
+
| `.pf-m-expandable` | `.pf-v6-c-nav__item` | Modifies for the expandable state. |
|
|
2449
|
+
| `.pf-m-expanded` | `.pf-v6-c-nav__item` | Modifies for the expanded state. |
|
|
2450
|
+
| `.pf-m-current` | `.pf-v6-c-nav__link` | Modifies for the current state. |
|
|
2451
|
+
| `.pf-m-hover` | `.pf-v6-c-nav__link` | Modifies for the hover state. |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Notification badge
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-notification-badge
|
|
5
5
|
---## Examples
|
|
6
6
|
|
|
7
7
|
### Basic
|
|
@@ -204,7 +204,7 @@ cssPrefix: pf-v5-c-notification-badge
|
|
|
204
204
|
|
|
205
205
|
### Overview
|
|
206
206
|
|
|
207
|
-
Always add a modifier class to indicate read, unread, or attention state. Never use the class `.pf-
|
|
207
|
+
Always add a modifier class to indicate read, unread, or attention state. Never use the class `.pf-v6-c-notification-badge` on its own.
|
|
208
208
|
|
|
209
209
|
### Accessibility
|
|
210
210
|
|
|
@@ -214,9 +214,9 @@ Be sure that the component associated with this indicator handles screen reader
|
|
|
214
214
|
|
|
215
215
|
| Class | Applied to | Outcome |
|
|
216
216
|
| -- | -- | -- |
|
|
217
|
-
| `.pf-
|
|
218
|
-
| `.pf-
|
|
219
|
-
| `.pf-m-read` | `.pf-
|
|
220
|
-
| `.pf-m-unread` | `.pf-
|
|
221
|
-
| `.pf-m-attention` | `.pf-
|
|
222
|
-
| `.pf-m-expanded` | `.pf-
|
|
217
|
+
| `.pf-v6-c-notification-badge` | `<div>` | Initiates a notification badge. **Always use it with a modifier class.** |
|
|
218
|
+
| `.pf-v6-c-notification-badge__count` | `<span>` | Initiates a notification badge count. |
|
|
219
|
+
| `.pf-m-read` | `.pf-v6-c-notification-badge` | Applies read notification badge styling. |
|
|
220
|
+
| `.pf-m-unread` | `.pf-v6-c-notification-badge` | Applies unread notification badge styling. |
|
|
221
|
+
| `.pf-m-attention` | `.pf-v6-c-notification-badge` | Applies attention notification badge styling. |
|
|
222
|
+
| `.pf-m-expanded` | `.pf-v6-c-notification-badge` | Applies expanded notification badge styling. |
|