@patternfly/patternfly 5.1.0-prerelease.1 → 5.1.0-prerelease.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/assets/icons/iconUnicodes.json +1 -0
- package/assets/pficon/pf-v5-pficon.woff2 +0 -0
- package/assets/pficon/pficon.scss +6 -129
- package/base/_common.scss +22 -0
- package/base/_globals.scss +1 -1
- package/base/_variables.scss +7 -0
- package/base/patternfly-common.css +17 -2
- package/base/patternfly-globals.css +1 -1
- package/base/patternfly-icons.css +5 -1
- package/base/patternfly-pf-icons.css +5 -1
- package/base/patternfly-variables.css +5 -0
- package/components/AboutModalBox/about-modal-box.css +20 -13
- package/components/AboutModalBox/about-modal-box.scss +20 -13
- package/components/Accordion/accordion.css +33 -20
- package/components/Accordion/accordion.scss +32 -20
- package/components/ActionList/action-list.css +2 -2
- package/components/ActionList/action-list.scss +2 -2
- package/components/Alert/alert-group.css +7 -4
- package/components/Alert/alert-group.scss +7 -4
- package/components/Alert/alert.css +16 -13
- package/components/Alert/alert.scss +16 -13
- package/components/AppLauncher/app-launcher.css +32 -23
- package/components/AppLauncher/app-launcher.scss +32 -23
- package/components/BackToTop/back-to-top.css +2 -2
- package/components/BackToTop/back-to-top.scss +2 -2
- package/components/Backdrop/backdrop.css +2 -2
- package/components/Backdrop/backdrop.scss +2 -2
- package/components/BackgroundImage/background-image.css +2 -2
- package/components/BackgroundImage/background-image.scss +2 -2
- package/components/Badge/badge.css +2 -2
- package/components/Badge/badge.scss +2 -2
- package/components/Banner/banner.css +5 -2
- package/components/Banner/banner.scss +5 -2
- package/components/Breadcrumb/breadcrumb.css +6 -3
- package/components/Breadcrumb/breadcrumb.scss +6 -3
- package/components/Button/button.css +23 -17
- package/components/Button/button.scss +22 -16
- package/components/Button/themes/dark/button.scss +1 -1
- package/components/CalendarMonth/calendar-month.css +21 -15
- package/components/CalendarMonth/calendar-month.scss +21 -15
- package/components/Card/card.css +21 -16
- package/components/Card/card.scss +21 -16
- package/components/Check/check.css +2 -2
- package/components/Check/check.scss +2 -2
- package/components/Chip/chip-group.css +6 -6
- package/components/Chip/chip-group.scss +6 -6
- package/components/Chip/chip.css +16 -9
- package/components/Chip/chip.scss +17 -9
- package/components/ClipboardCopy/clipboard-copy.css +16 -10
- package/components/ClipboardCopy/clipboard-copy.scss +14 -8
- package/components/ClipboardCopy/themes/dark/clipboard-copy.scss +2 -2
- package/components/CodeBlock/code-block.css +6 -3
- package/components/CodeBlock/code-block.scss +6 -3
- package/components/CodeEditor/code-editor.css +31 -22
- package/components/CodeEditor/code-editor.scss +30 -21
- package/components/CodeEditor/themes/dark/code-editor.scss +1 -1
- package/components/Content/content.css +33 -30
- package/components/Content/content.scss +33 -30
- package/components/ContextSelector/context-selector.css +41 -26
- package/components/ContextSelector/context-selector.scss +40 -25
- package/components/ContextSelector/themes/dark/context-selector.scss +1 -1
- package/components/DataList/data-list-grid.css +21 -49
- package/components/DataList/data-list-grid.scss +3 -3
- package/components/DataList/data-list.css +66 -84
- package/components/DataList/data-list.scss +45 -35
- package/components/DatePicker/date-picker.css +8 -8
- package/components/DatePicker/date-picker.scss +8 -8
- package/components/DescriptionList/description-list.css +8 -5
- package/components/DescriptionList/description-list.scss +8 -5
- package/components/DragDrop/drag-drop.css +8 -8
- package/components/DragDrop/drag-drop.scss +8 -8
- package/components/Drawer/drawer.css +75 -60
- package/components/Drawer/drawer.scss +51 -36
- package/components/Dropdown/dropdown.css +75 -66
- package/components/Dropdown/dropdown.scss +65 -56
- package/components/DualListSelector/dual-list-selector.css +29 -15
- package/components/DualListSelector/dual-list-selector.scss +30 -15
- package/components/EmptyState/empty-state.css +7 -4
- package/components/EmptyState/empty-state.scss +7 -4
- package/components/ExpandableSection/expandable-section.css +17 -10
- package/components/ExpandableSection/expandable-section.scss +15 -10
- package/components/FileUpload/file-upload.css +9 -15
- package/components/FileUpload/file-upload.scss +9 -15
- package/components/Form/form.css +50 -50
- package/components/Form/form.scss +44 -44
- package/components/FormControl/form-control.css +21 -11
- package/components/FormControl/form-control.scss +21 -11
- package/components/HelperText/helper-text.css +1 -1
- package/components/HelperText/helper-text.scss +1 -1
- package/components/Hint/hint.css +9 -6
- package/components/Hint/hint.scss +9 -6
- package/components/Icon/icon.css +1 -1
- package/components/Icon/icon.scss +1 -1
- package/components/InlineEdit/inline-edit.css +4 -4
- package/components/InlineEdit/inline-edit.scss +4 -4
- package/components/InputGroup/input-group.css +12 -6
- package/components/InputGroup/input-group.scss +11 -5
- package/components/InputGroup/themes/dark/input-group.scss +1 -1
- package/components/JumpLinks/jump-links.css +24 -24
- package/components/JumpLinks/jump-links.scss +24 -24
- package/components/Label/label-group.css +13 -10
- package/components/Label/label-group.scss +13 -10
- package/components/Label/label.css +9 -9
- package/components/Label/label.scss +9 -9
- package/components/List/list.css +9 -9
- package/components/List/list.scss +9 -9
- package/components/LogViewer/log-viewer.css +14 -14
- package/components/LogViewer/log-viewer.scss +14 -14
- package/components/Login/login.css +36 -27
- package/components/Login/login.scss +36 -27
- package/components/Masthead/masthead.css +19 -22
- package/components/Masthead/masthead.scss +19 -22
- package/components/Menu/menu.css +69 -66
- package/components/Menu/menu.scss +69 -67
- package/components/MenuToggle/menu-toggle.css +41 -29
- package/components/MenuToggle/menu-toggle.scss +41 -29
- package/components/ModalBox/modal-box.css +19 -19
- package/components/ModalBox/modal-box.scss +20 -20
- package/components/MultipleFileUpload/multiple-file-upload.css +11 -8
- package/components/MultipleFileUpload/multiple-file-upload.scss +11 -8
- package/components/Nav/nav.css +100 -93
- package/components/Nav/nav.scss +98 -91
- package/components/Nav/themes/dark/nav.scss +2 -2
- package/components/NotificationBadge/notification-badge.css +13 -7
- package/components/NotificationBadge/notification-badge.scss +13 -7
- package/components/NotificationDrawer/notification-drawer.css +28 -19
- package/components/NotificationDrawer/notification-drawer.scss +28 -19
- package/components/NumberInput/number-input.css +3 -3
- package/components/NumberInput/number-input.scss +2 -2
- package/components/OptionsMenu/options-menu.css +43 -31
- package/components/OptionsMenu/options-menu.scss +43 -31
- package/components/OverflowMenu/overflow-menu.css +2 -2
- package/components/OverflowMenu/overflow-menu.scss +2 -2
- package/components/Page/page.css +119 -65
- package/components/Page/page.scss +63 -39
- package/components/Page/themes/dark/page.scss +1 -1
- package/components/Pagination/pagination.css +28 -18
- package/components/Pagination/pagination.scss +25 -17
- package/components/Panel/panel.css +13 -7
- package/components/Panel/panel.scss +13 -7
- package/components/Popover/popover.css +24 -21
- package/components/Popover/popover.scss +24 -21
- package/components/Progress/progress.css +7 -7
- package/components/Progress/progress.scss +7 -7
- package/components/ProgressStepper/progress-stepper.css +26 -20
- package/components/ProgressStepper/progress-stepper.scss +25 -19
- package/components/Radio/radio.css +4 -5
- package/components/Radio/radio.scss +4 -5
- package/components/Select/select.css +56 -47
- package/components/Select/select.scss +56 -47
- package/components/Sidebar/sidebar.css +11 -5
- package/components/Sidebar/sidebar.scss +11 -5
- package/components/SimpleList/simple-list.css +10 -4
- package/components/SimpleList/simple-list.scss +10 -4
- package/components/Skeleton/skeleton.css +2 -5
- package/components/Skeleton/skeleton.scss +2 -5
- package/components/SkipToContent/skip-to-content.css +3 -3
- package/components/SkipToContent/skip-to-content.scss +3 -3
- package/components/Slider/slider.css +46 -26
- package/components/Slider/slider.scss +54 -26
- package/components/Switch/switch.css +9 -5
- package/components/Switch/switch.scss +10 -6
- package/components/TabContent/tab-content.css +4 -1
- package/components/TabContent/tab-content.scss +4 -1
- package/components/Table/table-grid.css +256 -219
- package/components/Table/table-grid.scss +53 -39
- package/components/Table/table-scrollable.css +2 -2
- package/components/Table/table-scrollable.scss +2 -2
- package/components/Table/table-tree-view.css +107 -104
- package/components/Table/table-tree-view.scss +32 -32
- package/components/Table/table.css +87 -69
- package/components/Table/table.scss +87 -69
- package/components/Tabs/tabs.css +66 -48
- package/components/Tabs/tabs.scss +66 -48
- package/components/TextInputGroup/text-input-group.css +15 -15
- package/components/TextInputGroup/text-input-group.scss +15 -15
- package/components/Tile/tile.css +10 -10
- package/components/Tile/tile.scss +10 -10
- package/components/ToggleGroup/toggle-group.css +14 -11
- package/components/ToggleGroup/toggle-group.scss +14 -11
- package/components/Toolbar/toolbar.css +44 -41
- package/components/Toolbar/toolbar.scss +24 -21
- package/components/Tooltip/tooltip.css +19 -16
- package/components/Tooltip/tooltip.scss +19 -16
- package/components/TreeView/tree-view.css +42 -27
- package/components/TreeView/tree-view.scss +43 -28
- package/components/Wizard/wizard.css +57 -36
- package/components/Wizard/wizard.scss +57 -36
- package/docs/components/AppLauncher/deprecated/application-launcher.md +155 -70
- package/docs/components/Badge/examples/Badge.md +16 -4
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +11 -5
- package/docs/components/Button/examples/Button.css +2 -2
- package/docs/components/Button/examples/Button.md +1 -0
- package/docs/components/Card/examples/Card.md +152 -64
- package/docs/components/Chip/examples/Chip.md +31 -11
- package/docs/components/ContextSelector/deprecated/context-selector.md +198 -96
- package/docs/components/DataList/examples/DataList.md +391 -136
- package/docs/components/DragDrop/examples/DragDrop.css +2 -2
- package/docs/components/Dropdown/deprecated/Dropdown.css +1 -1
- package/docs/components/Dropdown/deprecated/Dropdown.md +881 -367
- package/docs/components/DualListSelector/examples/DualListSelector.md +368 -128
- package/docs/components/FormControl/examples/FormControl.md +2 -1
- package/docs/components/Hint/examples/Hint.md +57 -24
- package/docs/components/InlineEdit/examples/InlineEdit.md +46 -16
- package/docs/components/Label/examples/Label.md +1 -1
- package/docs/components/LogViewer/examples/LogViewer.css +2 -2
- package/docs/components/LogViewer/examples/LogViewer.md +40 -30
- package/docs/components/Menu/examples/Menu.md +41 -20
- package/docs/components/MenuToggle/examples/MenuToggle.md +1 -1
- package/docs/components/ModalBox/examples/ModalBox.css +2 -2
- package/docs/components/Nav/examples/Navigation.css +3 -26
- package/docs/components/Nav/examples/Navigation.md +99 -0
- package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +619 -240
- package/docs/components/OptionsMenu/deprecated/options-menu.md +403 -160
- package/docs/components/OverflowMenu/examples/overflow-menu.md +45 -34
- package/docs/components/Pagination/examples/Pagination.md +195 -65
- package/docs/components/Popover/examples/Popover.css +2 -2
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +50 -0
- package/docs/components/Select/deprecated/Select.css +3 -3
- package/docs/components/Select/deprecated/Select.md +43 -55
- package/docs/components/Table/examples/Table.css +2 -2
- package/docs/components/Table/examples/Table.md +4546 -1668
- package/docs/components/Tabs/examples/Tabs.md +1094 -438
- package/docs/components/TextInputGroup/examples/TextInputGroup.css +1 -1
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +2 -2
- package/docs/components/Tile/examples/Tile.css +1 -1
- package/docs/components/Toolbar/examples/Toolbar.md +148 -80
- package/docs/components/TreeView/examples/TreeView.md +23 -8
- package/docs/components/Wizard/examples/Wizard.md +75 -36
- package/docs/demos/Card/examples/Card.css +3 -3
- package/docs/demos/Card/examples/Card.md +49 -24
- package/docs/demos/CardView/examples/CardView.md +182 -74
- package/docs/demos/ContextSelector/examples/ContextSelector.md +95 -47
- package/docs/demos/Dashboard/examples/Dashboard.md +18 -9
- package/docs/demos/DataList/examples/DataList.md +163 -70
- package/docs/demos/DescriptionList/examples/DescriptionList.md +20 -9
- package/docs/demos/Drawer/examples/Drawer.md +20 -9
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +803 -338
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +241 -101
- package/docs/demos/Table/examples/Table.md +1422 -607
- package/docs/demos/Tabs/examples/Tabs.md +113 -48
- package/docs/demos/Toolbar/examples/Toolbar.md +320 -127
- package/docs/demos/Wizard/examples/Wizard.md +191 -41
- package/docs/layouts/Flex/examples/Flex.md +5 -5
- package/docs/utilities/BoxShadow/examples/box-shadow.css +5 -5
- package/icons/pficons.mjs +1 -0
- package/layouts/Flex/flex.css +115 -43
- package/layouts/Flex/flex.scss +20 -8
- package/package.json +40 -37
- package/patternfly-addons.css +732 -972
- package/patternfly-base-no-globals-theme-dark-unversioned.css +27 -3
- package/patternfly-base-no-globals.css +27 -3
- package/patternfly-base-theme-dark-unversioned.css +28 -4
- package/patternfly-base.css +28 -4
- package/patternfly-no-globals.css +2420 -1872
- package/patternfly-theme-dark-unversioned.css +2421 -1873
- package/patternfly.css +2421 -1873
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/functions.scss +6 -0
- package/sass-utilities/mixins.scss +62 -2
- package/sass-utilities/placeholders.scss +1 -1
- package/sass-utilities/scss-variables.scss +8 -8
- package/utilities/Accessibility/accessibility.css +12 -12
- package/utilities/Spacing/spacing.css +720 -960
- package/utilities/Spacing/spacing.scss +4 -8
|
@@ -17,10 +17,22 @@ cssPrefix: pf-v5-c-badge
|
|
|
17
17
|
### Unread
|
|
18
18
|
|
|
19
19
|
```html
|
|
20
|
-
<span class="pf-v5-c-badge pf-m-unread">
|
|
21
|
-
|
|
22
|
-
<span class="pf-v5-
|
|
23
|
-
|
|
20
|
+
<span class="pf-v5-c-badge pf-m-unread">
|
|
21
|
+
7
|
|
22
|
+
<span class="pf-v5-screen-reader">unread messages</span>
|
|
23
|
+
</span>
|
|
24
|
+
<span class="pf-v5-c-badge pf-m-unread">
|
|
25
|
+
24
|
|
26
|
+
<span class="pf-v5-screen-reader">unread messages</span>
|
|
27
|
+
</span>
|
|
28
|
+
<span class="pf-v5-c-badge pf-m-unread">
|
|
29
|
+
240
|
|
30
|
+
<span class="pf-v5-screen-reader">unread messages</span>
|
|
31
|
+
</span>
|
|
32
|
+
<span class="pf-v5-c-badge pf-m-unread">
|
|
33
|
+
999+
|
|
34
|
+
<span class="pf-v5-screen-reader">unread messages</span>
|
|
35
|
+
</span>
|
|
24
36
|
|
|
25
37
|
```
|
|
26
38
|
|
|
@@ -179,34 +179,40 @@ cssPrefix: pf-v5-c-breadcrumb
|
|
|
179
179
|
<ul
|
|
180
180
|
class="pf-v5-c-dropdown__menu"
|
|
181
181
|
aria-labelledby="dropdown-badge-toggle-button"
|
|
182
|
+
role="menu"
|
|
182
183
|
>
|
|
183
|
-
<li>
|
|
184
|
+
<li role="none">
|
|
184
185
|
<button
|
|
185
186
|
class="pf-v5-c-dropdown__menu-item"
|
|
187
|
+
role="menuitem"
|
|
186
188
|
type="button"
|
|
187
189
|
>Section title</button>
|
|
188
190
|
</li>
|
|
189
|
-
<li>
|
|
191
|
+
<li role="none">
|
|
190
192
|
<button
|
|
191
193
|
class="pf-v5-c-dropdown__menu-item"
|
|
194
|
+
role="menuitem"
|
|
192
195
|
type="button"
|
|
193
196
|
>Section title</button>
|
|
194
197
|
</li>
|
|
195
|
-
<li>
|
|
198
|
+
<li role="none">
|
|
196
199
|
<button
|
|
197
200
|
class="pf-v5-c-dropdown__menu-item"
|
|
201
|
+
role="menuitem"
|
|
198
202
|
type="button"
|
|
199
203
|
>Section title</button>
|
|
200
204
|
</li>
|
|
201
|
-
<li>
|
|
205
|
+
<li role="none">
|
|
202
206
|
<button
|
|
203
207
|
class="pf-v5-c-dropdown__menu-item"
|
|
208
|
+
role="menuitem"
|
|
204
209
|
type="button"
|
|
205
210
|
>Section title</button>
|
|
206
211
|
</li>
|
|
207
|
-
<li>
|
|
212
|
+
<li role="none">
|
|
208
213
|
<button
|
|
209
214
|
class="pf-v5-c-dropdown__menu-item"
|
|
215
|
+
role="menuitem"
|
|
210
216
|
type="button"
|
|
211
217
|
>Section title</button>
|
|
212
218
|
</li>
|
|
@@ -530,6 +530,7 @@ Semantic buttons and links are important for usability as well as accessibility.
|
|
|
530
530
|
| `.pf-m-secondary` | `.pf-v5-c-button` | Modifies for secondary styles. |
|
|
531
531
|
| `.pf-m-tertiary` | `.pf-v5-c-button` | Modifies for tertiary styles. |
|
|
532
532
|
| `.pf-m-danger` | `.pf-v5-c-button` | Modifies for danger styles. |
|
|
533
|
+
| `.pf-m-warning` | `.pf-v5-c-button` | Modifies for warning styles. |
|
|
533
534
|
| `.pf-m-link` | `.pf-v5-c-button` | Modifies for link styles. This button has no background or border and is styled as a link. This button would commonly appear in a form and may include an icon. |
|
|
534
535
|
| `.pf-m-plain` | `.pf-v5-c-button` | Modifies for icon styles. This button has no background or border, uses a standard text color, and is used for `.pf-m-plain` icon buttons such as close, expand, kebab, etc. |
|
|
535
536
|
| `.pf-m-inline` | `.pf-v5-c-button.pf-m-link` | Modifies for inline styles. This button is presented similar to a normal link and has no padding and is displayed inline with other inline content. When used as a `<span>`, the text will flow inline with text around it. |
|
|
@@ -42,31 +42,42 @@ cssPrefix: pf-v5-c-card
|
|
|
42
42
|
class="pf-v5-c-dropdown__menu pf-m-align-right"
|
|
43
43
|
aria-labelledby="card-action-example-1-dropdown-kebab-button"
|
|
44
44
|
hidden
|
|
45
|
+
role="menu"
|
|
45
46
|
>
|
|
46
|
-
<li>
|
|
47
|
-
<a class="pf-v5-c-dropdown__menu-item" href="#">Link</a>
|
|
47
|
+
<li role="none">
|
|
48
|
+
<a class="pf-v5-c-dropdown__menu-item" role="menuitem" href="#">Link</a>
|
|
48
49
|
</li>
|
|
49
|
-
<li>
|
|
50
|
-
<button
|
|
50
|
+
<li role="none">
|
|
51
|
+
<button
|
|
52
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
53
|
+
role="menuitem"
|
|
54
|
+
type="button"
|
|
55
|
+
>Action</button>
|
|
51
56
|
</li>
|
|
52
|
-
<li>
|
|
57
|
+
<li role="none">
|
|
53
58
|
<a
|
|
54
59
|
class="pf-v5-c-dropdown__menu-item pf-m-disabled"
|
|
60
|
+
role="menuitem"
|
|
55
61
|
href="#"
|
|
56
62
|
aria-disabled="true"
|
|
57
63
|
tabindex="-1"
|
|
58
64
|
>Disabled link</a>
|
|
59
65
|
</li>
|
|
60
|
-
<li>
|
|
66
|
+
<li role="none">
|
|
61
67
|
<button
|
|
62
68
|
class="pf-v5-c-dropdown__menu-item"
|
|
69
|
+
role="menuitem"
|
|
63
70
|
type="button"
|
|
64
71
|
disabled
|
|
65
72
|
>Disabled action</button>
|
|
66
73
|
</li>
|
|
67
74
|
<li class="pf-v5-c-divider" role="separator"></li>
|
|
68
|
-
<li>
|
|
69
|
-
<a
|
|
75
|
+
<li role="none">
|
|
76
|
+
<a
|
|
77
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
78
|
+
role="menuitem"
|
|
79
|
+
href="#"
|
|
80
|
+
>Separated link</a>
|
|
70
81
|
</li>
|
|
71
82
|
</ul>
|
|
72
83
|
</div>
|
|
@@ -113,31 +124,42 @@ cssPrefix: pf-v5-c-card
|
|
|
113
124
|
class="pf-v5-c-dropdown__menu pf-m-align-right"
|
|
114
125
|
aria-labelledby="card-action-example-2-dropdown-kebab-button"
|
|
115
126
|
hidden
|
|
127
|
+
role="menu"
|
|
116
128
|
>
|
|
117
|
-
<li>
|
|
118
|
-
<a class="pf-v5-c-dropdown__menu-item" href="#">Link</a>
|
|
129
|
+
<li role="none">
|
|
130
|
+
<a class="pf-v5-c-dropdown__menu-item" role="menuitem" href="#">Link</a>
|
|
119
131
|
</li>
|
|
120
|
-
<li>
|
|
121
|
-
<button
|
|
132
|
+
<li role="none">
|
|
133
|
+
<button
|
|
134
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
135
|
+
role="menuitem"
|
|
136
|
+
type="button"
|
|
137
|
+
>Action</button>
|
|
122
138
|
</li>
|
|
123
|
-
<li>
|
|
139
|
+
<li role="none">
|
|
124
140
|
<a
|
|
125
141
|
class="pf-v5-c-dropdown__menu-item pf-m-disabled"
|
|
142
|
+
role="menuitem"
|
|
126
143
|
href="#"
|
|
127
144
|
aria-disabled="true"
|
|
128
145
|
tabindex="-1"
|
|
129
146
|
>Disabled link</a>
|
|
130
147
|
</li>
|
|
131
|
-
<li>
|
|
148
|
+
<li role="none">
|
|
132
149
|
<button
|
|
133
150
|
class="pf-v5-c-dropdown__menu-item"
|
|
151
|
+
role="menuitem"
|
|
134
152
|
type="button"
|
|
135
153
|
disabled
|
|
136
154
|
>Disabled action</button>
|
|
137
155
|
</li>
|
|
138
156
|
<li class="pf-v5-c-divider" role="separator"></li>
|
|
139
|
-
<li>
|
|
140
|
-
<a
|
|
157
|
+
<li role="none">
|
|
158
|
+
<a
|
|
159
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
160
|
+
role="menuitem"
|
|
161
|
+
href="#"
|
|
162
|
+
>Separated link</a>
|
|
141
163
|
</li>
|
|
142
164
|
</ul>
|
|
143
165
|
</div>
|
|
@@ -186,31 +208,42 @@ cssPrefix: pf-v5-c-card
|
|
|
186
208
|
class="pf-v5-c-dropdown__menu pf-m-align-right"
|
|
187
209
|
aria-labelledby="card-action-example-3-dropdown-kebab-button"
|
|
188
210
|
hidden
|
|
211
|
+
role="menu"
|
|
189
212
|
>
|
|
190
|
-
<li>
|
|
191
|
-
<a class="pf-v5-c-dropdown__menu-item" href="#">Link</a>
|
|
213
|
+
<li role="none">
|
|
214
|
+
<a class="pf-v5-c-dropdown__menu-item" role="menuitem" href="#">Link</a>
|
|
192
215
|
</li>
|
|
193
|
-
<li>
|
|
194
|
-
<button
|
|
216
|
+
<li role="none">
|
|
217
|
+
<button
|
|
218
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
219
|
+
role="menuitem"
|
|
220
|
+
type="button"
|
|
221
|
+
>Action</button>
|
|
195
222
|
</li>
|
|
196
|
-
<li>
|
|
223
|
+
<li role="none">
|
|
197
224
|
<a
|
|
198
225
|
class="pf-v5-c-dropdown__menu-item pf-m-disabled"
|
|
226
|
+
role="menuitem"
|
|
199
227
|
href="#"
|
|
200
228
|
aria-disabled="true"
|
|
201
229
|
tabindex="-1"
|
|
202
230
|
>Disabled link</a>
|
|
203
231
|
</li>
|
|
204
|
-
<li>
|
|
232
|
+
<li role="none">
|
|
205
233
|
<button
|
|
206
234
|
class="pf-v5-c-dropdown__menu-item"
|
|
235
|
+
role="menuitem"
|
|
207
236
|
type="button"
|
|
208
237
|
disabled
|
|
209
238
|
>Disabled action</button>
|
|
210
239
|
</li>
|
|
211
240
|
<li class="pf-v5-c-divider" role="separator"></li>
|
|
212
|
-
<li>
|
|
213
|
-
<a
|
|
241
|
+
<li role="none">
|
|
242
|
+
<a
|
|
243
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
244
|
+
role="menuitem"
|
|
245
|
+
href="#"
|
|
246
|
+
>Separated link</a>
|
|
214
247
|
</li>
|
|
215
248
|
</ul>
|
|
216
249
|
</div>
|
|
@@ -1049,31 +1082,42 @@ cssPrefix: pf-v5-c-card
|
|
|
1049
1082
|
class="pf-v5-c-dropdown__menu pf-m-align-right"
|
|
1050
1083
|
aria-labelledby="card-expandable-example-dropdown-kebab-button"
|
|
1051
1084
|
hidden
|
|
1085
|
+
role="menu"
|
|
1052
1086
|
>
|
|
1053
|
-
<li>
|
|
1054
|
-
<a class="pf-v5-c-dropdown__menu-item" href="#">Link</a>
|
|
1087
|
+
<li role="none">
|
|
1088
|
+
<a class="pf-v5-c-dropdown__menu-item" role="menuitem" href="#">Link</a>
|
|
1055
1089
|
</li>
|
|
1056
|
-
<li>
|
|
1057
|
-
<button
|
|
1090
|
+
<li role="none">
|
|
1091
|
+
<button
|
|
1092
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
1093
|
+
role="menuitem"
|
|
1094
|
+
type="button"
|
|
1095
|
+
>Action</button>
|
|
1058
1096
|
</li>
|
|
1059
|
-
<li>
|
|
1097
|
+
<li role="none">
|
|
1060
1098
|
<a
|
|
1061
1099
|
class="pf-v5-c-dropdown__menu-item pf-m-disabled"
|
|
1100
|
+
role="menuitem"
|
|
1062
1101
|
href="#"
|
|
1063
1102
|
aria-disabled="true"
|
|
1064
1103
|
tabindex="-1"
|
|
1065
1104
|
>Disabled link</a>
|
|
1066
1105
|
</li>
|
|
1067
|
-
<li>
|
|
1106
|
+
<li role="none">
|
|
1068
1107
|
<button
|
|
1069
1108
|
class="pf-v5-c-dropdown__menu-item"
|
|
1109
|
+
role="menuitem"
|
|
1070
1110
|
type="button"
|
|
1071
1111
|
disabled
|
|
1072
1112
|
>Disabled action</button>
|
|
1073
1113
|
</li>
|
|
1074
1114
|
<li class="pf-v5-c-divider" role="separator"></li>
|
|
1075
|
-
<li>
|
|
1076
|
-
<a
|
|
1115
|
+
<li role="none">
|
|
1116
|
+
<a
|
|
1117
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
1118
|
+
role="menuitem"
|
|
1119
|
+
href="#"
|
|
1120
|
+
>Separated link</a>
|
|
1077
1121
|
</li>
|
|
1078
1122
|
</ul>
|
|
1079
1123
|
</div>
|
|
@@ -1140,31 +1184,42 @@ cssPrefix: pf-v5-c-card
|
|
|
1140
1184
|
class="pf-v5-c-dropdown__menu pf-m-align-right"
|
|
1141
1185
|
aria-labelledby="card-expandable-image-example-dropdown-kebab-button"
|
|
1142
1186
|
hidden
|
|
1187
|
+
role="menu"
|
|
1143
1188
|
>
|
|
1144
|
-
<li>
|
|
1145
|
-
<a class="pf-v5-c-dropdown__menu-item" href="#">Link</a>
|
|
1189
|
+
<li role="none">
|
|
1190
|
+
<a class="pf-v5-c-dropdown__menu-item" role="menuitem" href="#">Link</a>
|
|
1146
1191
|
</li>
|
|
1147
|
-
<li>
|
|
1148
|
-
<button
|
|
1192
|
+
<li role="none">
|
|
1193
|
+
<button
|
|
1194
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
1195
|
+
role="menuitem"
|
|
1196
|
+
type="button"
|
|
1197
|
+
>Action</button>
|
|
1149
1198
|
</li>
|
|
1150
|
-
<li>
|
|
1199
|
+
<li role="none">
|
|
1151
1200
|
<a
|
|
1152
1201
|
class="pf-v5-c-dropdown__menu-item pf-m-disabled"
|
|
1202
|
+
role="menuitem"
|
|
1153
1203
|
href="#"
|
|
1154
1204
|
aria-disabled="true"
|
|
1155
1205
|
tabindex="-1"
|
|
1156
1206
|
>Disabled link</a>
|
|
1157
1207
|
</li>
|
|
1158
|
-
<li>
|
|
1208
|
+
<li role="none">
|
|
1159
1209
|
<button
|
|
1160
1210
|
class="pf-v5-c-dropdown__menu-item"
|
|
1211
|
+
role="menuitem"
|
|
1161
1212
|
type="button"
|
|
1162
1213
|
disabled
|
|
1163
1214
|
>Disabled action</button>
|
|
1164
1215
|
</li>
|
|
1165
1216
|
<li class="pf-v5-c-divider" role="separator"></li>
|
|
1166
|
-
<li>
|
|
1167
|
-
<a
|
|
1217
|
+
<li role="none">
|
|
1218
|
+
<a
|
|
1219
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
1220
|
+
role="menuitem"
|
|
1221
|
+
href="#"
|
|
1222
|
+
>Separated link</a>
|
|
1168
1223
|
</li>
|
|
1169
1224
|
</ul>
|
|
1170
1225
|
</div>
|
|
@@ -1216,31 +1271,42 @@ cssPrefix: pf-v5-c-card
|
|
|
1216
1271
|
class="pf-v5-c-dropdown__menu pf-m-align-right"
|
|
1217
1272
|
aria-labelledby="card-expanded-example-dropdown-kebab-button"
|
|
1218
1273
|
hidden
|
|
1274
|
+
role="menu"
|
|
1219
1275
|
>
|
|
1220
|
-
<li>
|
|
1221
|
-
<a class="pf-v5-c-dropdown__menu-item" href="#">Link</a>
|
|
1276
|
+
<li role="none">
|
|
1277
|
+
<a class="pf-v5-c-dropdown__menu-item" role="menuitem" href="#">Link</a>
|
|
1222
1278
|
</li>
|
|
1223
|
-
<li>
|
|
1224
|
-
<button
|
|
1279
|
+
<li role="none">
|
|
1280
|
+
<button
|
|
1281
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
1282
|
+
role="menuitem"
|
|
1283
|
+
type="button"
|
|
1284
|
+
>Action</button>
|
|
1225
1285
|
</li>
|
|
1226
|
-
<li>
|
|
1286
|
+
<li role="none">
|
|
1227
1287
|
<a
|
|
1228
1288
|
class="pf-v5-c-dropdown__menu-item pf-m-disabled"
|
|
1289
|
+
role="menuitem"
|
|
1229
1290
|
href="#"
|
|
1230
1291
|
aria-disabled="true"
|
|
1231
1292
|
tabindex="-1"
|
|
1232
1293
|
>Disabled link</a>
|
|
1233
1294
|
</li>
|
|
1234
|
-
<li>
|
|
1295
|
+
<li role="none">
|
|
1235
1296
|
<button
|
|
1236
1297
|
class="pf-v5-c-dropdown__menu-item"
|
|
1298
|
+
role="menuitem"
|
|
1237
1299
|
type="button"
|
|
1238
1300
|
disabled
|
|
1239
1301
|
>Disabled action</button>
|
|
1240
1302
|
</li>
|
|
1241
1303
|
<li class="pf-v5-c-divider" role="separator"></li>
|
|
1242
|
-
<li>
|
|
1243
|
-
<a
|
|
1304
|
+
<li role="none">
|
|
1305
|
+
<a
|
|
1306
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
1307
|
+
role="menuitem"
|
|
1308
|
+
href="#"
|
|
1309
|
+
>Separated link</a>
|
|
1244
1310
|
</li>
|
|
1245
1311
|
</ul>
|
|
1246
1312
|
</div>
|
|
@@ -1289,31 +1355,42 @@ cssPrefix: pf-v5-c-card
|
|
|
1289
1355
|
class="pf-v5-c-dropdown__menu pf-m-align-right"
|
|
1290
1356
|
aria-labelledby="card-full-height-example-dropdown-kebab-button"
|
|
1291
1357
|
hidden
|
|
1358
|
+
role="menu"
|
|
1292
1359
|
>
|
|
1293
|
-
<li>
|
|
1294
|
-
<a class="pf-v5-c-dropdown__menu-item" href="#">Link</a>
|
|
1360
|
+
<li role="none">
|
|
1361
|
+
<a class="pf-v5-c-dropdown__menu-item" role="menuitem" href="#">Link</a>
|
|
1295
1362
|
</li>
|
|
1296
|
-
<li>
|
|
1297
|
-
<button
|
|
1363
|
+
<li role="none">
|
|
1364
|
+
<button
|
|
1365
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
1366
|
+
role="menuitem"
|
|
1367
|
+
type="button"
|
|
1368
|
+
>Action</button>
|
|
1298
1369
|
</li>
|
|
1299
|
-
<li>
|
|
1370
|
+
<li role="none">
|
|
1300
1371
|
<a
|
|
1301
1372
|
class="pf-v5-c-dropdown__menu-item pf-m-disabled"
|
|
1373
|
+
role="menuitem"
|
|
1302
1374
|
href="#"
|
|
1303
1375
|
aria-disabled="true"
|
|
1304
1376
|
tabindex="-1"
|
|
1305
1377
|
>Disabled link</a>
|
|
1306
1378
|
</li>
|
|
1307
|
-
<li>
|
|
1379
|
+
<li role="none">
|
|
1308
1380
|
<button
|
|
1309
1381
|
class="pf-v5-c-dropdown__menu-item"
|
|
1382
|
+
role="menuitem"
|
|
1310
1383
|
type="button"
|
|
1311
1384
|
disabled
|
|
1312
1385
|
>Disabled action</button>
|
|
1313
1386
|
</li>
|
|
1314
1387
|
<li class="pf-v5-c-divider" role="separator"></li>
|
|
1315
|
-
<li>
|
|
1316
|
-
<a
|
|
1388
|
+
<li role="none">
|
|
1389
|
+
<a
|
|
1390
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
1391
|
+
role="menuitem"
|
|
1392
|
+
href="#"
|
|
1393
|
+
>Separated link</a>
|
|
1317
1394
|
</li>
|
|
1318
1395
|
</ul>
|
|
1319
1396
|
</div>
|
|
@@ -1362,31 +1439,42 @@ cssPrefix: pf-v5-c-card
|
|
|
1362
1439
|
class="pf-v5-c-dropdown__menu pf-m-align-right"
|
|
1363
1440
|
aria-labelledby="card-toggle-on-right-example-dropdown-kebab-button"
|
|
1364
1441
|
hidden
|
|
1442
|
+
role="menu"
|
|
1365
1443
|
>
|
|
1366
|
-
<li>
|
|
1367
|
-
<a class="pf-v5-c-dropdown__menu-item" href="#">Link</a>
|
|
1444
|
+
<li role="none">
|
|
1445
|
+
<a class="pf-v5-c-dropdown__menu-item" role="menuitem" href="#">Link</a>
|
|
1368
1446
|
</li>
|
|
1369
|
-
<li>
|
|
1370
|
-
<button
|
|
1447
|
+
<li role="none">
|
|
1448
|
+
<button
|
|
1449
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
1450
|
+
role="menuitem"
|
|
1451
|
+
type="button"
|
|
1452
|
+
>Action</button>
|
|
1371
1453
|
</li>
|
|
1372
|
-
<li>
|
|
1454
|
+
<li role="none">
|
|
1373
1455
|
<a
|
|
1374
1456
|
class="pf-v5-c-dropdown__menu-item pf-m-disabled"
|
|
1457
|
+
role="menuitem"
|
|
1375
1458
|
href="#"
|
|
1376
1459
|
aria-disabled="true"
|
|
1377
1460
|
tabindex="-1"
|
|
1378
1461
|
>Disabled link</a>
|
|
1379
1462
|
</li>
|
|
1380
|
-
<li>
|
|
1463
|
+
<li role="none">
|
|
1381
1464
|
<button
|
|
1382
1465
|
class="pf-v5-c-dropdown__menu-item"
|
|
1466
|
+
role="menuitem"
|
|
1383
1467
|
type="button"
|
|
1384
1468
|
disabled
|
|
1385
1469
|
>Disabled action</button>
|
|
1386
1470
|
</li>
|
|
1387
1471
|
<li class="pf-v5-c-divider" role="separator"></li>
|
|
1388
|
-
<li>
|
|
1389
|
-
<a
|
|
1472
|
+
<li role="none">
|
|
1473
|
+
<a
|
|
1474
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
1475
|
+
role="menuitem"
|
|
1476
|
+
href="#"
|
|
1477
|
+
>Separated link</a>
|
|
1390
1478
|
</li>
|
|
1391
1479
|
</ul>
|
|
1392
1480
|
</div>
|
|
@@ -93,7 +93,11 @@ cssPrefix: ['pf-v5-c-chip', 'pf-v5-c-chip-group']
|
|
|
93
93
|
### Simple inline chip group with overflow
|
|
94
94
|
|
|
95
95
|
```html
|
|
96
|
-
<div
|
|
96
|
+
<div
|
|
97
|
+
class="pf-v5-c-chip-group"
|
|
98
|
+
role="group"
|
|
99
|
+
aria-label="simple inline chip group with overflow"
|
|
100
|
+
>
|
|
97
101
|
<div class="pf-v5-c-chip-group__main">
|
|
98
102
|
<ul
|
|
99
103
|
class="pf-v5-c-chip-group__list"
|
|
@@ -179,7 +183,11 @@ cssPrefix: ['pf-v5-c-chip', 'pf-v5-c-chip-group']
|
|
|
179
183
|
### Simple inline chip group expanded
|
|
180
184
|
|
|
181
185
|
```html
|
|
182
|
-
<div
|
|
186
|
+
<div
|
|
187
|
+
class="pf-v5-c-chip-group"
|
|
188
|
+
role="group"
|
|
189
|
+
aria-label="simple inline chip group expanded"
|
|
190
|
+
>
|
|
183
191
|
<div class="pf-v5-c-chip-group__main">
|
|
184
192
|
<ul
|
|
185
193
|
class="pf-v5-c-chip-group__list"
|
|
@@ -307,11 +315,14 @@ cssPrefix: ['pf-v5-c-chip', 'pf-v5-c-chip-group']
|
|
|
307
315
|
### Chip group with categories
|
|
308
316
|
|
|
309
317
|
```html
|
|
310
|
-
<div
|
|
318
|
+
<div
|
|
319
|
+
class="pf-v5-c-chip-group pf-m-category"
|
|
320
|
+
role="group"
|
|
321
|
+
aria-labelledby="chip-group-with-categories-label"
|
|
322
|
+
>
|
|
311
323
|
<div class="pf-v5-c-chip-group__main">
|
|
312
324
|
<span
|
|
313
325
|
class="pf-v5-c-chip-group__label"
|
|
314
|
-
aria-hidden="true"
|
|
315
326
|
id="chip-group-with-categories-label"
|
|
316
327
|
>Category one</span>
|
|
317
328
|
<ul
|
|
@@ -391,11 +402,14 @@ cssPrefix: ['pf-v5-c-chip', 'pf-v5-c-chip-group']
|
|
|
391
402
|
### Chip group with categories and overflow
|
|
392
403
|
|
|
393
404
|
```html
|
|
394
|
-
<div
|
|
405
|
+
<div
|
|
406
|
+
class="pf-v5-c-chip-group pf-m-category"
|
|
407
|
+
role="group"
|
|
408
|
+
aria-labelledby="chip-group-with-categories-overflow-label"
|
|
409
|
+
>
|
|
395
410
|
<div class="pf-v5-c-chip-group__main">
|
|
396
411
|
<span
|
|
397
412
|
class="pf-v5-c-chip-group__label"
|
|
398
|
-
aria-hidden="true"
|
|
399
413
|
id="chip-group-with-categories-overflow-label"
|
|
400
414
|
>Category one</span>
|
|
401
415
|
<ul
|
|
@@ -482,11 +496,14 @@ cssPrefix: ['pf-v5-c-chip', 'pf-v5-c-chip-group']
|
|
|
482
496
|
### Chip group with categories and overflow expanded
|
|
483
497
|
|
|
484
498
|
```html
|
|
485
|
-
<div
|
|
499
|
+
<div
|
|
500
|
+
class="pf-v5-c-chip-group pf-m-category"
|
|
501
|
+
role="group"
|
|
502
|
+
aria-labelledby="chip-group-with-categories-overflow-expanded-label"
|
|
503
|
+
>
|
|
486
504
|
<div class="pf-v5-c-chip-group__main">
|
|
487
505
|
<span
|
|
488
506
|
class="pf-v5-c-chip-group__label"
|
|
489
|
-
aria-hidden="true"
|
|
490
507
|
id="chip-group-with-categories-overflow-expanded-label"
|
|
491
508
|
>Category one</span>
|
|
492
509
|
<ul
|
|
@@ -615,11 +632,14 @@ cssPrefix: ['pf-v5-c-chip', 'pf-v5-c-chip-group']
|
|
|
615
632
|
### Chip group with removable categories
|
|
616
633
|
|
|
617
634
|
```html
|
|
618
|
-
<div
|
|
635
|
+
<div
|
|
636
|
+
class="pf-v5-c-chip-group pf-m-category"
|
|
637
|
+
role="group"
|
|
638
|
+
aria-labelledby="chip-group-with-categories-removable-label"
|
|
639
|
+
>
|
|
619
640
|
<div class="pf-v5-c-chip-group__main">
|
|
620
641
|
<span
|
|
621
642
|
class="pf-v5-c-chip-group__label"
|
|
622
|
-
aria-hidden="true"
|
|
623
643
|
id="chip-group-with-categories-removable-label"
|
|
624
644
|
>Category one</span>
|
|
625
645
|
<ul
|
|
@@ -808,7 +828,7 @@ The chip group requires the [chip component](#chip-overview). **All single chip
|
|
|
808
828
|
|
|
809
829
|
| Attributes for closable chip group button | Applied to | Outcome |
|
|
810
830
|
| -- | -- | -- |
|
|
811
|
-
| `role="list"` | `.pf-v5-c-chip-group__list` | Indicates that the chip group list is a list element. This role is redundant since `.pf-v5-c-chip-group__list` is a `<ul>` but is required for screen readers to announce the list
|
|
831
|
+
| `role="list"` | `.pf-v5-c-chip-group__list` | Indicates that the chip group list is a list element. This role is redundant since `.pf-v5-c-chip-group__list` is a `<ul>` but is required for screen readers to announce the list properly. **Required** |
|
|
812
832
|
| `aria-label="[button label text]"` | `.pf-v5-c-chip-group__close > button` | Provides an accessible name for a chip group close when an icon is used instead of text. Required when an icon is used with no supporting text. **Required** |
|
|
813
833
|
| `aria-labelledby="[id value of .pf-v5-c-chip-group__close > button] [id value of .pf-v5-c-chip-group__label]"` | `.pf-v5-c-chip-group__close > button` | Provides an accessible name for the button. **Required** |
|
|
814
834
|
|