@patternfly/patternfly 5.0.0-alpha.4 → 5.0.0-alpha.41
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 +4 -4
- package/RELEASE-NOTES.md +18 -1
- package/assets/icons/iconUnicodes.json +1 -0
- package/assets/images/pfbg-icon.svg +1 -0
- package/assets/pficon/pficon.scss +7 -2
- package/assets/pficon/pficon.woff2 +0 -0
- package/base/_base.scss +0 -18
- package/base/_chart-globals.scss +0 -4
- package/base/_common.scss +0 -22
- package/base/_fa-icons.scss +1 -2
- package/base/_fonts.scss +22 -27
- package/base/_globals.scss +92 -86
- package/base/_icons.scss +1 -28
- package/base/_svg-icons.scss +6 -0
- package/base/_variables.scss +4 -4
- package/base/patternfly-common.css +0 -10
- package/base/patternfly-fa-icons.css +1 -1
- package/base/patternfly-fonts.css +17 -17
- package/base/patternfly-globals.css +35 -41
- package/base/patternfly-icons.css +8 -22
- package/base/patternfly-pf-icons.css +6 -2
- package/base/patternfly-themes.css +0 -42
- package/base/patternfly-variables.css +3 -3
- package/base/themes/dark/_globals.scss +1 -1
- package/base/themes/dark/_variables.scss +1 -1
- package/components/AboutModalBox/about-modal-box.css +20 -50
- package/components/AboutModalBox/about-modal-box.scss +22 -14
- package/components/Accordion/accordion.css +2 -0
- package/components/Accordion/accordion.scss +2 -0
- package/components/Alert/alert.css +17 -8
- package/components/Alert/alert.scss +21 -7
- package/components/Alert/themes/dark/alert.scss +1 -1
- package/components/AppLauncher/app-launcher.css +2 -0
- package/components/AppLauncher/app-launcher.scss +2 -0
- package/components/Avatar/avatar.scss +2 -2
- package/components/BackgroundImage/background-image.css +8 -35
- package/components/BackgroundImage/background-image.scss +17 -43
- package/components/Banner/banner.css +14 -52
- package/components/Banner/banner.scss +9 -13
- package/components/Breadcrumb/breadcrumb.css +2 -0
- package/components/Breadcrumb/breadcrumb.scss +2 -0
- package/components/CalendarMonth/calendar-month.css +2 -2
- package/components/CalendarMonth/calendar-month.scss +3 -3
- package/components/Card/card.css +115 -50
- package/components/Card/card.scss +164 -63
- package/components/Chip/chip.css +33 -24
- package/components/Chip/chip.scss +40 -31
- package/components/ChipGroup/chip-group.css +27 -17
- package/components/ChipGroup/chip-group.scss +36 -22
- package/components/Content/content.css +11 -5
- package/components/Content/content.scss +17 -9
- package/components/ContextSelector/context-selector.css +13 -6
- package/components/ContextSelector/context-selector.scss +14 -7
- package/components/DataList/data-list-grid.css +7 -7
- package/components/DataList/data-list-grid.scss +1 -1
- package/components/DataList/data-list.css +46 -40
- package/components/DataList/data-list.scss +37 -28
- package/components/DatePicker/date-picker.css +0 -8
- package/components/DatePicker/date-picker.scss +0 -9
- package/components/DescriptionList/description-list.css +7 -7
- package/components/DescriptionList/description-list.scss +7 -7
- package/components/Divider/divider.css +2 -2
- package/components/Divider/divider.scss +3 -3
- package/components/Drawer/drawer.css +15 -16
- package/components/Drawer/drawer.scss +2 -3
- package/components/Dropdown/dropdown.css +26 -25
- package/components/Dropdown/dropdown.scss +17 -18
- package/components/DualListSelector/dual-list-selector.css +1 -1
- package/components/DualListSelector/dual-list-selector.scss +1 -1
- package/components/EmptyState/empty-state.css +46 -52
- package/components/EmptyState/empty-state.scss +58 -57
- package/components/ExpandableSection/expandable-section.css +2 -0
- package/components/ExpandableSection/expandable-section.scss +2 -0
- package/components/Form/form.css +14 -12
- package/components/Form/form.scss +9 -7
- package/components/FormControl/form-control.css +2 -5
- package/components/FormControl/themes/dark/form-control.scss +2 -6
- package/components/HelperText/helper-text.css +4 -0
- package/components/HelperText/helper-text.scss +5 -0
- package/components/Hint/hint.css +2 -2
- package/components/Hint/hint.scss +2 -2
- package/components/Icon/icon.css +3 -3
- package/components/Icon/icon.scss +3 -3
- package/components/InputGroup/input-group.css +61 -85
- package/components/InputGroup/input-group.scss +55 -61
- package/components/InputGroup/themes/dark/input-group.scss +11 -25
- package/components/Label/label.css +49 -36
- package/components/Label/label.scss +53 -38
- package/components/Label/themes/dark/label.scss +2 -2
- package/components/LabelGroup/label-group.css +26 -22
- package/components/LabelGroup/label-group.scss +31 -26
- package/components/LogViewer/log-viewer.css +0 -38
- package/components/Login/login.css +20 -60
- package/components/Login/login.scss +16 -18
- package/components/Login/themes/dark/login.scss +4 -0
- package/components/Masthead/masthead.css +4 -42
- package/components/Masthead/masthead.scss +4 -4
- package/components/Menu/menu.css +9 -6
- package/components/Menu/menu.scss +34 -31
- package/components/MenuToggle/menu-toggle.css +3 -1
- package/components/MenuToggle/menu-toggle.scss +3 -1
- package/components/ModalBox/modal-box.css +12 -11
- package/components/ModalBox/modal-box.scss +14 -14
- package/components/MultipleFileUpload/multiple-file-upload.css +6 -6
- package/components/MultipleFileUpload/multiple-file-upload.scss +6 -6
- package/components/Nav/nav.css +1 -1
- package/components/Nav/nav.scss +2 -2
- package/components/NotificationDrawer/notification-drawer.css +8 -8
- package/components/NotificationDrawer/notification-drawer.scss +8 -8
- package/components/OptionsMenu/options-menu.css +8 -10
- package/components/OptionsMenu/options-menu.scss +9 -11
- package/components/Page/page.css +101 -122
- package/components/Page/page.scss +49 -21
- package/components/Pagination/pagination.css +2 -110
- package/components/Pagination/pagination.scss +0 -6
- package/components/Popover/popover.css +31 -37
- package/components/Popover/popover.scss +32 -37
- package/components/Popover/themes/dark/popover.scss +3 -9
- package/components/Progress/progress.css +13 -10
- package/components/Progress/progress.scss +13 -10
- package/components/ProgressStepper/progress-stepper.css +5 -5
- package/components/ProgressStepper/progress-stepper.scss +5 -5
- package/components/SearchInput/search-input.css +4 -2
- package/components/SearchInput/search-input.scss +4 -2
- package/components/Select/select.css +1 -1
- package/components/Select/select.scss +1 -1
- package/components/Sidebar/sidebar.css +69 -26
- package/components/Sidebar/sidebar.scss +84 -27
- package/components/SimpleList/simple-list.css +1 -1
- package/components/SimpleList/simple-list.scss +2 -2
- package/components/Spinner/spinner.css +4 -133
- package/components/Spinner/spinner.scss +4 -173
- package/components/Table/table-grid.css +28 -28
- package/components/Table/table-scrollable.css +31 -26
- package/components/Table/table-scrollable.scss +33 -28
- package/components/Table/table-tree-view.css +14 -4
- package/components/Table/table-tree-view.scss +15 -0
- package/components/Table/table.css +67 -65
- package/components/Table/table.scss +65 -62
- package/components/Tabs/tabs.css +0 -4
- package/components/Tabs/tabs.scss +0 -7
- package/components/TextInputGroup/text-input-group.css +6 -4
- package/components/TextInputGroup/text-input-group.scss +6 -5
- package/components/Tile/tile.css +1 -1
- package/components/Tile/tile.scss +1 -1
- package/components/Timestamp/timestamp.css +3 -3
- package/components/Timestamp/timestamp.scss +3 -3
- package/components/Toolbar/toolbar.css +78 -43
- package/components/Toolbar/toolbar.scss +50 -10
- package/components/Tooltip/themes/dark/tooltip.scss +1 -11
- package/components/Tooltip/tooltip.css +7 -12
- package/components/Tooltip/tooltip.scss +6 -3
- package/components/TreeView/tree-view.css +7 -15
- package/components/TreeView/tree-view.scss +7 -18
- package/components/Wizard/wizard.css +16 -39
- package/components/Wizard/wizard.scss +20 -2
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +20 -14
- package/docs/components/Accordion/examples/Accordion.md +12 -12
- package/docs/components/ActionList/examples/ActionList.md +6 -6
- package/docs/components/Alert/examples/Alert.md +29 -29
- package/docs/components/AlertGroup/examples/AlertGroup.md +15 -15
- package/docs/components/AppLauncher/examples/application-launcher.md +52 -46
- package/docs/components/Avatar/examples/Avatar.md +11 -11
- package/docs/components/BackToTop/examples/BackToTop.md +4 -4
- package/docs/components/Backdrop/examples/Backdrop.md +4 -4
- package/docs/components/BackgroundImage/examples/BackgroundImage.md +13 -29
- package/docs/components/Badge/examples/Badge.md +5 -5
- package/docs/components/Banner/examples/Banner.md +8 -8
- package/docs/components/Brand/examples/Brand.md +9 -9
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +20 -20
- package/docs/components/Button/examples/Button.md +51 -55
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +301 -284
- package/docs/components/Card/examples/Card.md +676 -116
- package/docs/components/Check/examples/Check.md +16 -19
- package/docs/components/Chip/examples/Chip.md +70 -52
- package/docs/components/ChipGroup/examples/ChipGroup.md +452 -673
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +22 -22
- package/docs/components/CodeBlock/examples/CodeBlock.md +9 -9
- package/docs/components/CodeEditor/examples/CodeEditor.md +54 -35
- package/docs/components/Content/examples/Content.md +37 -9
- package/docs/components/ContextSelector/examples/context-selector.css +5 -1
- package/docs/components/ContextSelector/examples/context-selector.md +87 -80
- package/docs/components/DataList/examples/DataList.md +239 -202
- package/docs/components/DatePicker/examples/DatePicker.md +139 -104
- package/docs/components/DescriptionList/examples/DescriptionList.md +24 -24
- package/docs/components/Divider/examples/Divider.md +10 -10
- package/docs/components/DragDrop/examples/DragDrop.md +5 -5
- package/docs/components/Drawer/examples/Drawer.md +43 -43
- package/docs/components/Dropdown/examples/Dropdown.css +5 -2
- package/docs/components/Dropdown/examples/Dropdown.md +125 -100
- package/docs/components/DualListSelector/examples/DualListSelector.md +201 -197
- package/docs/components/EmptyState/examples/EmptyState.md +130 -82
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +23 -23
- package/docs/components/FileUpload/examples/FileUpload.md +150 -110
- package/docs/components/Form/examples/Form.md +152 -130
- package/docs/components/FormControl/examples/FormControl.md +21 -20
- package/docs/components/HelperText/examples/HelperText.md +24 -35
- package/docs/components/Hint/examples/Hint.md +7 -7
- package/docs/components/Icon/examples/Icon.md +11 -12
- package/docs/components/InlineEdit/examples/InlineEdit.md +29 -27
- package/docs/components/InputGroup/examples/InputGroup.md +229 -179
- package/docs/components/JumpLinks/examples/JumpLinks.md +35 -35
- package/docs/components/Label/examples/Label.md +1427 -746
- package/docs/components/LabelGroup/examples/LabelGroup.md +295 -242
- package/docs/components/List/examples/List.md +18 -18
- package/docs/components/LogViewer/examples/LogViewer.md +79 -74
- package/docs/components/Login/examples/Login.md +103 -181
- package/docs/components/Masthead/examples/masthead.md +9 -9
- package/docs/components/Menu/examples/Menu.md +93 -85
- package/docs/components/MenuToggle/examples/MenuToggle.md +29 -28
- package/docs/components/ModalBox/examples/ModalBox.md +113 -92
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +27 -26
- package/docs/components/Nav/examples/Navigation.md +69 -69
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +8 -8
- package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +64 -64
- package/docs/components/NumberInput/examples/NumberInput.md +311 -239
- package/docs/components/OptionsMenu/examples/options-menu.md +28 -28
- package/docs/components/OverflowMenu/examples/overflow-menu.md +25 -25
- package/docs/components/Page/examples/Page.css +7 -1
- package/docs/components/Page/examples/Page.md +81 -54
- package/docs/components/Pagination/examples/Pagination.md +27 -27
- package/docs/components/Panel/examples/Panel.md +10 -10
- package/docs/components/Popover/examples/Popover.md +206 -149
- package/docs/components/Progress/examples/Progress.md +32 -61
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +45 -39
- package/docs/components/Radio/examples/Radio.md +12 -11
- package/docs/components/SearchInput/examples/SearchInput.md +185 -148
- package/docs/components/Select/examples/Select.md +372 -318
- package/docs/components/Sidebar/examples/Sidebar.md +70 -14
- package/docs/components/SimpleList/examples/SimpleList.md +15 -15
- package/docs/components/Skeleton/examples/Skeleton.md +8 -8
- package/docs/components/SkipToContent/examples/SkipToContent.md +5 -5
- package/docs/components/Slider/examples/Slider.md +84 -62
- package/docs/components/Spinner/examples/Spinner.md +18 -67
- package/docs/components/Switch/examples/Switch.md +19 -19
- package/docs/components/TabContent/examples/TabContent.md +13 -13
- package/docs/components/Table/examples/Table.css +4 -0
- package/docs/components/Table/examples/Table.md +5212 -5750
- package/docs/components/Tabs/examples/Tabs.md +155 -155
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +523 -406
- package/docs/components/Tile/examples/Tile.md +16 -17
- package/docs/components/Timestamp/examples/Timestamp.md +5 -5
- package/docs/components/Title/examples/Title.md +17 -17
- package/docs/components/ToggleGroup/examples/toggle-group.md +13 -13
- package/docs/components/Toolbar/examples/Toolbar.md +848 -726
- package/docs/components/Tooltip/examples/Tooltip.md +10 -10
- package/docs/components/TreeView/examples/TreeView.md +34 -34
- package/docs/components/Truncate/examples/Truncate.md +4 -5
- package/docs/components/Wizard/examples/Wizard.md +119 -127
- package/docs/demos/AboutModal/examples/AboutModal.md +4 -5
- package/docs/demos/Alert/examples/Alert.md +118 -71
- package/docs/demos/BackToTop/examples/BackToTop.md +4 -4
- package/docs/demos/Banner/examples/Banner.md +8 -9
- package/docs/demos/Button/examples/Button.md +10 -5
- package/docs/demos/Card/examples/Card.md +246 -168
- package/docs/demos/CardView/examples/CardView.md +57 -30
- package/docs/demos/ContextSelector/examples/ContextSelector.md +18 -18
- package/docs/demos/Dashboard/examples/Dashboard.md +61 -38
- package/docs/demos/DataList/examples/DataList.md +312 -255
- package/docs/demos/DescriptionList/examples/DescriptionList.md +33 -22
- package/docs/demos/Drawer/examples/Drawer.md +24 -22
- package/docs/demos/Form/examples/BasicForms.md +220 -213
- package/docs/demos/HelperText/examples/HelperText.md +16 -14
- package/docs/demos/JumpLinks/examples/JumpLinks.md +28 -28
- package/docs/demos/Masthead/examples/Masthead.md +302 -284
- package/docs/demos/Modal/examples/Modal.md +54 -66
- package/docs/demos/Nav/examples/Nav.md +47 -47
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +70 -58
- package/docs/demos/Page/examples/Page.md +982 -51
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +22 -18
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +121 -106
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +345 -311
- package/docs/demos/Skeleton/examples/Skeleton.md +4 -4
- package/docs/demos/Table/examples/Table.md +3373 -1333
- package/docs/demos/Tabs/examples/Tabs.md +141 -90
- package/docs/demos/Toolbar/examples/Toolbar.md +1994 -329
- package/docs/demos/Wizard/examples/Wizard.md +289 -266
- package/docs/layouts/Bullseye/examples/Bullseye.md +4 -4
- package/docs/layouts/Flex/examples/Flex.md +98 -98
- package/docs/layouts/Gallery/examples/Gallery.md +7 -7
- package/docs/layouts/Grid/examples/Grid.md +9 -9
- package/docs/layouts/Level/examples/Level.md +5 -5
- package/docs/layouts/Split/examples/Split.md +7 -7
- package/docs/layouts/Stack/examples/Stack.md +6 -6
- package/docs/utilities/Accessibility/examples/Accessibility.md +5 -5
- package/docs/utilities/Alignment/examples/Alignment.md +7 -7
- package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +13 -13
- package/docs/utilities/BoxShadow/examples/box-shadow.md +23 -23
- package/docs/utilities/Display/examples/Display.md +12 -12
- package/docs/utilities/Flex/examples/Flex.md +35 -35
- package/docs/utilities/Float/examples/Float.md +5 -5
- package/docs/utilities/Sizing/examples/Sizing.md +51 -51
- package/docs/utilities/Spacing/examples/Spacing.md +35 -35
- package/docs/utilities/Text/examples/Text.md +31 -31
- package/icons/{pf-icons.json → pf-icons.mjs} +2 -1
- package/layouts/Gallery/gallery.css +1 -1
- package/layouts/Gallery/gallery.scss +1 -1
- package/layouts/Grid/grid.css +7 -7
- package/layouts/Grid/grid.scss +2 -2
- package/package.json +60 -66
- package/patternfly-addons.css +48 -48
- package/{patternfly-base-no-reset.css → patternfly-base-no-globals.css} +28 -73
- package/{patternfly-base-no-reset.scss → patternfly-base-no-globals.scss} +1 -0
- package/patternfly-base.css +63 -114
- package/{patternfly-no-reset.css → patternfly-no-globals.css} +1206 -2449
- package/{patternfly-no-reset.scss → patternfly-no-globals.scss} +1 -0
- package/patternfly.css +1234 -2483
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/functions.scss +8 -24
- package/sass-utilities/mixins.scss +15 -39
- package/sass-utilities/placeholders.scss +0 -23
- package/sass-utilities/scss-variables.scss +5 -6
- package/sass-utilities/themes/dark/placeholders.scss +0 -22
- package/sass-utilities/themes/dark/scss-variables.scss +1 -1
- package/utilities/Spacing/spacing.scss +2 -2
- package/utilities/Text/text.css +48 -48
- package/utilities/Text/text.scss +6 -6
- package/utilities/Text/themes/dark/text.scss +2 -2
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Black.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-BlackItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Bold.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-BoldItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Italic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Medium.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-MediumItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Regular.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Bold.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-BoldItalic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Italic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Medium.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-MediumItalic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Regular.woff +0 -0
- package/assets/fonts/webfonts/fa-solid-900.woff +0 -0
- package/assets/pficon/pficon.woff +0 -0
- package/base/_shield-inheritable.scss +0 -69
- package/base/_shield-noninheritable.scss +0 -13
- package/base/patternfly-shield-inheritable.css +0 -66
- package/base/patternfly-shield-inheritable.scss +0 -4
- package/base/patternfly-shield-noninheritable.css +0 -9
- package/base/patternfly-shield-noninheritable.scss +0 -4
- package/sass-utilities/bs-variables.scss +0 -709
|
@@ -42,26 +42,26 @@ cssPrefix: pf-c-data-list
|
|
|
42
42
|
|
|
43
43
|
### Accessibility
|
|
44
44
|
|
|
45
|
-
| Attribute
|
|
46
|
-
|
|
|
47
|
-
| `role="list"`
|
|
48
|
-
| `aria-label`
|
|
49
|
-
| `aria-labelledby`
|
|
50
|
-
| `id`
|
|
45
|
+
| Attribute | Applied to | Outcome |
|
|
46
|
+
| -- | -- | -- |
|
|
47
|
+
| `role="list"` | `.pf-c-data-list` | Indicates that the data list is a list. **Required** |
|
|
48
|
+
| `aria-label` | `.pf-c-data-list` | Provides an accessible name for the data list. **Required** |
|
|
49
|
+
| `aria-labelledby` | `.pf-c-data-list__item` | Provides an accessible description for data list item. **Required** |
|
|
50
|
+
| `id` | `.pf-c-data-list__cell`, `.pf-c-data-list__cell *` | Provides a reference for data list item description. **Required** |
|
|
51
51
|
|
|
52
52
|
### Usage
|
|
53
53
|
|
|
54
|
-
| Class
|
|
55
|
-
|
|
|
56
|
-
| `.pf-c-data-list`
|
|
57
|
-
| `.pf-c-data-list__item`
|
|
58
|
-
| `.pf-c-data-list__item-row`
|
|
59
|
-
| `.pf-c-data-list__item-content` | `<div>`
|
|
60
|
-
| `.pf-c-data-list__cell`
|
|
61
|
-
| `.pf-c-data-list__cell-text`
|
|
62
|
-
| `.pf-m-align-left`
|
|
63
|
-
| `.pf-m-no-fill`
|
|
64
|
-
| `.pf-m-align-right`
|
|
54
|
+
| Class | Applied to | Outcome |
|
|
55
|
+
| -- | -- | -- |
|
|
56
|
+
| `.pf-c-data-list` | `<ul>` | Initiates a data list. **Required** |
|
|
57
|
+
| `.pf-c-data-list__item` | `<li>` | Initiates a data list item. **Required** |
|
|
58
|
+
| `.pf-c-data-list__item-row` | `<div>` | Initiates a data list item row. **Required** |
|
|
59
|
+
| `.pf-c-data-list__item-content` | `<div>` | Initiates a container for data list content. **Required**|
|
|
60
|
+
| `.pf-c-data-list__cell` | `*` | Initiates a data list content cell. **Required** |
|
|
61
|
+
| `.pf-c-data-list__cell-text` | `<span>` | Initiates a data list content cell text element. |
|
|
62
|
+
| `.pf-m-align-left` | `.pf-c-data-list__cell` | Modifies a data list cell to not grow and align-left when its the first data-list\_\_cell element. |
|
|
63
|
+
| `.pf-m-no-fill` | `.pf-c-data-list__cell` | Modifies a data list cell to not fill the available horizontal space. |
|
|
64
|
+
| `.pf-m-align-right` | `.pf-c-data-list__cell` | Modifies a data list cell to align-right. |
|
|
65
65
|
|
|
66
66
|
### With headings
|
|
67
67
|
|
|
@@ -127,11 +127,14 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
127
127
|
<div class="pf-c-data-list__item-row">
|
|
128
128
|
<div class="pf-c-data-list__item-control">
|
|
129
129
|
<div class="pf-c-data-list__check">
|
|
130
|
-
<
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
<div class="pf-c-check pf-m-standalone">
|
|
131
|
+
<input
|
|
132
|
+
class="pf-c-check__input"
|
|
133
|
+
type="checkbox"
|
|
134
|
+
name="data-list-checkboxes-actions-addl-cells-item-1-checkbox"
|
|
135
|
+
aria-labelledby="data-list-checkboxes-actions-addl-cells-item-1"
|
|
136
|
+
/>
|
|
137
|
+
</div>
|
|
135
138
|
</div>
|
|
136
139
|
</div>
|
|
137
140
|
<div class="pf-c-data-list__item-content">
|
|
@@ -209,11 +212,14 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
209
212
|
<div class="pf-c-data-list__item-row">
|
|
210
213
|
<div class="pf-c-data-list__item-control">
|
|
211
214
|
<div class="pf-c-data-list__check">
|
|
212
|
-
<
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
215
|
+
<div class="pf-c-check pf-m-standalone">
|
|
216
|
+
<input
|
|
217
|
+
class="pf-c-check__input"
|
|
218
|
+
type="checkbox"
|
|
219
|
+
name="data-list-checkboxes-actions-addl-cells-item-2-checkbox"
|
|
220
|
+
aria-labelledby="data-list-checkboxes-actions-addl-cells-item-2"
|
|
221
|
+
/>
|
|
222
|
+
</div>
|
|
217
223
|
</div>
|
|
218
224
|
</div>
|
|
219
225
|
<div class="pf-c-data-list__item-content">
|
|
@@ -286,11 +292,14 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
286
292
|
<div class="pf-c-data-list__item-row">
|
|
287
293
|
<div class="pf-c-data-list__item-control">
|
|
288
294
|
<div class="pf-c-data-list__check">
|
|
289
|
-
<
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
295
|
+
<div class="pf-c-check pf-m-standalone">
|
|
296
|
+
<input
|
|
297
|
+
class="pf-c-check__input"
|
|
298
|
+
type="checkbox"
|
|
299
|
+
name="data-list-checkboxes-actions-addl-cells-item-3-checkbox"
|
|
300
|
+
aria-labelledby="data-list-checkboxes-actions-addl-cells-item-3"
|
|
301
|
+
/>
|
|
302
|
+
</div>
|
|
294
303
|
</div>
|
|
295
304
|
</div>
|
|
296
305
|
<div class="pf-c-data-list__item-content">
|
|
@@ -363,23 +372,23 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
363
372
|
|
|
364
373
|
### Accessibility
|
|
365
374
|
|
|
366
|
-
| Attribute
|
|
367
|
-
|
|
|
368
|
-
| `aria-label="[descriptive text]"`
|
|
369
|
-
| `aria-labelledby="{title_cell_id}"`
|
|
370
|
-
| `aria-labelledby="{title_cell_id} {data_list_action_id}"`
|
|
371
|
-
| `id`
|
|
375
|
+
| Attribute | Applied to | Outcome |
|
|
376
|
+
| -- | -- | -- |
|
|
377
|
+
| `aria-label="[descriptive text]"` | `.pf-c-data-list__action` > `.pf-c-button` | Provides an accessible label buttons. **Required** |
|
|
378
|
+
| `aria-labelledby="{title_cell_id}"` | `.pf-c-data-list__check` > `.pf-c-check__input` | Creates an accessible label for the checkbox based on the title cell. **Required** |
|
|
379
|
+
| `aria-labelledby="{title_cell_id} {data_list_action_id}"` | `.pf-c-data-list__action` > `.pf-c-button` | Creates an accessible label for the action button using the title cell and button label **Required** |
|
|
380
|
+
| `id` | `.pf-c-data-list__cell > *`, `.pf-c-data-list__check` > `.pf-c-check__input`, `.pf-c-data-list__action` > `.pf-c-button` | Provides a reference for interactive elements. **Required** |
|
|
372
381
|
|
|
373
382
|
### Usage
|
|
374
383
|
|
|
375
|
-
| Class
|
|
376
|
-
|
|
|
377
|
-
| `.pf-c-data-list__item-control`
|
|
378
|
-
| `.pf-c-data-list__item-action`
|
|
379
|
-
| `.pf-c-data-list__check`
|
|
380
|
-
| `.pf-c-data-list__action`
|
|
381
|
-
| `.pf-m-hidden{-on-[breakpoint]}`
|
|
382
|
-
| `.pf-m-visible{-on-[breakpoint]}` | `.pf-c-data-list__item-action` | Shows an actions container at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes).
|
|
384
|
+
| Class | Applied to | Outcome |
|
|
385
|
+
| -- | -- | -- |
|
|
386
|
+
| `.pf-c-data-list__item-control` | `<div>` | Initiates a container for data list controls. For example, add `.pf-c-data-list__check` here. **Required** |
|
|
387
|
+
| `.pf-c-data-list__item-action` | `<div>` | Initiates a container for the data list actions. For example, add `.pf-c-data-list__action` here. **Required** |
|
|
388
|
+
| `.pf-c-data-list__check` | `<div>` | Initiates a data list check cell. **Required** |
|
|
389
|
+
| `.pf-c-data-list__action` | `<div>` | Initiates a data list action button cell. **Required** |
|
|
390
|
+
| `.pf-m-hidden{-on-[breakpoint]}` | `.pf-c-data-list__item-action` | Hides an actions container at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes), or hides it at all breakpoints with `.pf-m-hidden`. |
|
|
391
|
+
| `.pf-m-visible{-on-[breakpoint]}` | `.pf-c-data-list__item-action` | Shows an actions container at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
383
392
|
|
|
384
393
|
### Expandable
|
|
385
394
|
|
|
@@ -1414,11 +1423,14 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1414
1423
|
<div class="pf-c-data-list__item-row">
|
|
1415
1424
|
<div class="pf-c-data-list__item-control">
|
|
1416
1425
|
<div class="pf-c-data-list__check">
|
|
1417
|
-
<
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1426
|
+
<div class="pf-c-check pf-m-standalone">
|
|
1427
|
+
<input
|
|
1428
|
+
class="pf-c-check__input"
|
|
1429
|
+
type="checkbox"
|
|
1430
|
+
name="data-list-compact-item-1-checkbox"
|
|
1431
|
+
aria-labelledby="data-list-compact-item-1"
|
|
1432
|
+
/>
|
|
1433
|
+
</div>
|
|
1422
1434
|
</div>
|
|
1423
1435
|
</div>
|
|
1424
1436
|
<div class="pf-c-data-list__item-content">
|
|
@@ -1491,11 +1503,14 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1491
1503
|
<div class="pf-c-data-list__item-row">
|
|
1492
1504
|
<div class="pf-c-data-list__item-control">
|
|
1493
1505
|
<div class="pf-c-data-list__check">
|
|
1494
|
-
<
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1506
|
+
<div class="pf-c-check pf-m-standalone">
|
|
1507
|
+
<input
|
|
1508
|
+
class="pf-c-check__input"
|
|
1509
|
+
type="checkbox"
|
|
1510
|
+
name="data-list-compact-item-2-checkbox"
|
|
1511
|
+
aria-labelledby="data-list-compact-item-2"
|
|
1512
|
+
/>
|
|
1513
|
+
</div>
|
|
1499
1514
|
</div>
|
|
1500
1515
|
</div>
|
|
1501
1516
|
<div class="pf-c-data-list__item-content">
|
|
@@ -1563,11 +1578,14 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1563
1578
|
<div class="pf-c-data-list__item-row">
|
|
1564
1579
|
<div class="pf-c-data-list__item-control">
|
|
1565
1580
|
<div class="pf-c-data-list__check">
|
|
1566
|
-
<
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1581
|
+
<div class="pf-c-check pf-m-standalone">
|
|
1582
|
+
<input
|
|
1583
|
+
class="pf-c-check__input"
|
|
1584
|
+
type="checkbox"
|
|
1585
|
+
name="data-list-compact-item-3-checkbox"
|
|
1586
|
+
aria-labelledby="data-list-compact-item-3"
|
|
1587
|
+
/>
|
|
1588
|
+
</div>
|
|
1571
1589
|
</div>
|
|
1572
1590
|
</div>
|
|
1573
1591
|
<div class="pf-c-data-list__item-content">
|
|
@@ -1638,28 +1656,28 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1638
1656
|
|
|
1639
1657
|
### Accessibility
|
|
1640
1658
|
|
|
1641
|
-
| Attribute
|
|
1642
|
-
|
|
|
1643
|
-
| `aria-expanded="true"`
|
|
1644
|
-
| `hidden`
|
|
1645
|
-
| `aria-label="[descriptive text]"`
|
|
1646
|
-
| `aria-labelledby="{title_cell_id} {button_id}"` | `.pf-c-data-list__toggle` > `.pf-c-button` | Establishes relationship between aria-label text and toggle button. **Required**
|
|
1647
|
-
| `id="{button_id}"`
|
|
1648
|
-
| `aria-controls="[id of element controlled]"`
|
|
1659
|
+
| Attribute | Applied to | Outcome |
|
|
1660
|
+
| -- | -- | -- |
|
|
1661
|
+
| `aria-expanded="true"` | `.pf-c-data-list__toggle` > `.pf-c-button` | Indicates that the expandable content is visible. **Required**|
|
|
1662
|
+
| `hidden` | `.pf-c-data-list__expandable-content` | Indicates that the expandable content is hidden. **Required**|
|
|
1663
|
+
| `aria-label="[descriptive text]"` | `.pf-c-data-list__toggle` > `.pf-c-button` | Provides an accessible name for toggle button. **Required**|
|
|
1664
|
+
| `aria-labelledby="{title_cell_id} {button_id}"` | `.pf-c-data-list__toggle` > `.pf-c-button` | Establishes relationship between aria-label text and toggle button. **Required**
|
|
1665
|
+
| `id="{button_id}"` | `.pf-c-data-list__toggle` > `.pf-c-button` | Provides a reference for toggle button description. **Required** |
|
|
1666
|
+
| `aria-controls="[id of element controlled]"` | `.pf-c-data-list__toggle` > `.pf-c-button` | Identifies the section controlled by the toggle button. **Required** |
|
|
1649
1667
|
|
|
1650
1668
|
### Usage
|
|
1651
1669
|
|
|
1652
|
-
| Class
|
|
1653
|
-
|
|
|
1654
|
-
| `.pf-c-data-list__item-control`
|
|
1655
|
-
| `.pf-c-data-list__toggle`
|
|
1656
|
-
| `.pf-c-data-list__toggle-icon`
|
|
1657
|
-
| `.pf-c-data-list__expandable-content`
|
|
1658
|
-
| `.pf-c-data-list__expandable-content-body` | `<div>`
|
|
1659
|
-
| `.pf-m-expanded`
|
|
1660
|
-
| `.pf-m-compact`
|
|
1661
|
-
| `.pf-m-no-padding`
|
|
1662
|
-
| `.pf-m-icon`
|
|
1670
|
+
| Class | Applied to | Outcome |
|
|
1671
|
+
| -- | -- | -- |
|
|
1672
|
+
| `.pf-c-data-list__item-control` | `<div>` | Initiates a container for data list controls. For example, add `.pf-c-data-list__toggle` here. **Required** |
|
|
1673
|
+
| `.pf-c-data-list__toggle` | `<div>` | Initiates a toggle button. |
|
|
1674
|
+
| `.pf-c-data-list__toggle-icon` | `<span>` | Initiates a toggle icon. |
|
|
1675
|
+
| `.pf-c-data-list__expandable-content` | `<div>` | Initiates an expandable content container. |
|
|
1676
|
+
| `.pf-c-data-list__expandable-content-body` | `<div>` | Initiates an expandable content container body. **Required** when `.pf-c-data-list__expandable-content` is used. |
|
|
1677
|
+
| `.pf-m-expanded` | `.pf-c-data-list__item` | Modifies for expanded state. |
|
|
1678
|
+
| `.pf-m-compact` | `.pf-c-data-list` | Modifies for compact variation. |
|
|
1679
|
+
| `.pf-m-no-padding` | `.pf-c-data-list__expandable-content-body` | Removes padding for the expandable content body. |
|
|
1680
|
+
| `.pf-m-icon` | `.pf-c-data-list__cell` | Modifies a data list cell to not grow and align-left when its the first data-list\_\_cell element. |
|
|
1663
1681
|
|
|
1664
1682
|
### Modifiers
|
|
1665
1683
|
|
|
@@ -1678,11 +1696,14 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1678
1696
|
<div class="pf-c-data-list__item-row">
|
|
1679
1697
|
<div class="pf-c-data-list__item-control">
|
|
1680
1698
|
<div class="pf-c-data-list__check">
|
|
1681
|
-
<
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1699
|
+
<div class="pf-c-check pf-m-standalone">
|
|
1700
|
+
<input
|
|
1701
|
+
class="pf-c-check__input"
|
|
1702
|
+
type="checkbox"
|
|
1703
|
+
name="data-list-default-fitting-item-1-checkbox"
|
|
1704
|
+
aria-labelledby="data-list-default-fitting-item-1"
|
|
1705
|
+
/>
|
|
1706
|
+
</div>
|
|
1686
1707
|
</div>
|
|
1687
1708
|
</div>
|
|
1688
1709
|
<div class="pf-c-data-list__item-content">
|
|
@@ -1716,11 +1737,14 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1716
1737
|
<div class="pf-c-data-list__item-row">
|
|
1717
1738
|
<div class="pf-c-data-list__item-control">
|
|
1718
1739
|
<div class="pf-c-data-list__check">
|
|
1719
|
-
<
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1740
|
+
<div class="pf-c-check pf-m-standalone">
|
|
1741
|
+
<input
|
|
1742
|
+
class="pf-c-check__input"
|
|
1743
|
+
type="checkbox"
|
|
1744
|
+
name="data-list-flex-modifiers-item-1-checkbox"
|
|
1745
|
+
aria-labelledby="data-list-flex-modifiers-item-1"
|
|
1746
|
+
/>
|
|
1747
|
+
</div>
|
|
1724
1748
|
</div>
|
|
1725
1749
|
</div>
|
|
1726
1750
|
<div class="pf-c-data-list__item-content">
|
|
@@ -1816,11 +1840,14 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1816
1840
|
</div>
|
|
1817
1841
|
|
|
1818
1842
|
<div class="pf-c-data-list__check">
|
|
1819
|
-
<
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1843
|
+
<div class="pf-c-check pf-m-standalone">
|
|
1844
|
+
<input
|
|
1845
|
+
class="pf-c-check__input"
|
|
1846
|
+
type="checkbox"
|
|
1847
|
+
name="data-list-flex-modifiers-2-item-1-checkbox"
|
|
1848
|
+
aria-labelledby="data-list-flex-modifiers-2-item-1"
|
|
1849
|
+
/>
|
|
1850
|
+
</div>
|
|
1824
1851
|
</div>
|
|
1825
1852
|
</div>
|
|
1826
1853
|
<div class="pf-c-data-list__item-content">
|
|
@@ -1912,64 +1939,62 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1912
1939
|
|
|
1913
1940
|
### Accessibility
|
|
1914
1941
|
|
|
1915
|
-
| Attribute
|
|
1916
|
-
|
|
|
1917
|
-
| `aria-controls="[id of element controlled]"` | `.pf-c-data-list__toggle` > `.pf-c-button`
|
|
1942
|
+
| Attribute | Applied to | Outcome |
|
|
1943
|
+
| -- | -- | -- |
|
|
1944
|
+
| `aria-controls="[id of element controlled]"` | `.pf-c-data-list__toggle` > `.pf-c-button` | Identifies the section controlled by the toggle button. **Required** |
|
|
1918
1945
|
|
|
1919
1946
|
### Usage
|
|
1920
1947
|
|
|
1921
|
-
| Class
|
|
1922
|
-
|
|
|
1948
|
+
| Class | Applied to | Outcome |
|
|
1949
|
+
| -- | -- | -- |
|
|
1923
1950
|
| `.pf-m-flex-{1, 2, 3, 4, 5}` | `.pf-c-data-list__cell` | Percentage based modifier for `.pf-c-data-list__cell` widths. |
|
|
1924
1951
|
|
|
1925
|
-
###
|
|
1952
|
+
### Clickable rows
|
|
1926
1953
|
|
|
1927
1954
|
```html
|
|
1928
1955
|
<ul
|
|
1929
1956
|
class="pf-c-data-list"
|
|
1930
1957
|
role="list"
|
|
1931
|
-
aria-label="
|
|
1932
|
-
id="data-list-
|
|
1958
|
+
aria-label="Clickable rows data list example"
|
|
1959
|
+
id="data-list-clickable-rows"
|
|
1933
1960
|
>
|
|
1934
1961
|
<li
|
|
1935
|
-
class="pf-c-data-list__item pf-m-
|
|
1936
|
-
aria-labelledby="data-list-
|
|
1962
|
+
class="pf-c-data-list__item pf-m-clickable pf-m-selected"
|
|
1963
|
+
aria-labelledby="data-list-clickable-rows-item-1"
|
|
1937
1964
|
tabindex="0"
|
|
1938
1965
|
>
|
|
1939
1966
|
<div class="pf-c-data-list__item-row">
|
|
1940
1967
|
<div class="pf-c-data-list__item-content">
|
|
1941
1968
|
<div class="pf-c-data-list__cell">
|
|
1942
|
-
<span id="data-list-
|
|
1969
|
+
<span id="data-list-clickable-rows-item-1">Primary content (clicked)</span>
|
|
1943
1970
|
</div>
|
|
1944
1971
|
</div>
|
|
1945
1972
|
</div>
|
|
1946
1973
|
</li>
|
|
1947
1974
|
|
|
1948
1975
|
<li
|
|
1949
|
-
class="pf-c-data-list__item pf-m-
|
|
1950
|
-
aria-labelledby="data-list-
|
|
1976
|
+
class="pf-c-data-list__item pf-m-clickable"
|
|
1977
|
+
aria-labelledby="data-list-clickable-rows-item-2"
|
|
1951
1978
|
tabindex="0"
|
|
1952
1979
|
>
|
|
1953
1980
|
<div class="pf-c-data-list__item-row">
|
|
1954
1981
|
<div class="pf-c-data-list__item-content">
|
|
1955
1982
|
<div class="pf-c-data-list__cell">
|
|
1956
|
-
<span
|
|
1957
|
-
id="data-list-selectable-rows-item-2"
|
|
1958
|
-
>Secondary content (selected)</span>
|
|
1983
|
+
<span id="data-list-clickable-rows-item-2">Secondary content</span>
|
|
1959
1984
|
</div>
|
|
1960
1985
|
</div>
|
|
1961
1986
|
</div>
|
|
1962
1987
|
</li>
|
|
1963
1988
|
|
|
1964
1989
|
<li
|
|
1965
|
-
class="pf-c-data-list__item pf-m-
|
|
1966
|
-
aria-labelledby="data-list-
|
|
1990
|
+
class="pf-c-data-list__item pf-m-clickable"
|
|
1991
|
+
aria-labelledby="data-list-clickable-rows-item-3"
|
|
1967
1992
|
tabindex="0"
|
|
1968
1993
|
>
|
|
1969
1994
|
<div class="pf-c-data-list__item-row">
|
|
1970
1995
|
<div class="pf-c-data-list__item-content">
|
|
1971
1996
|
<div class="pf-c-data-list__cell">
|
|
1972
|
-
<span id="data-list-
|
|
1997
|
+
<span id="data-list-clickable-rows-item-3">Tertiary content</span>
|
|
1973
1998
|
</div>
|
|
1974
1999
|
</div>
|
|
1975
2000
|
</div>
|
|
@@ -1980,29 +2005,29 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1980
2005
|
|
|
1981
2006
|
### Accessibility
|
|
1982
2007
|
|
|
1983
|
-
| Attribute
|
|
1984
|
-
|
|
|
1985
|
-
| `tabindex="0"` | `.pf-c-data-list__item.pf-m-
|
|
2008
|
+
| Attribute | Applied to | Outcome |
|
|
2009
|
+
| -- | -- | -- |
|
|
2010
|
+
| `tabindex="0"` | `.pf-c-data-list__item.pf-m-clickable` | Inserts the clickable row into the tab order of the page so that it is focusable. **Required** |
|
|
1986
2011
|
|
|
1987
2012
|
### Usage
|
|
1988
2013
|
|
|
1989
|
-
| Class
|
|
1990
|
-
|
|
|
1991
|
-
| `.pf-m-
|
|
1992
|
-
| `.pf-m-selected`
|
|
2014
|
+
| Class | Applied to | Outcome |
|
|
2015
|
+
| -- | -- | -- |
|
|
2016
|
+
| `.pf-m-clickable` | `.pf-c-data-list__item` | Modifies a data list item so that it is clickable. |
|
|
2017
|
+
| `.pf-m-selected` | `.pf-c-data-list__item` | Modifies a data list item for the selected state. |
|
|
1993
2018
|
|
|
1994
|
-
###
|
|
2019
|
+
### Clickable expandable rows
|
|
1995
2020
|
|
|
1996
2021
|
```html
|
|
1997
2022
|
<ul
|
|
1998
2023
|
class="pf-c-data-list"
|
|
1999
2024
|
role="list"
|
|
2000
|
-
aria-label="
|
|
2001
|
-
id="data-list-
|
|
2025
|
+
aria-label="Clickable, expandable data list example"
|
|
2026
|
+
id="data-list-clickable-expandable-rows"
|
|
2002
2027
|
>
|
|
2003
2028
|
<li
|
|
2004
|
-
class="pf-c-data-list__item pf-m-expanded pf-m-
|
|
2005
|
-
aria-labelledby="data-list-
|
|
2029
|
+
class="pf-c-data-list__item pf-m-expanded pf-m-clickable pf-m-selected"
|
|
2030
|
+
aria-labelledby="data-list-clickable-expandable-rows-item-1"
|
|
2006
2031
|
tabindex="0"
|
|
2007
2032
|
>
|
|
2008
2033
|
<div class="pf-c-data-list__item-row">
|
|
@@ -2011,11 +2036,11 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
2011
2036
|
<button
|
|
2012
2037
|
class="pf-c-button pf-m-plain"
|
|
2013
2038
|
type="button"
|
|
2014
|
-
aria-labelledby="data-list-
|
|
2015
|
-
id="data-list-
|
|
2039
|
+
aria-labelledby="data-list-clickable-expandable-rows-toggle1 data-list-clickable-expandable-rows-item1"
|
|
2040
|
+
id="data-list-clickable-expandable-rows-toggle1"
|
|
2016
2041
|
aria-label="Toggle details for"
|
|
2017
2042
|
aria-expanded="true"
|
|
2018
|
-
aria-controls="data-list-
|
|
2043
|
+
aria-controls="data-list-clickable-expandable-rows-content1"
|
|
2019
2044
|
>
|
|
2020
2045
|
<div class="pf-c-data-list__toggle-icon">
|
|
2021
2046
|
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
@@ -2026,15 +2051,15 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
2026
2051
|
<div class="pf-c-data-list__item-content">
|
|
2027
2052
|
<div class="pf-c-data-list__cell">
|
|
2028
2053
|
<span
|
|
2029
|
-
id="data-list-
|
|
2030
|
-
>Primary content (
|
|
2054
|
+
id="data-list-clickable-expandable-rows-item-1"
|
|
2055
|
+
>Primary content (clicked and expanded)</span>
|
|
2031
2056
|
</div>
|
|
2032
2057
|
</div>
|
|
2033
2058
|
</div>
|
|
2034
2059
|
<section
|
|
2035
2060
|
class="pf-c-data-list__expandable-content"
|
|
2036
|
-
id="data-list-
|
|
2037
|
-
aria-label="
|
|
2061
|
+
id="data-list-clickable-expandable-rows-content1"
|
|
2062
|
+
aria-label="Clickable expandable row primary content details"
|
|
2038
2063
|
>
|
|
2039
2064
|
<div
|
|
2040
2065
|
class="pf-c-data-list__expandable-content-body"
|
|
@@ -2043,8 +2068,8 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
2043
2068
|
</li>
|
|
2044
2069
|
|
|
2045
2070
|
<li
|
|
2046
|
-
class="pf-c-data-list__item pf-m-
|
|
2047
|
-
aria-labelledby="data-list-
|
|
2071
|
+
class="pf-c-data-list__item pf-m-clickable"
|
|
2072
|
+
aria-labelledby="data-list-clickable-expandable-rows-item-2"
|
|
2048
2073
|
tabindex="0"
|
|
2049
2074
|
>
|
|
2050
2075
|
<div class="pf-c-data-list__item-row">
|
|
@@ -2053,11 +2078,11 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
2053
2078
|
<button
|
|
2054
2079
|
class="pf-c-button pf-m-plain"
|
|
2055
2080
|
type="button"
|
|
2056
|
-
aria-labelledby="data-list-
|
|
2057
|
-
id="data-list-
|
|
2081
|
+
aria-labelledby="data-list-clickable-expandable-rows-toggle2 data-list-clickable-expandable-rows-item2"
|
|
2082
|
+
id="data-list-clickable-expandable-rows-toggle2"
|
|
2058
2083
|
aria-label="Toggle details for"
|
|
2059
2084
|
aria-expanded="false"
|
|
2060
|
-
aria-controls="data-list-
|
|
2085
|
+
aria-controls="data-list-clickable-expandable-rows-content2"
|
|
2061
2086
|
>
|
|
2062
2087
|
<div class="pf-c-data-list__toggle-icon">
|
|
2063
2088
|
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
@@ -2068,15 +2093,15 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
2068
2093
|
<div class="pf-c-data-list__item-content">
|
|
2069
2094
|
<div class="pf-c-data-list__cell">
|
|
2070
2095
|
<span
|
|
2071
|
-
id="data-list-
|
|
2096
|
+
id="data-list-clickable-expandable-rows-item-2"
|
|
2072
2097
|
>Secondary content</span>
|
|
2073
2098
|
</div>
|
|
2074
2099
|
</div>
|
|
2075
2100
|
</div>
|
|
2076
2101
|
<section
|
|
2077
2102
|
class="pf-c-data-list__expandable-content"
|
|
2078
|
-
id="data-list-
|
|
2079
|
-
aria-label="
|
|
2103
|
+
id="data-list-clickable-expandable-rows-content2"
|
|
2104
|
+
aria-label="Clickable expandable row secondary content details"
|
|
2080
2105
|
hidden
|
|
2081
2106
|
>
|
|
2082
2107
|
<div
|
|
@@ -2086,8 +2111,8 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
2086
2111
|
</li>
|
|
2087
2112
|
|
|
2088
2113
|
<li
|
|
2089
|
-
class="pf-c-data-list__item pf-m-expanded pf-m-
|
|
2090
|
-
aria-labelledby="data-list-
|
|
2114
|
+
class="pf-c-data-list__item pf-m-expanded pf-m-clickable"
|
|
2115
|
+
aria-labelledby="data-list-clickable-expandable-rows-item-3"
|
|
2091
2116
|
tabindex="0"
|
|
2092
2117
|
>
|
|
2093
2118
|
<div class="pf-c-data-list__item-row">
|
|
@@ -2096,11 +2121,11 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
2096
2121
|
<button
|
|
2097
2122
|
class="pf-c-button pf-m-plain"
|
|
2098
2123
|
type="button"
|
|
2099
|
-
aria-labelledby="data-list-
|
|
2100
|
-
id="data-list-
|
|
2124
|
+
aria-labelledby="data-list-clickable-expandable-rows-toggle3 data-list-clickable-expandable-rows-item3"
|
|
2125
|
+
id="data-list-clickable-expandable-rows-toggle3"
|
|
2101
2126
|
aria-label="Toggle details for"
|
|
2102
2127
|
aria-expanded="true"
|
|
2103
|
-
aria-controls="data-list-
|
|
2128
|
+
aria-controls="data-list-clickable-expandable-rows-content3"
|
|
2104
2129
|
>
|
|
2105
2130
|
<div class="pf-c-data-list__toggle-icon">
|
|
2106
2131
|
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
@@ -2111,15 +2136,15 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
2111
2136
|
<div class="pf-c-data-list__item-content">
|
|
2112
2137
|
<div class="pf-c-data-list__cell">
|
|
2113
2138
|
<span
|
|
2114
|
-
id="data-list-
|
|
2115
|
-
>Tertiary content (
|
|
2139
|
+
id="data-list-clickable-expandable-rows-item-3"
|
|
2140
|
+
>Tertiary content (expanded)</span>
|
|
2116
2141
|
</div>
|
|
2117
2142
|
</div>
|
|
2118
2143
|
</div>
|
|
2119
2144
|
<section
|
|
2120
2145
|
class="pf-c-data-list__expandable-content"
|
|
2121
|
-
id="data-list-
|
|
2122
|
-
aria-label="
|
|
2146
|
+
id="data-list-clickable-expandable-rows-content3"
|
|
2147
|
+
aria-label="Clickable expandable row tertiary content details"
|
|
2123
2148
|
>
|
|
2124
2149
|
<div
|
|
2125
2150
|
class="pf-c-data-list__expandable-content-body pf-m-no-padding"
|
|
@@ -2128,8 +2153,8 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
2128
2153
|
</li>
|
|
2129
2154
|
|
|
2130
2155
|
<li
|
|
2131
|
-
class="pf-c-data-list__item pf-m-
|
|
2132
|
-
aria-labelledby="data-list-
|
|
2156
|
+
class="pf-c-data-list__item pf-m-clickable"
|
|
2157
|
+
aria-labelledby="data-list-clickable-expandable-rows-item-4"
|
|
2133
2158
|
tabindex="0"
|
|
2134
2159
|
>
|
|
2135
2160
|
<div class="pf-c-data-list__item-row">
|
|
@@ -2138,11 +2163,11 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
2138
2163
|
<button
|
|
2139
2164
|
class="pf-c-button pf-m-plain"
|
|
2140
2165
|
type="button"
|
|
2141
|
-
aria-labelledby="data-list-
|
|
2142
|
-
id="data-list-
|
|
2166
|
+
aria-labelledby="data-list-clickable-expandable-rows-toggle4 data-list-clickable-expandable-rows-item4"
|
|
2167
|
+
id="data-list-clickable-expandable-rows-toggle4"
|
|
2143
2168
|
aria-label="Toggle details for"
|
|
2144
2169
|
aria-expanded="false"
|
|
2145
|
-
aria-controls="data-list-
|
|
2170
|
+
aria-controls="data-list-clickable-expandable-rows-content4"
|
|
2146
2171
|
>
|
|
2147
2172
|
<div class="pf-c-data-list__toggle-icon">
|
|
2148
2173
|
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
@@ -2153,15 +2178,15 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
2153
2178
|
<div class="pf-c-data-list__item-content">
|
|
2154
2179
|
<div class="pf-c-data-list__cell">
|
|
2155
2180
|
<span
|
|
2156
|
-
id="data-list-
|
|
2157
|
-
>Quaternary content
|
|
2181
|
+
id="data-list-clickable-expandable-rows-item-4"
|
|
2182
|
+
>Quaternary content</span>
|
|
2158
2183
|
</div>
|
|
2159
2184
|
</div>
|
|
2160
2185
|
</div>
|
|
2161
2186
|
<section
|
|
2162
2187
|
class="pf-c-data-list__expandable-content"
|
|
2163
|
-
id="data-list-
|
|
2164
|
-
aria-label="
|
|
2188
|
+
id="data-list-clickable-expandable-rows-content4"
|
|
2189
|
+
aria-label="Clickable expandable row quaternary content details"
|
|
2165
2190
|
hidden
|
|
2166
2191
|
>
|
|
2167
2192
|
<div
|
|
@@ -2203,11 +2228,14 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
2203
2228
|
</span>
|
|
2204
2229
|
</button>
|
|
2205
2230
|
<div class="pf-c-data-list__check">
|
|
2206
|
-
<
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2231
|
+
<div class="pf-c-check pf-m-standalone">
|
|
2232
|
+
<input
|
|
2233
|
+
class="pf-c-check__input"
|
|
2234
|
+
type="checkbox"
|
|
2235
|
+
name="data-list-draggable-item-1-checkbox"
|
|
2236
|
+
aria-labelledby="data-list-draggable-item-1"
|
|
2237
|
+
/>
|
|
2238
|
+
</div>
|
|
2211
2239
|
</div>
|
|
2212
2240
|
</div>
|
|
2213
2241
|
<div class="pf-c-data-list__item-content">
|
|
@@ -2238,11 +2266,14 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
2238
2266
|
</span>
|
|
2239
2267
|
</button>
|
|
2240
2268
|
<div class="pf-c-data-list__check">
|
|
2241
|
-
<
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2269
|
+
<div class="pf-c-check pf-m-standalone">
|
|
2270
|
+
<input
|
|
2271
|
+
class="pf-c-check__input"
|
|
2272
|
+
type="checkbox"
|
|
2273
|
+
name="data-list-draggable-item-2-checkbox"
|
|
2274
|
+
aria-labelledby="data-list-draggable-item-2"
|
|
2275
|
+
/>
|
|
2276
|
+
</div>
|
|
2246
2277
|
</div>
|
|
2247
2278
|
</div>
|
|
2248
2279
|
<div class="pf-c-data-list__item-content">
|
|
@@ -2277,11 +2308,14 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
2277
2308
|
</span>
|
|
2278
2309
|
</button>
|
|
2279
2310
|
<div class="pf-c-data-list__check">
|
|
2280
|
-
<
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2311
|
+
<div class="pf-c-check pf-m-standalone">
|
|
2312
|
+
<input
|
|
2313
|
+
class="pf-c-check__input"
|
|
2314
|
+
type="checkbox"
|
|
2315
|
+
name="data-list-draggable-item-3-checkbox"
|
|
2316
|
+
aria-labelledby="data-list-draggable-item-3"
|
|
2317
|
+
/>
|
|
2318
|
+
</div>
|
|
2285
2319
|
</div>
|
|
2286
2320
|
</div>
|
|
2287
2321
|
<div class="pf-c-data-list__item-content">
|
|
@@ -2312,11 +2346,14 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
2312
2346
|
</span>
|
|
2313
2347
|
</button>
|
|
2314
2348
|
<div class="pf-c-data-list__check">
|
|
2315
|
-
<
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2349
|
+
<div class="pf-c-check pf-m-standalone">
|
|
2350
|
+
<input
|
|
2351
|
+
class="pf-c-check__input"
|
|
2352
|
+
type="checkbox"
|
|
2353
|
+
name="data-list-draggable-item-4-checkbox"
|
|
2354
|
+
aria-labelledby="data-list-draggable-item-4"
|
|
2355
|
+
/>
|
|
2356
|
+
</div>
|
|
2320
2357
|
</div>
|
|
2321
2358
|
</div>
|
|
2322
2359
|
<div class="pf-c-data-list__item-content">
|
|
@@ -2339,24 +2376,24 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
2339
2376
|
|
|
2340
2377
|
### Accessibility
|
|
2341
2378
|
|
|
2342
|
-
| Attribute
|
|
2343
|
-
|
|
|
2344
|
-
| `aria-pressed="true or false"`
|
|
2345
|
-
| `aria-live`
|
|
2346
|
-
| `aria-describedby="[id value of applicable content]"`
|
|
2347
|
-
| `aria-labelledby="[id value of .pf-c-data-list__item-draggable-button] [id value of .pf-c-data-list__cell-text]"` | `.pf-c-data-list__item-draggable-button`
|
|
2348
|
-
| `id="[]"`
|
|
2379
|
+
| Attribute | Applied to | Outcome |
|
|
2380
|
+
| -- | -- | -- |
|
|
2381
|
+
| `aria-pressed="true or false"` | `.pf-c-data-list__item-draggable-button` | Indicates that the button is a toggle. When set to "true", `pf-m-active` should also be set so that the button displays in an active state. |
|
|
2382
|
+
| `aria-live` | `[element with live text]` | Gives screen reader users live feedback about what's happening during interaction with the data list, both during drag and drop interactions and keyboard interactions. **Highly Recommended** |
|
|
2383
|
+
| `aria-describedby="[id value of applicable content]"` | `.pf-c-data-list__item-draggable-button` | Gives the draggable button an accessible description by referring to the textual content that describes how to use the button to drag elements. The example here uses a `<div id="draggable-help"></div>`. **Highly recommended** |
|
|
2384
|
+
| `aria-labelledby="[id value of .pf-c-data-list__item-draggable-button] [id value of .pf-c-data-list__cell-text]"` | `.pf-c-data-list__item-draggable-button` | Provides an accessible name for the draggable button. |
|
|
2385
|
+
| `id="[]"` | `.pf-c-data-list__item-draggable-button`, `.pf-c-data-list__cell-text` | Gives the button and the text element accessible IDs |
|
|
2349
2386
|
|
|
2350
2387
|
### Usage
|
|
2351
2388
|
|
|
2352
|
-
| Class
|
|
2353
|
-
|
|
|
2354
|
-
| `.pf-c-data-list__item-draggable-button` | `<button>`
|
|
2355
|
-
| `.pf-c-data-list__item-draggable-icon`
|
|
2356
|
-
| `.pf-m-draggable`
|
|
2357
|
-
| `.pf-m-ghost-row`
|
|
2358
|
-
| `.pf-m-disabled`
|
|
2359
|
-
| `.pf-m-drag-over`
|
|
2389
|
+
| Class | Applied to | Outcome |
|
|
2390
|
+
| -- | -- | -- |
|
|
2391
|
+
| `.pf-c-data-list__item-draggable-button` | `<button>` | Initiates the draggable button. Use for drag and drop. |
|
|
2392
|
+
| `.pf-c-data-list__item-draggable-icon` | `<span>` | Initiates the draggable button icon. |
|
|
2393
|
+
| `.pf-m-draggable` | `.pf-c-data-list__item` | Modifies a data list item so that it is draggable. |
|
|
2394
|
+
| `.pf-m-ghost-row` | `.pf-c-data-list__item.pf-m-draggable` | Modifies a draggable data list item to be the ghost row. |
|
|
2395
|
+
| `.pf-m-disabled` | `.pf-c-data-list__item.pf-m-draggable` | Modifies a data list draggable item for the disabled state. |
|
|
2396
|
+
| `.pf-m-drag-over` | `.pf-c-data-list` | Modifies the data list to indicate that a draggable item is being dragged over the data list. |
|
|
2360
2397
|
|
|
2361
2398
|
### Text modifiers
|
|
2362
2399
|
|
|
@@ -2478,12 +2515,12 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
2478
2515
|
|
|
2479
2516
|
### Usage
|
|
2480
2517
|
|
|
2481
|
-
| Class
|
|
2482
|
-
|
|
|
2483
|
-
| `.pf-c-data-list__text` | `*`
|
|
2484
|
-
| `.pf-m-truncate`
|
|
2485
|
-
| `.pf-m-break-word`
|
|
2486
|
-
| `.pf-m-nowrap`
|
|
2518
|
+
| Class | Applied to | Outcome |
|
|
2519
|
+
| -- | -- | -- |
|
|
2520
|
+
| `.pf-c-data-list__text` | `*` | Inserts the data list text element. Use this class to modify specific text directly. |
|
|
2521
|
+
| `.pf-m-truncate` | `.pf-c-data-list`, `.pf-c-data-list__item-row`, `.pf-c-data-list__cell`, `.pf-c-data-list__text` | Modifies the data list element so that text is truncated. |
|
|
2522
|
+
| `.pf-m-break-word` | `.pf-c-data-list`, `.pf-c-data-list__item-row`, `.pf-c-data-list__cell`, `.pf-c-data-list__text` | Modifies the data list element so that text breaks to the next line. |
|
|
2523
|
+
| `.pf-m-nowrap` | `.pf-c-data-list`, `.pf-c-data-list__item-row`, `.pf-c-data-list__cell`, `.pf-c-data-list__text` | Modifies the data list element so that text does not wrap to the next line. |
|
|
2487
2524
|
|
|
2488
2525
|
## Documentation
|
|
2489
2526
|
|
|
@@ -2622,6 +2659,6 @@ The DataList component provides a flexible alternative to the Table component, w
|
|
|
2622
2659
|
|
|
2623
2660
|
### Usage
|
|
2624
2661
|
|
|
2625
|
-
| Class
|
|
2626
|
-
|
|
|
2662
|
+
| Class | Applied to | Outcome |
|
|
2663
|
+
| -- | -- | -- |
|
|
2627
2664
|
| `.pf-m-grid{-[none, sm, md, lg, xl, 2xl]}` | `.pf-c-data-list` | Modifies the data list to switch to a grid layout at a specified [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). `.pf-m-grid` will display the grid layout at all breakpoints. `.pf-m-grid-none` will display the desktop layout at all breakpoints. **Note:** Without a grid modifier, the data list will display the grid layout by default and switch to the desktop layout at a medium breakpoint. |
|