@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,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Notification drawer
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-notification-drawer
|
|
5
5
|
---## Examples
|
|
6
6
|
|
|
7
7
|
### Basic
|
|
@@ -3043,43 +3043,43 @@ cssPrefix: pf-v5-c-notification-drawer
|
|
|
3043
3043
|
|
|
3044
3044
|
| Attribute | Applied to | Outcome |
|
|
3045
3045
|
| -- | -- | -- |
|
|
3046
|
-
| `aria-expanded="false"` | `.pf-
|
|
3047
|
-
| `aria-expanded="true"` | `.pf-
|
|
3048
|
-
| `hidden` | `.pf-
|
|
3049
|
-
| `tabindex="0"` | `.pf-
|
|
3050
|
-
| `aria-hidden="true"` | `.pf-
|
|
3046
|
+
| `aria-expanded="false"` | `.pf-v6-c-notification-drawer__group-toggle` | Indicates that the group notification list is hidden. |
|
|
3047
|
+
| `aria-expanded="true"` | `.pf-v6-c-notification-drawer__group-toggle` | Indicates that the group notification list is visible. |
|
|
3048
|
+
| `hidden` | `.pf-v6-c-notification-drawer__list` | Indicates that the group notification list is hidden so that it isn't visible in the UI and isn't accessed by assistive technologies. |
|
|
3049
|
+
| `tabindex="0"` | `.pf-v6-c-notification-drawer__list-item.pf-m-hoverable` | Inserts the hoverable list item into the tab order of the page so that it is focusable. |
|
|
3050
|
+
| `aria-hidden="true"` | `.pf-v6-c-notification-drawer__group-toggle-icon > *`, `.pf-v6-c-notification-drawer__list-item-header-icon > *` | Hides icon for assistive technologies. |
|
|
3051
3051
|
|
|
3052
3052
|
### Usage
|
|
3053
3053
|
|
|
3054
3054
|
| Class | Applied to | Outcome |
|
|
3055
3055
|
| -- | -- | -- |
|
|
3056
|
-
| `.pf-
|
|
3057
|
-
| `.pf-
|
|
3058
|
-
| `.pf-
|
|
3059
|
-
| `.pf-
|
|
3060
|
-
| `.pf-
|
|
3061
|
-
| `.pf-
|
|
3062
|
-
| `.pf-
|
|
3063
|
-
| `.pf-
|
|
3064
|
-
| `.pf-
|
|
3065
|
-
| `.pf-
|
|
3066
|
-
| `.pf-
|
|
3067
|
-
| `.pf-
|
|
3068
|
-
| `.pf-
|
|
3069
|
-
| `.pf-
|
|
3070
|
-
| `.pf-
|
|
3071
|
-
| `.pf-
|
|
3072
|
-
| `.pf-
|
|
3073
|
-
| `.pf-
|
|
3074
|
-
| `.pf-
|
|
3075
|
-
| `.pf-
|
|
3076
|
-
| `.pf-
|
|
3077
|
-
| `.pf-m-custom` | `.pf-
|
|
3078
|
-
| `.pf-m-info` | `.pf-
|
|
3079
|
-
| `.pf-m-warning` | `.pf-
|
|
3080
|
-
| `.pf-m-danger` | `.pf-
|
|
3081
|
-
| `.pf-m-success` | `.pf-
|
|
3082
|
-
| `.pf-m-read` | `.pf-
|
|
3083
|
-
| `.pf-m-hoverable` | `.pf-
|
|
3084
|
-
| `.pf-m-expanded` | `.pf-
|
|
3085
|
-
| `.pf-m-truncate` | `.pf-
|
|
3056
|
+
| `.pf-v6-c-notification-drawer` | `<div>` | Initiates the notification drawer. **Required** |
|
|
3057
|
+
| `.pf-v6-c-notification-drawer__header` | `<div>` | Initiates the notification drawer header. **Required** |
|
|
3058
|
+
| `.pf-v6-c-notification-drawer__header-title` | `<h1>` | Initiates the notification drawer header title. **Required** |
|
|
3059
|
+
| `.pf-v6-c-notification-drawer__header-status` | `<span>` | Initiates the notification drawer header status. |
|
|
3060
|
+
| `.pf-v6-c-notification-drawer__header-action` | `<div>` | Initiates the notification drawer header action. |
|
|
3061
|
+
| `.pf-v6-c-notification-drawer__header-action-close` | `<div>` | Initiates the notification drawer header action button. |
|
|
3062
|
+
| `.pf-v6-c-notification-drawer__body` | `<div>` | Initiates the notification drawer body. **Required** |
|
|
3063
|
+
| `.pf-v6-c-notification-drawer__list` | `<ul>` | Initiates a notification list. **Required** |
|
|
3064
|
+
| `.pf-v6-c-notification-drawer__list-item` | `<li>` | Initiates a notification list item. Always use with a state modifier class. **Required** |
|
|
3065
|
+
| `.pf-v6-c-notification-drawer__list-item-header` | `<div>` | Initiates a notification list item header. **Required** |
|
|
3066
|
+
| `.pf-v6-c-notification-drawer__list-item-header-icon` | `<span>` | Initiates a notification list item header icon. **Required** |
|
|
3067
|
+
| `.pf-v6-c-notification-drawer__list-item-header-title` | `<h2>` | Initiates a notification list item header title. **Required** |
|
|
3068
|
+
| `.pf-v6-c-notification-drawer__list-item-action` | `<div>` | Initiates a notification list item action. |
|
|
3069
|
+
| `.pf-v6-c-notification-drawer__list-item-description` | `<div>` | Initiates a notification list item description. **Required** |
|
|
3070
|
+
| `.pf-v6-c-notification-drawer__list-item-timestamp` | `<div>` | Initiates a notification list item timestamp. **Required** |
|
|
3071
|
+
| `.pf-v6-c-notification-drawer__group-list` | `<div>` | Initiates a notification group list. **Required when notifications are grouped** |
|
|
3072
|
+
| `.pf-v6-c-notification-drawer__group` | `<section>` | Initiates a notification group. **Required** |
|
|
3073
|
+
| `.pf-v6-c-notification-drawer__group-toggle` | `<button>` | Initiates a notification group toggle. **Required** |
|
|
3074
|
+
| `.pf-v6-c-notification-drawer__group-title` | `<div>` | Initiates a notification group toggle title. **Required** |
|
|
3075
|
+
| `.pf-v6-c-notification-drawer__group-count` | `<div>` | Initiates a notification group toggle count. |
|
|
3076
|
+
| `.pf-v6-c-notification-drawer__group-icon` | `<span>` | Initiates a notification group toggle icon. **Required** |
|
|
3077
|
+
| `.pf-m-custom` | `.pf-v6-c-notification-drawer__list-item` | Modifies a notification list item for the custom state. |
|
|
3078
|
+
| `.pf-m-info` | `.pf-v6-c-notification-drawer__list-item` | Modifies a notification list item for the info state. |
|
|
3079
|
+
| `.pf-m-warning` | `.pf-v6-c-notification-drawer__list-item` | Modifies a notification list item for the warning state. |
|
|
3080
|
+
| `.pf-m-danger` | `.pf-v6-c-notification-drawer__list-item` | Modifies a notification list item for the danger state. |
|
|
3081
|
+
| `.pf-m-success` | `.pf-v6-c-notification-drawer__list-item` | Modifies a notification list item for the success state. |
|
|
3082
|
+
| `.pf-m-read` | `.pf-v6-c-notification-drawer__list-item` | Modifies a notification list item for the read state. |
|
|
3083
|
+
| `.pf-m-hoverable` | `.pf-v6-c-notification-drawer__list-item` | Modifies a notification list item hover states to inidicate it is clickable. |
|
|
3084
|
+
| `.pf-m-expanded` | `.pf-v6-c-notification-drawer__group` | Modifies a notification group for the expanded state. |
|
|
3085
|
+
| `.pf-m-truncate` | `.pf-v6-c-notification-drawer__list-item-header-title` | Modifies the title to display a single line and truncate any overflow text with ellipses. **Note:** you can specify the max number of lines to show by setting the `--pf-v6-c-notification-drawer__list-item-header-title--max-lines` (the default value is `1`). |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Number input
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-number-input
|
|
5
5
|
---## Examples
|
|
6
6
|
|
|
7
7
|
### Default
|
|
@@ -355,7 +355,7 @@ cssPrefix: pf-v5-c-number-input
|
|
|
355
355
|
```html
|
|
356
356
|
<div
|
|
357
357
|
class="pf-v6-c-number-input"
|
|
358
|
-
style="--pf-
|
|
358
|
+
style="--pf-v6-c-number-input--c-form-control--width-chars: 1;"
|
|
359
359
|
>
|
|
360
360
|
<div class="pf-v6-c-input-group">
|
|
361
361
|
<div class="pf-v6-c-input-group__item">
|
|
@@ -396,7 +396,7 @@ cssPrefix: pf-v5-c-number-input
|
|
|
396
396
|
<br />
|
|
397
397
|
<div
|
|
398
398
|
class="pf-v6-c-number-input"
|
|
399
|
-
style="--pf-
|
|
399
|
+
style="--pf-v6-c-number-input--c-form-control--width-chars: 10;"
|
|
400
400
|
>
|
|
401
401
|
<div class="pf-v6-c-input-group">
|
|
402
402
|
<div class="pf-v6-c-input-group__item">
|
|
@@ -437,7 +437,7 @@ cssPrefix: pf-v5-c-number-input
|
|
|
437
437
|
<br />
|
|
438
438
|
<div
|
|
439
439
|
class="pf-v6-c-number-input"
|
|
440
|
-
style="--pf-
|
|
440
|
+
style="--pf-v6-c-number-input--c-form-control--width-chars: 5;"
|
|
441
441
|
>
|
|
442
442
|
<div class="pf-v6-c-input-group">
|
|
443
443
|
<div class="pf-v6-c-input-group__item">
|
|
@@ -478,7 +478,7 @@ cssPrefix: pf-v5-c-number-input
|
|
|
478
478
|
<br />
|
|
479
479
|
<div
|
|
480
480
|
class="pf-v6-c-number-input"
|
|
481
|
-
style="--pf-
|
|
481
|
+
style="--pf-v6-c-number-input--c-form-control--width-chars: 5;"
|
|
482
482
|
>
|
|
483
483
|
<div class="pf-v6-c-input-group">
|
|
484
484
|
<div class="pf-v6-c-input-group__item">
|
|
@@ -524,16 +524,16 @@ cssPrefix: pf-v5-c-number-input
|
|
|
524
524
|
|
|
525
525
|
| Attribute | Applied to | Outcome |
|
|
526
526
|
| -- | -- | -- |
|
|
527
|
-
| `aria-label="Plus"`, `aria-label="Minus"` | `.pf-
|
|
528
|
-
| `min` | `input[type="number"].pf-
|
|
529
|
-
| `max` | `input[type="number"].pf-
|
|
527
|
+
| `aria-label="Plus"`, `aria-label="Minus"` | `.pf-v6-c-button.pf-m-control` | Provides an accessible name for the outer plus/minus buttons. **Required** |
|
|
528
|
+
| `min` | `input[type="number"].pf-v6-c-form-control` | Provides an optional minimum value for the input. |
|
|
529
|
+
| `max` | `input[type="number"].pf-v6-c-form-control` | Provides an optional maximum value for the input. |
|
|
530
530
|
|
|
531
531
|
### Usage
|
|
532
532
|
|
|
533
533
|
| Class | Applied to | Outcome |
|
|
534
534
|
| -- | -- | -- |
|
|
535
|
-
| `.pf-
|
|
536
|
-
| `.pf-
|
|
537
|
-
| `.pf-
|
|
538
|
-
| `.pf-m-status` | `.pf-
|
|
539
|
-
| `--pf-
|
|
535
|
+
| `.pf-v6-c-number-input` | `<div>` | Initiates the number input component. |
|
|
536
|
+
| `.pf-v6-c-number-input__icon` | `<span>` | Initiates the number input icon. |
|
|
537
|
+
| `.pf-v6-c-number-input__unit` | `<span>` | Initiates the number input unit. |
|
|
538
|
+
| `.pf-m-status` | `.pf-v6-c-number-input` | Modifies the width to create enough space for a status icon to be included in the form control portion of the number input. **Required** if a status icon may be shown, even if the icon is not currently shown. |
|
|
539
|
+
| `--pf-v6-c-number-input--c-form-control--width-chars` | `.pf-v6-c-number-input` | Specifies the number of characters to show in the input. |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
id: Options menu
|
|
3
3
|
section: components
|
|
4
4
|
subsection: menus
|
|
5
|
-
cssPrefix: pf-
|
|
5
|
+
cssPrefix: pf-v6-c-options-menu
|
|
6
6
|
deprecated: true
|
|
7
7
|
---import './options-menu.css'
|
|
8
8
|
|
|
@@ -985,30 +985,30 @@ deprecated: true
|
|
|
985
985
|
|
|
986
986
|
| Attribute | Applied to | Outcome |
|
|
987
987
|
| -- | -- | -- |
|
|
988
|
-
| `role` or `aria` | `pf-
|
|
989
|
-
| `disabled` | `.pf-
|
|
988
|
+
| `role` or `aria` | `pf-v6-c-options-menu` | accessibility notes. |
|
|
989
|
+
| `disabled` | `.pf-v6-c-options-menu__toggle`, `.pf-v6-c-options-menu__toggle-button` | Disables the options menu toggle and toggle button and removes it from keyboard focus. |
|
|
990
990
|
*Note:* The attribute `aria-selected="true"` should be set programmatically to the selected item(s).
|
|
991
991
|
|
|
992
992
|
### Usage
|
|
993
993
|
|
|
994
994
|
| Class | Applied to | Outcome |
|
|
995
995
|
| -- | -- | -- |
|
|
996
|
-
| `.pf-
|
|
997
|
-
| `.pf-
|
|
998
|
-
| `.pf-
|
|
999
|
-
| `.pf-
|
|
1000
|
-
| `.pf-
|
|
1001
|
-
| `.pf-
|
|
1002
|
-
| `.pf-
|
|
1003
|
-
| `.pf-
|
|
1004
|
-
| `.pf-
|
|
1005
|
-
| `.pf-
|
|
1006
|
-
| `.pf-m-top` | `.pf-
|
|
1007
|
-
| `.pf-m-align-right` | `.pf-
|
|
1008
|
-
| `.pf-m-expanded` | `.pf-
|
|
1009
|
-
| `.pf-m-static` | `.pf-
|
|
1010
|
-
| `.pf-m-plain` | `.pf-
|
|
1011
|
-
| `.pf-m-disabled` | `.pf-
|
|
1012
|
-
| `.pf-m-text` | `.pf-
|
|
1013
|
-
| `.pf-m-active` | `.pf-
|
|
1014
|
-
| `.pf-m-selected` | `.pf-
|
|
996
|
+
| `.pf-v6-c-options-menu` | `<div>` | Initiates a custom options menu. |
|
|
997
|
+
| `.pf-v6-c-options-menu__toggle` | `<button>` | Initiates a custom toggle. |
|
|
998
|
+
| `.pf-v6-c-options-menu__toggle-text` | `<span>` | Initiates a wrapper for toggle text.
|
|
999
|
+
| `.pf-v6-c-options-menu__toggle-icon` | `<i>` | Initiates the up/down arrow beside toggle text. |
|
|
1000
|
+
| `.pf-v6-c-options-menu__toggle-button` | `<button>` | Initiates a custom toggle button for use when `.pf-v6-c-options-menu__toggle` is a `<div>` or non-interactive element. |
|
|
1001
|
+
| `.pf-v6-c-options-menu__menu` | `<ul>` | Initiates the custom options-menu menu. |
|
|
1002
|
+
| `.pf-v6-c-options-menu__menu-item` | `<li>` | Initiates the items in the custom options-menu menu. |
|
|
1003
|
+
| `.pf-v6-c-options-menu__menu-item-icon` | `<i>` | Initiates the icon to indicate selected menu items. |
|
|
1004
|
+
| `.pf-v6-c-options-menu__group` | `<section>` | Defines a group of items in an options menu. **Required when there is more than one group in an options menu**. |
|
|
1005
|
+
| `.pf-v6-c-options-menu__group-title` | `<h1>` | Defines the title for a group of items in an options menu. |
|
|
1006
|
+
| `.pf-m-top` | `.pf-v6-c-options-menu` | Modifies to display the menu above the toggle. |
|
|
1007
|
+
| `.pf-m-align-right` | `.pf-v6-c-options-menu__menu` | Modifies to display the menu aligned to the right edge of the toggle |
|
|
1008
|
+
| `.pf-m-expanded` | `.pf-v6-c-options-menu` | Modifies for the expanded state. |
|
|
1009
|
+
| `.pf-m-static` | `.pf-v6-c-options-menu__menu` | Modifies the menu to be statically positioned to support custom positioning. |
|
|
1010
|
+
| `.pf-m-plain` | `.pf-v6-c-options-menu__toggle` | Modifies to display the toggle with no border. **Note:** Can be combined with `.pf-m-text` to create a normal text toggle with no border. |
|
|
1011
|
+
| `.pf-m-disabled` | `.pf-v6-c-options-menu__toggle` | Modifies to display the options menu toggle as disabled. This applies to `pf-v6-c-options-menu__toggle` and should not be used in lieu of the `disabled` attribute on `pf-v6-c-options-menu__toggle`. When this is used, `disabled` should also be added to any form elements in `.pf-v6-c-options-menu__toggle` |
|
|
1012
|
+
| `.pf-m-text` | `.pf-v6-c-options-menu__toggle` | For use when the `.pf-v6-c-options-menu__toggle` is a `<div>` or some non-interactive elment, and you're using a custom `.pf-v6-c-options-menu__toggle-button` to toggle the options menu. |
|
|
1013
|
+
| `.pf-m-active` | `.pf-v6-c-options-menu__toggle` | Forces display of the active state of the toggle. |
|
|
1014
|
+
| `.pf-m-selected` | `.pf-v6-c-options-menu__menu-item` | Modifies the menu item for the selected state. |
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Overflow menu
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-overflow-menu
|
|
5
5
|
---import './overflow-menu.css'
|
|
6
6
|
|
|
7
7
|
## Introduction
|
|
8
8
|
|
|
9
|
-
The overflow menu component condenses actions inside `.pf-
|
|
9
|
+
The overflow menu component condenses actions inside `.pf-v6-c-overflow-menu__content` container into a single dropdown button wrapped in `.pf-v6-c-overflow-menu__control`.
|
|
10
10
|
|
|
11
|
-
The overflow menu relies on groups (`.pf-
|
|
11
|
+
The overflow menu relies on groups (`.pf-v6-c-overflow-menu__group`) and items (`.pf-v6-c-overflow-menu__item`), with default spacer 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. Each modifier applies a unique CSS variable, therefore, the base spacer value for all elements can be customized and item/groups spacers can be themed individually. The default spacer value for items and groups is set to `--pf-v6-c-toolbar--spacer--base`, whose value is `--pf-v6-global--spacer--md` or 16px.
|
|
12
12
|
|
|
13
13
|
### Simple collapsed
|
|
14
14
|
|
|
@@ -73,18 +73,18 @@ The overflow menu relies on groups (`.pf-v5-c-overflow-menu__group`) and items (
|
|
|
73
73
|
|
|
74
74
|
| Class | CSS Variable | Computed Value |
|
|
75
75
|
| -- | -- | -- |
|
|
76
|
-
| `.pf-
|
|
77
|
-
| `.pf-
|
|
76
|
+
| `.pf-v6-c-overflow-menu__group` | `--pf-v6-c-overflow-menu__group--spacer` | `16px` |
|
|
77
|
+
| `.pf-v6-c-overflow-menu__item` | `--pf-v6-c-overflow-menu__item--spacer` | `16px` |
|
|
78
78
|
|
|
79
79
|
### Overflow menu item types
|
|
80
80
|
|
|
81
81
|
| Class | Applied to | Outcome |
|
|
82
82
|
| -- | -- | -- |
|
|
83
|
-
| `.pf-
|
|
84
|
-
| `.pf-
|
|
85
|
-
| `.pf-
|
|
86
|
-
| `.pf-
|
|
87
|
-
| `.pf-
|
|
83
|
+
| `.pf-v6-c-overflow-menu` | `<div>` | Initiates an overflow menu. **Required** |
|
|
84
|
+
| `.pf-v6-c-overflow-menu__content` | `<div>` | Initiates an overflow menu content section. **Required** |
|
|
85
|
+
| `.pf-v6-c-overflow-menu__control` | `<div>` | Initiates the overflow menu control. **Required** |
|
|
86
|
+
| `.pf-v6-c-overflow-menu__group` | `<div>` | Initiates an overflow menu group. |
|
|
87
|
+
| `.pf-v6-c-overflow-menu__item` | `<div>` | Initiates an overflow menu item. **Required** |
|
|
88
88
|
|
|
89
89
|
### Group types
|
|
90
90
|
|
|
@@ -147,9 +147,9 @@ The action group consists of a primary and secondary action. Any additional acti
|
|
|
147
147
|
|
|
148
148
|
| Class | Applied to | Outcome |
|
|
149
149
|
| -- | -- | -- |
|
|
150
|
-
| `.pf-
|
|
151
|
-
| `.pf-m-button-group` | `.pf-
|
|
152
|
-
| `.pf-m-icon-button-group` | `.pf-
|
|
150
|
+
| `.pf-v6-c-overflow-menu__group` | `<div>` | Initiates an overflow menu component group. |
|
|
151
|
+
| `.pf-m-button-group` | `.pf-v6-c-overflow-menu__group` | Modifies overflow menu group spacing. Spacer value is set to `var(--pf-v6-c-overflow-menu__group--m-button-group--spacer)`. Child `.pf-v6-c-button` spacer value is set to `var(--pf-v6-c-overflow-menu__group--m-button-group--space-items)`. |
|
|
152
|
+
| `.pf-m-icon-button-group` | `.pf-v6-c-overflow-menu__group` | Modifies overflow menu group spacing. Spacer value is set to `var(--pf-v6-c-overflow-menu__group--m-icon-button-group--spacer)`. Child `.pf-v6-c-button.pf-m-button-plain` spacer value is set to `var(--pf-v6-c-overflow-menu__group--m-icon-button-group--space-items)`. |
|
|
153
153
|
|
|
154
154
|
### Additional options in dropdown (hidden)
|
|
155
155
|
|
|
@@ -378,10 +378,10 @@ The action group consists of a primary and secondary action. Any additional acti
|
|
|
378
378
|
|
|
379
379
|
| Class | Applied to | Outcome |
|
|
380
380
|
| -- | -- | -- |
|
|
381
|
-
| `.pf-
|
|
382
|
-
| `.pf-
|
|
383
|
-
| `.pf-
|
|
384
|
-
| `.pf-
|
|
385
|
-
| `.pf-
|
|
386
|
-
| `.pf-m-button-group` | `.pf-
|
|
387
|
-
| `.pf-m-icon-button-group` | `.pf-
|
|
381
|
+
| `.pf-v6-c-overflow-menu` | `<div>` | Initiates an overflow menu. **Required** |
|
|
382
|
+
| `.pf-v6-c-overflow-menu__content` | `<div>` | Initiates an overflow menu content section. **Required** |
|
|
383
|
+
| `.pf-v6-c-overflow-menu__control` | `<div>` | Initiates the overflow menu control. **Required** |
|
|
384
|
+
| `.pf-v6-c-overflow-menu__group` | `<div>` | Initiates an overflow menu group. |
|
|
385
|
+
| `.pf-v6-c-overflow-menu__item` | `<div>` | Initiates an overflow menu item. **Required** |
|
|
386
|
+
| `.pf-m-button-group` | `.pf-v6-c-overflow-menu__group` | Modifies overflow menu group spacing. Spacer value is set to `var(--pf-v6-c-overflow-menu__group--m-button-group--spacer)`. Child spacer value is set to `var(--pf-v6-c-overflow-menu__group--m-button-group--space-items)`. |
|
|
387
|
+
| `.pf-m-icon-button-group` | `.pf-v6-c-overflow-menu__group` | Modifies overflow menu group spacing. Spacer value is set to `var(--pf-v6-c-overflow-menu__group--m-icon-button-group--spacer)`. Child spacer value is set to `var(--pf-v6-c-overflow-menu__group--m-icon-button-group--space-items)`. |
|
|
@@ -24,22 +24,22 @@ deprecated: true
|
|
|
24
24
|
<main class="pf-v6-c-page__main" tabindex="-1">
|
|
25
25
|
<section class="pf-v6-c-page__main-section pf-m-dark-100">
|
|
26
26
|
This
|
|
27
|
-
<code>.pf-
|
|
27
|
+
<code>.pf-v6-c-page__main-section</code> uses
|
|
28
28
|
<code>.pf-m-dark-100</code>.
|
|
29
29
|
</section>
|
|
30
30
|
<section class="pf-v6-c-page__main-section pf-m-dark-200">
|
|
31
31
|
This
|
|
32
|
-
<code>.pf-
|
|
32
|
+
<code>.pf-v6-c-page__main-section</code> uses
|
|
33
33
|
<code>.pf-m-dark-200</code>.
|
|
34
34
|
</section>
|
|
35
35
|
<section class="pf-v6-c-page__main-section pf-m-light">
|
|
36
36
|
This
|
|
37
|
-
<code>.pf-
|
|
37
|
+
<code>.pf-v6-c-page__main-section</code> uses
|
|
38
38
|
<code>.pf-m-light</code>.
|
|
39
39
|
</section>
|
|
40
40
|
<section class="pf-v6-c-page__main-section">
|
|
41
41
|
This is a default
|
|
42
|
-
<code>.pf-
|
|
42
|
+
<code>.pf-v6-c-page__main-section</code>.
|
|
43
43
|
</section>
|
|
44
44
|
</main>
|
|
45
45
|
</div>
|
|
@@ -137,18 +137,18 @@ deprecated: true
|
|
|
137
137
|
<main class="pf-v6-c-page__main" tabindex="-1">
|
|
138
138
|
<section class="pf-v6-c-page__main-section">
|
|
139
139
|
This
|
|
140
|
-
<code>.pf-
|
|
140
|
+
<code>.pf-v6-c-page__main-section</code> has default padding.
|
|
141
141
|
</section>
|
|
142
142
|
<section class="pf-v6-c-page__main-section pf-m-no-padding pf-m-light">
|
|
143
143
|
This
|
|
144
|
-
<code>.pf-
|
|
144
|
+
<code>.pf-v6-c-page__main-section</code> uses
|
|
145
145
|
<code>.pf-m-no-padding</code> to remove all padding.
|
|
146
146
|
</section>
|
|
147
147
|
<section
|
|
148
148
|
class="pf-v6-c-page__main-section pf-m-no-padding pf-m-padding-on-md"
|
|
149
149
|
>
|
|
150
150
|
This
|
|
151
|
-
<code>.pf-
|
|
151
|
+
<code>.pf-v6-c-page__main-section</code> uses
|
|
152
152
|
<code>.pf-m-no-padding .pf-m-padding-on-md</code> to remove padding up to the
|
|
153
153
|
<code>md</code> breakpoint.
|
|
154
154
|
</section>
|
|
@@ -173,25 +173,25 @@ deprecated: true
|
|
|
173
173
|
</div>
|
|
174
174
|
<main class="pf-v6-c-page__main" tabindex="-1">
|
|
175
175
|
<section class="pf-v6-c-page__main-subnav">
|
|
176
|
-
<code>.pf-
|
|
176
|
+
<code>.pf-v6-c-page__main-subnav</code> for horizontal subnav navigation
|
|
177
177
|
</section>
|
|
178
178
|
<section class="pf-v6-c-page__main-nav">
|
|
179
|
-
<code>.pf-
|
|
179
|
+
<code>.pf-v6-c-page__main-nav</code> for tertiary navigation
|
|
180
180
|
</section>
|
|
181
181
|
<section class="pf-v6-c-page__main-tabs">
|
|
182
|
-
<code>.pf-
|
|
182
|
+
<code>.pf-v6-c-page__main-tabs</code> for tabs
|
|
183
183
|
</section>
|
|
184
184
|
<div class="pf-v6-c-page__main-group">
|
|
185
|
-
<code>.pf-
|
|
185
|
+
<code>.pf-v6-c-page__main-group</code> for a group of page sections
|
|
186
186
|
</div>
|
|
187
187
|
<section class="pf-v6-c-page__main-breadcrumb">
|
|
188
|
-
<code>.pf-
|
|
188
|
+
<code>.pf-v6-c-page__main-breadcrumb</code> for breadcrumbs
|
|
189
189
|
</section>
|
|
190
190
|
<section class="pf-v6-c-page__main-section">
|
|
191
|
-
<code>.pf-
|
|
191
|
+
<code>.pf-v6-c-page__main-section</code> for main sections
|
|
192
192
|
</section>
|
|
193
193
|
<section class="pf-v6-c-page__main-wizard">
|
|
194
|
-
<code>.pf-
|
|
194
|
+
<code>.pf-v6-c-page__main-wizard</code> for wizards
|
|
195
195
|
</section>
|
|
196
196
|
</main>
|
|
197
197
|
</div>
|
|
@@ -217,7 +217,7 @@ deprecated: true
|
|
|
217
217
|
<div class="pf-v6-c-card">
|
|
218
218
|
<div class="pf-v6-c-card__body">
|
|
219
219
|
When a width limited page section is wider than the value of
|
|
220
|
-
<code>--pf-
|
|
220
|
+
<code>--pf-v6-c-page--section--m-limit-width--MaxWidth</code>, the section will be centered in the main section.
|
|
221
221
|
<br />
|
|
222
222
|
<br />The content in this example is placed in a card to better illustrate how the section behaves when it is centered. A card is not required to center a page section.
|
|
223
223
|
</div>
|
|
@@ -239,23 +239,23 @@ The page header component is a deprecated approach to building a header on the p
|
|
|
239
239
|
|
|
240
240
|
| Attribute | Applied to | Outcome |
|
|
241
241
|
| -- | -- | -- |
|
|
242
|
-
| `role="banner"` | `.pf-
|
|
243
|
-
| `aria-expanded="true/false"` | `.pf-
|
|
244
|
-
| `aria-controls="[id of nav]"` | `.pf-
|
|
242
|
+
| `role="banner"` | `.pf-v6-c-page__header` | Identifies the element that serves as the banner region. |
|
|
243
|
+
| `aria-expanded="true/false"` | `.pf-v6-c-page__header-brand-toggle > .pf-v6-c-button` | Indicates that the expandable content is visible and the current state of the contents. **Required** |
|
|
244
|
+
| `aria-controls="[id of nav]"` | `.pf-v6-c-page__header-brand-toggle > .pf-v6-c-button` | Identifies the element controlled by the toggle. **Required**
|
|
245
245
|
|
|
246
246
|
### Usage
|
|
247
247
|
|
|
248
248
|
| Class | Applied to | Outcome |
|
|
249
249
|
| -- | -- | -- |
|
|
250
|
-
| `.pf-
|
|
251
|
-
| `.pf-
|
|
252
|
-
| `.pf-
|
|
253
|
-
| `.pf-
|
|
254
|
-
| `.pf-
|
|
255
|
-
| `.pf-
|
|
256
|
-
| `.pf-
|
|
257
|
-
| `.pf-
|
|
258
|
-
| `.pf-
|
|
259
|
-
| `.pf-m-selected` | `.pf-
|
|
260
|
-
| `.pf-m-hidden{-on-[breakpoint]}` | `.pf-
|
|
261
|
-
| `.pf-m-visible{-on-[breakpoint]}` | `.pf-
|
|
250
|
+
| `.pf-v6-c-page__header` | `<header>` | Declares the page header. |
|
|
251
|
+
| `.pf-v6-c-page__header-brand` | `<div>` | Creates a header container to nest the brand component. |
|
|
252
|
+
| `.pf-v6-c-page__header-brand-toggle` | `<div>` | Creates a container to nest the sidebar toggle. |
|
|
253
|
+
| `.pf-v6-c-page__header-brand-link` | `<a>`, `<span>` | Creates a link for the brand logo. Use a `<span>` if there is no link. |
|
|
254
|
+
| `.pf-v6-c-page__header-selector` | `<div>` | Creates a header container to nest the context selector component. |
|
|
255
|
+
| `.pf-v6-c-page__header-nav` | `<div>` | Creates a container to nest the navigation component in the header. |
|
|
256
|
+
| `.pf-v6-c-page__header-tools` | `<div>` | Creates a container to nest the icons and menus in header. |
|
|
257
|
+
| `.pf-v6-c-page__header-tools-group` | `<div>` | Creates a container for grouping sets of icons and menus in header. |
|
|
258
|
+
| `.pf-v6-c-page__header-tools-item` | `<div>` | Creates a container for an item in a header tools group. |
|
|
259
|
+
| `.pf-m-selected` | `.pf-v6-c-page__header-tools-item` | Modifies a header tools item to indicate that the button inside is in the selected state. |
|
|
260
|
+
| `.pf-m-hidden{-on-[breakpoint]}` | `.pf-v6-c-page__header-tools-group`, `.pf-v6-c-page__header-tools-item` | Hides a header tools group or item at an optional breakpoint, or hides it at all [breakpoints](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes) with `.pf-m-hidden`. |
|
|
261
|
+
| `.pf-m-visible{-on-[breakpoint]}` | `.pf-v6-c-page__header-tools-group`, `.pf-v6-c-page__header-tools-item` | Shows a header tools group or item at an optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|