@patternfly/patternfly 6.5.0-prerelease.5 → 6.5.0-prerelease.50
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 +1 -1
- package/assets/fontawesome/_variables.scss +2 -1
- package/assets/images/RHAiExperienceIcon.svg +27 -0
- package/assets/images/RHAutomationsLogo.svg +96 -0
- package/assets/images/RHServerStackIcon.svg +16 -0
- package/assets/images/compass--hero-bg.png +0 -0
- package/assets/images/compass--rh-wallpaper-dark.png +0 -0
- package/assets/images/compass--rh-wallpaper-light.png +0 -0
- package/assets/images/compass--wallpaper-dark.png +0 -0
- package/assets/images/compass--wallpaper-light.png +0 -0
- package/base/normalize.scss +7 -0
- package/base/patternfly-common.css +50 -0
- package/base/patternfly-common.scss +59 -0
- package/base/patternfly-svg-icons.css +11 -0
- package/base/patternfly-svg-icons.scss +14 -0
- package/base/patternfly-variables.css +345 -14
- package/base/patternfly-variables.scss +40 -0
- package/base/tokens/tokens-dark.scss +51 -3
- package/base/tokens/tokens-default.scss +67 -13
- package/base/tokens/tokens-glass-dark.scss +9 -0
- package/base/tokens/tokens-glass.scss +9 -0
- package/base/tokens/tokens-local.scss +16 -0
- package/base/tokens/tokens-palette.scss +3 -1
- package/base/tokens/tokens-redhat-dark.scss +14 -0
- package/base/tokens/tokens-redhat-glass-dark.scss +16 -0
- package/base/tokens/tokens-redhat-glass.scss +15 -0
- package/base/tokens/tokens-redhat-highcontrast-dark.scss +47 -0
- package/base/tokens/tokens-redhat-highcontrast.scss +127 -0
- package/base/tokens/tokens-redhat.scss +15 -0
- package/components/AboutModalBox/about-modal-box.css +36 -26
- package/components/Accordion/accordion.css +17 -14
- package/components/Accordion/accordion.scss +1 -2
- package/components/ActionList/action-list.css +2 -0
- package/components/ActionList/action-list.scss +2 -0
- package/components/Alert/alert.css +7 -5
- package/components/Alert/alert.scss +2 -1
- package/components/Avatar/avatar.css +12 -4
- package/components/BackgroundImage/background-image.css +6 -3
- package/components/Banner/banner.css +8 -6
- package/components/Brand/brand.css +3 -1
- package/components/Breadcrumb/breadcrumb.css +4 -3
- package/components/Button/button.css +117 -14
- package/components/Button/button.scss +127 -10
- package/components/CalendarMonth/calendar-month.css +4 -3
- package/components/Card/card.css +20 -7
- package/components/Card/card.scss +16 -2
- package/components/ClipboardCopy/clipboard-copy.css +7 -6
- package/components/ClipboardCopy/clipboard-copy.scss +3 -3
- package/components/CodeEditor/code-editor.css +1 -1
- package/components/CodeEditor/code-editor.scss +1 -1
- package/components/Compass/compass.css +320 -0
- package/components/Compass/compass.scss +350 -0
- package/components/DataList/data-list.css +34 -23
- package/components/DataList/data-list.scss +7 -2
- package/components/DescriptionList/description-list-order.scss +5 -1
- package/components/DescriptionList/description-list.css +7 -5
- package/components/DescriptionList/description-list.scss +5 -1
- package/components/Divider/divider.css +7 -5
- package/components/Drawer/drawer.css +110 -56
- package/components/Drawer/drawer.scss +69 -9
- package/components/DualListSelector/dual-list-selector.css +18 -12
- package/components/DualListSelector/dual-list-selector.scss +1 -1
- package/components/ExpandableSection/expandable-section.css +21 -16
- package/components/ExpandableSection/expandable-section.scss +6 -3
- package/components/Form/form.css +2 -2
- package/components/Form/form.scss +2 -2
- package/components/FormControl/form-control.css +3 -3
- package/components/FormControl/form-control.scss +3 -3
- package/components/Hero/hero.css +74 -0
- package/components/Hero/hero.scss +86 -0
- package/components/JumpLinks/jump-links.css +5 -4
- package/components/JumpLinks/jump-links.scss +6 -2
- package/components/Label/label-group.css +2 -2
- package/components/Label/label-group.scss +2 -2
- package/components/Label/label.css +4 -3
- package/components/Login/login.css +51 -37
- package/components/Masthead/masthead.css +70 -16
- package/components/Masthead/masthead.scss +54 -1
- package/components/Menu/menu.css +23 -14
- package/components/MenuToggle/menu-toggle.css +5 -1
- package/components/MenuToggle/menu-toggle.scss +6 -1
- package/components/ModalBox/modal-box.css +9 -7
- package/components/ModalBox/modal-box.scss +2 -2
- package/components/Nav/nav.css +74 -11
- package/components/Nav/nav.scss +77 -5
- package/components/NotificationDrawer/notification-drawer.css +19 -9
- package/components/NotificationDrawer/notification-drawer.scss +14 -5
- package/components/Page/page.css +55 -29
- package/components/Page/page.scss +44 -5
- package/components/Pagination/pagination.scss +5 -1
- package/components/ProgressStepper/progress-stepper.scss +5 -1
- package/components/Sidebar/sidebar.css +1 -1
- package/components/Sidebar/sidebar.scss +7 -3
- package/components/Skeleton/skeleton.css +16 -15
- package/components/Slider/slider.css +32 -18
- package/components/Switch/switch.css +4 -2
- package/components/Switch/switch.scss +1 -1
- package/components/Table/table-grid.css +28 -36
- package/components/Table/table-grid.scss +4 -4
- package/components/Table/table-tree-view.css +4 -2
- package/components/Table/table.css +33 -29
- package/components/Table/table.scss +2 -2
- package/components/Tabs/tabs.css +35 -18
- package/components/Tabs/tabs.scss +35 -7
- package/components/TextInputGroup/text-input-group.css +2 -2
- package/components/TextInputGroup/text-input-group.scss +2 -2
- package/components/ToggleGroup/toggle-group.css +34 -17
- package/components/ToggleGroup/toggle-group.scss +36 -20
- package/components/Toolbar/toolbar.css +47 -15
- package/components/Toolbar/toolbar.scss +34 -6
- package/components/TreeView/tree-view.css +45 -14
- package/components/TreeView/tree-view.scss +32 -1
- package/components/Wizard/wizard.css +21 -17
- package/components/Wizard/wizard.scss +4 -4
- package/components/_index.css +1602 -676
- package/components/_index.scss +3 -1
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +13 -1
- package/docs/components/Accordion/examples/Accordion.md +390 -30
- package/docs/components/ActionList/examples/ActionList.md +143 -11
- package/docs/components/Alert/examples/Alert.md +678 -54
- package/docs/components/Avatar/examples/Avatar.md +4 -4
- package/docs/components/BackToTop/examples/BackToTop.md +13 -1
- package/docs/components/Banner/examples/Banner.md +65 -5
- package/docs/components/Brand/examples/Brand.md +2 -2
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +299 -23
- package/docs/components/Button/examples/Button.md +2217 -241
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +104 -8
- package/docs/components/Card/examples/Card.md +206 -4
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +286 -22
- package/docs/components/CodeBlock/examples/CodeBlock.md +104 -8
- package/docs/components/CodeEditor/examples/CodeEditor.md +195 -15
- package/docs/components/Compass/examples/Compass.css +17 -0
- package/docs/components/Compass/examples/Compass.md +119 -0
- package/docs/components/DataList/examples/DataList.md +405 -205
- package/docs/components/DatePicker/examples/DatePicker.md +78 -6
- package/docs/components/DescriptionList/examples/DescriptionList.md +327 -27
- package/docs/components/Divider/examples/Divider.md +2 -2
- package/docs/components/Drawer/examples/Drawer.md +353 -35
- package/docs/components/DualListSelector/examples/DualListSelector.md +1013 -143
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +91 -7
- package/docs/components/Form/examples/Form.md +78 -6
- package/docs/components/Hero/examples/Hero.md +25 -0
- package/docs/components/Icon/examples/Icon.md +92 -8
- package/docs/components/InlineEdit/examples/InlineEdit.md +312 -24
- package/docs/components/InputGroup/examples/InputGroup.md +27 -3
- package/docs/components/JumpLinks/examples/JumpLinks.md +54 -6
- package/docs/components/Label/examples/Label.md +2834 -218
- package/docs/components/Login/examples/Login.md +26 -2
- package/docs/components/Masthead/examples/masthead.md +80 -1
- package/docs/components/Menu/examples/Menu.md +1458 -114
- package/docs/components/MenuToggle/examples/MenuToggle.md +53 -1
- package/docs/components/ModalBox/examples/ModalBox.md +287 -23
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +156 -12
- package/docs/components/Nav/examples/Navigation.md +798 -58
- package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +598 -46
- package/docs/components/OverflowMenu/examples/overflow-menu.md +78 -6
- package/docs/components/Page/examples/Page.md +51 -2
- package/docs/components/Pagination/examples/Pagination.md +627 -51
- package/docs/components/Popover/examples/Popover.md +286 -22
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +275 -23
- package/docs/components/Sidebar/examples/Sidebar.md +1 -1
- package/docs/components/Slider/examples/Slider.md +52 -4
- package/docs/components/Table/examples/Table.md +875 -70
- package/docs/components/Tabs/examples/Tabs.md +4127 -320
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +600 -48
- package/docs/components/ToggleGroup/examples/toggle-group.md +195 -15
- package/docs/components/Toolbar/examples/Toolbar.md +490 -42
- package/docs/components/TreeView/examples/TreeView.md +1390 -130
- package/docs/components/Wizard/examples/Wizard.md +492 -72
- package/docs/demos/AboutModal/examples/AboutModal.md +57 -9
- package/docs/demos/Alert/examples/Alert.md +236 -32
- package/docs/demos/BackToTop/examples/BackToTop.md +57 -9
- package/docs/demos/Banner/examples/Banner.md +88 -16
- package/docs/demos/Button/examples/Button.md +13 -1
- package/docs/demos/Card/examples/Card.md +399 -42
- package/docs/demos/CardView/examples/CardView.md +161 -17
- package/docs/demos/Compass/examples/Compass.md +6836 -0
- package/docs/demos/Dashboard/examples/Dashboard.md +173 -26
- package/docs/demos/DataList/examples/DataList.md +566 -65
- package/docs/demos/DescriptionList/examples/DescriptionList.md +156 -27
- package/docs/demos/Drawer/examples/Drawer.md +216 -45
- package/docs/demos/Form/examples/BasicForms.md +273 -21
- package/docs/demos/JumpLinks/examples/JumpLinks.md +272 -59
- package/docs/demos/Masthead/examples/Masthead.md +458 -89
- package/docs/demos/Modal/examples/Modal.md +342 -57
- package/docs/demos/Nav/examples/Nav.md +660 -87
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +1088 -140
- package/docs/demos/Page/examples/Page.md +618 -123
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +13 -1
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +52 -4
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +691 -113
- package/docs/demos/Skeleton/examples/Skeleton.md +44 -8
- package/docs/demos/Table/examples/Table.md +3924 -256
- package/docs/demos/Tabs/examples/Tabs.md +407 -65
- package/docs/demos/Toolbar/examples/Toolbar.md +502 -52
- package/docs/demos/Wizard/examples/Wizard.md +796 -130
- package/docs/layouts/Bullseye/examples/Bullseye.css +2 -2
- package/docs/layouts/Bullseye/examples/Bullseye.md +2 -1
- package/docs/layouts/Flex/examples/Flex.css +3 -3
- package/docs/layouts/Flex/examples/Flex.md +3 -2
- package/docs/layouts/Gallery/examples/Gallery.css +2 -2
- package/docs/layouts/Gallery/examples/Gallery.md +4 -3
- package/docs/layouts/Grid/examples/Grid.css +1 -1
- package/docs/layouts/Grid/examples/Grid.md +6 -5
- package/docs/layouts/Level/examples/Level.css +3 -3
- package/docs/layouts/Level/examples/Level.md +2 -1
- package/docs/layouts/Split/examples/Split.css +1 -1
- package/docs/layouts/Split/examples/Split.md +2 -1
- package/docs/layouts/Stack/examples/Stack.css +3 -3
- package/docs/layouts/Stack/examples/Stack.md +2 -1
- package/docs/utilities/Accessibility/examples/Accessibility.md +3 -2
- package/docs/utilities/Alignment/examples/Alignment.css +4 -4
- package/docs/utilities/Alignment/examples/Alignment.md +3 -2
- package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +5 -4
- package/docs/utilities/BoxShadow/examples/box-shadow.css +2 -2
- package/docs/utilities/BoxShadow/examples/box-shadow.md +2 -1
- package/docs/utilities/Display/examples/Display.css +1 -1
- package/docs/utilities/Display/examples/Display.md +3 -2
- package/docs/utilities/Flex/examples/Flex.css +7 -7
- package/docs/utilities/Flex/examples/Flex.md +3 -2
- package/docs/utilities/Float/examples/Float.css +2 -2
- package/docs/utilities/Float/examples/Float.md +3 -2
- package/docs/utilities/Sizing/examples/Sizing.md +8 -7
- package/docs/utilities/Spacing/examples/Spacing.css +2 -2
- package/docs/utilities/Spacing/examples/Spacing.md +3 -2
- package/docs/utilities/Text/examples/Text.md +5 -4
- package/icons/PfIcons/add-circle-o.svg +4 -0
- package/icons/PfIcons/ansible-tower.svg +4 -0
- package/icons/PfIcons/applications.svg +4 -0
- package/icons/PfIcons/arrow.svg +4 -0
- package/icons/PfIcons/asleep.svg +4 -0
- package/icons/PfIcons/attention-bell.svg +4 -0
- package/icons/PfIcons/automation.svg +4 -0
- package/icons/PfIcons/bell.svg +4 -0
- package/icons/PfIcons/blueprint.svg +4 -0
- package/icons/PfIcons/build.svg +4 -0
- package/icons/PfIcons/builder-image.svg +4 -0
- package/icons/PfIcons/bundle.svg +4 -0
- package/icons/PfIcons/catalog.svg +4 -0
- package/icons/PfIcons/chat.svg +4 -0
- package/icons/PfIcons/close.svg +4 -0
- package/icons/PfIcons/cloud-security.svg +4 -0
- package/icons/PfIcons/cloud-tenant.svg +4 -0
- package/icons/PfIcons/cluster.svg +4 -0
- package/icons/PfIcons/connected.svg +4 -0
- package/icons/PfIcons/container-node.svg +4 -0
- package/icons/PfIcons/cpu.svg +4 -0
- package/icons/PfIcons/critical-risk.svg +4 -0
- package/icons/PfIcons/data-processor.svg +4 -0
- package/icons/PfIcons/data-sink.svg +4 -0
- package/icons/PfIcons/data-source.svg +4 -0
- package/icons/PfIcons/degraded.svg +4 -0
- package/icons/PfIcons/disconnected.svg +4 -0
- package/icons/PfIcons/domain.svg +4 -0
- package/icons/PfIcons/edit.svg +4 -0
- package/icons/PfIcons/enhancement.svg +4 -0
- package/icons/PfIcons/enterprise.svg +4 -0
- package/icons/PfIcons/equalizer.svg +4 -0
- package/icons/PfIcons/error-circle-o.svg +4 -0
- package/icons/PfIcons/export.svg +4 -0
- package/icons/PfIcons/filter.svg +4 -0
- package/icons/PfIcons/flavor.svg +4 -0
- package/icons/PfIcons/folder-close.svg +4 -0
- package/icons/PfIcons/folder-open.svg +4 -0
- package/icons/PfIcons/globe-route.svg +4 -0
- package/icons/PfIcons/help.svg +4 -0
- package/icons/PfIcons/history.svg +4 -0
- package/icons/PfIcons/home.svg +4 -0
- package/icons/PfIcons/import.svg +4 -0
- package/icons/PfIcons/in-progress.svg +4 -0
- package/icons/PfIcons/info.svg +4 -0
- package/icons/PfIcons/infrastructure.svg +4 -0
- package/icons/PfIcons/integration.svg +4 -0
- package/icons/PfIcons/key.svg +4 -0
- package/icons/PfIcons/locked.svg +4 -0
- package/icons/PfIcons/maintenance.svg +4 -0
- package/icons/PfIcons/memory.svg +4 -0
- package/icons/PfIcons/messages.svg +4 -0
- package/icons/PfIcons/middleware.svg +4 -0
- package/icons/PfIcons/migration.svg +4 -0
- package/icons/PfIcons/module.svg +4 -0
- package/icons/PfIcons/monitoring.svg +4 -0
- package/icons/PfIcons/multicluster.svg +4 -0
- package/icons/PfIcons/namespaces.svg +4 -0
- package/icons/PfIcons/network.svg +4 -0
- package/icons/PfIcons/new-process.svg +4 -0
- package/icons/PfIcons/not-started.svg +4 -0
- package/icons/PfIcons/off.svg +4 -0
- package/icons/PfIcons/ok.svg +4 -0
- package/icons/PfIcons/on-running.svg +4 -0
- package/icons/PfIcons/on.svg +4 -0
- package/icons/PfIcons/open-drawer-right.svg +4 -0
- package/icons/PfIcons/openshift.svg +4 -0
- package/icons/PfIcons/openstack.svg +4 -0
- package/icons/PfIcons/optimize.svg +4 -0
- package/icons/PfIcons/orders.svg +4 -0
- package/icons/PfIcons/os-image.svg +4 -0
- package/icons/PfIcons/package.svg +4 -0
- package/icons/PfIcons/panel-close.svg +4 -0
- package/icons/PfIcons/panel-open.svg +4 -0
- package/icons/PfIcons/paused.svg +4 -0
- package/icons/PfIcons/pending.svg +4 -0
- package/icons/PfIcons/pficon-dragdrop.svg +4 -0
- package/icons/PfIcons/pficon-history.svg +4 -0
- package/icons/PfIcons/pficon-network-range.svg +4 -0
- package/icons/PfIcons/pficon-satellite.svg +4 -0
- package/icons/PfIcons/pficon-sort-common-asc.svg +4 -0
- package/icons/PfIcons/pficon-sort-common-desc.svg +4 -0
- package/icons/PfIcons/pficon-template.svg +4 -0
- package/icons/PfIcons/pficon-vcenter.svg +4 -0
- package/icons/PfIcons/plugged.svg +4 -0
- package/icons/PfIcons/port.svg +4 -0
- package/icons/PfIcons/print.svg +4 -0
- package/icons/PfIcons/private.svg +4 -0
- package/icons/PfIcons/process-automation.svg +4 -0
- package/icons/PfIcons/project.svg +4 -0
- package/icons/PfIcons/rebalance.svg +4 -0
- package/icons/PfIcons/rebooting.svg +4 -0
- package/icons/PfIcons/regions.svg +4 -0
- package/icons/PfIcons/registry.svg +4 -0
- package/icons/PfIcons/remove2.svg +4 -0
- package/icons/PfIcons/replicator.svg +4 -0
- package/icons/PfIcons/repository.svg +4 -0
- package/icons/PfIcons/resource-pool.svg +4 -0
- package/icons/PfIcons/resources-almost-empty.svg +4 -0
- package/icons/PfIcons/resources-almost-full.svg +4 -0
- package/icons/PfIcons/resources-empty.svg +4 -0
- package/icons/PfIcons/resources-full.svg +4 -0
- package/icons/PfIcons/running.svg +4 -0
- package/icons/PfIcons/save.svg +4 -0
- package/icons/PfIcons/screen.svg +4 -0
- package/icons/PfIcons/security.svg +4 -0
- package/icons/PfIcons/server-group.svg +4 -0
- package/icons/PfIcons/server.svg +4 -0
- package/icons/PfIcons/service-catalog.svg +4 -0
- package/icons/PfIcons/service.svg +4 -0
- package/icons/PfIcons/services.svg +4 -0
- package/icons/PfIcons/severity-critical.svg +4 -0
- package/icons/PfIcons/severity-important.svg +4 -0
- package/icons/PfIcons/severity-minor.svg +4 -0
- package/icons/PfIcons/severity-moderate.svg +4 -0
- package/icons/PfIcons/severity-none.svg +4 -0
- package/icons/PfIcons/severity-undefined.svg +4 -0
- package/icons/PfIcons/spinner.svg +4 -0
- package/icons/PfIcons/spinner2.svg +4 -0
- package/icons/PfIcons/storage-domain.svg +4 -0
- package/icons/PfIcons/task.svg +4 -0
- package/icons/PfIcons/tenant.svg +4 -0
- package/icons/PfIcons/thumb-tack.svg +4 -0
- package/icons/PfIcons/topology.svg +4 -0
- package/icons/PfIcons/treeview.svg +4 -0
- package/icons/PfIcons/trend-down.svg +4 -0
- package/icons/PfIcons/trend-up.svg +4 -0
- package/icons/PfIcons/unknown.svg +4 -0
- package/icons/PfIcons/unlocked.svg +4 -0
- package/icons/PfIcons/unplugged.svg +4 -0
- package/icons/PfIcons/user.svg +4 -0
- package/icons/PfIcons/users.svg +4 -0
- package/icons/PfIcons/virtual-machine.svg +4 -0
- package/icons/PfIcons/volume.svg +4 -0
- package/icons/PfIcons/warning-triangle.svg +4 -0
- package/icons/PfIcons/zone.svg +4 -0
- package/layouts/Flex/flex.scss +83 -19
- package/layouts/Gallery/gallery.css +6 -2
- package/layouts/_index.css +6 -2
- package/package.json +34 -16
- package/patternfly-base-no-globals.css +406 -14
- package/patternfly-base.css +413 -14
- package/patternfly-charts.css +3 -3
- package/patternfly-no-globals.css +1947 -625
- package/patternfly.css +1954 -625
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/functions.scss +32 -25
- package/sass-utilities/mixins.scss +36 -20
- package/sass-utilities/namespaces-components.scss +6 -0
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
id: Data list
|
|
3
3
|
section: components
|
|
4
4
|
cssPrefix: pf-v6-c-data-list
|
|
5
|
-
---##
|
|
5
|
+
---## Basic data list
|
|
6
6
|
|
|
7
|
-
### Basic
|
|
7
|
+
### Basic data list example
|
|
8
8
|
|
|
9
9
|
```html
|
|
10
10
|
<ul
|
|
@@ -40,7 +40,7 @@ cssPrefix: pf-v6-c-data-list
|
|
|
40
40
|
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
###
|
|
43
|
+
### Basic data list accessibility
|
|
44
44
|
|
|
45
45
|
| Attribute | Applied to | Outcome |
|
|
46
46
|
| -- | -- | -- |
|
|
@@ -49,7 +49,7 @@ cssPrefix: pf-v6-c-data-list
|
|
|
49
49
|
| `aria-labelledby` | `.pf-v6-c-data-list__item` | Provides an accessible description for data list item. **Required** |
|
|
50
50
|
| `id` | `.pf-v6-c-data-list__cell`, `.pf-v6-c-data-list__cell *` | Provides a reference for data list item description. **Required** |
|
|
51
51
|
|
|
52
|
-
###
|
|
52
|
+
### Basic data list usage
|
|
53
53
|
|
|
54
54
|
| Class | Applied to | Outcome |
|
|
55
55
|
| -- | -- | -- |
|
|
@@ -63,7 +63,9 @@ cssPrefix: pf-v6-c-data-list
|
|
|
63
63
|
| `.pf-m-no-fill` | `.pf-v6-c-data-list__cell` | Modifies a data list cell to not fill the available horizontal space. |
|
|
64
64
|
| `.pf-m-align-right` | `.pf-v6-c-data-list__cell` | Modifies a data list cell to align-right. |
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
## Data list with headings
|
|
67
|
+
|
|
68
|
+
### Data list with headings example
|
|
67
69
|
|
|
68
70
|
```html
|
|
69
71
|
<ul
|
|
@@ -76,7 +78,7 @@ cssPrefix: pf-v6-c-data-list
|
|
|
76
78
|
<div class="pf-v6-c-data-list__item-row">
|
|
77
79
|
<div class="pf-v6-c-data-list__item-content">
|
|
78
80
|
<div class="pf-v6-c-data-list__cell">
|
|
79
|
-
<
|
|
81
|
+
<h4 id="data-list-with-headings-item-1">Primary content</h4>
|
|
80
82
|
</div>
|
|
81
83
|
<div class="pf-v6-c-data-list__cell">Secondary content</div>
|
|
82
84
|
</div>
|
|
@@ -87,9 +89,9 @@ cssPrefix: pf-v6-c-data-list
|
|
|
87
89
|
<div class="pf-v6-c-data-list__item-row">
|
|
88
90
|
<div class="pf-v6-c-data-list__item-content">
|
|
89
91
|
<div class="pf-v6-c-data-list__cell pf-m-no-fill">
|
|
90
|
-
<
|
|
92
|
+
<h4
|
|
91
93
|
id="data-list-with-headings-item-2"
|
|
92
|
-
>Secondary content (pf-m-no-fill)</
|
|
94
|
+
>Secondary content (pf-m-no-fill)</h4>
|
|
93
95
|
</div>
|
|
94
96
|
<div
|
|
95
97
|
class="pf-v6-c-data-list__cell pf-m-no-fill pf-m-align-right"
|
|
@@ -101,11 +103,13 @@ cssPrefix: pf-v6-c-data-list
|
|
|
101
103
|
|
|
102
104
|
```
|
|
103
105
|
|
|
104
|
-
###
|
|
106
|
+
### Data list with headings usage
|
|
105
107
|
|
|
106
108
|
When a list item includes more than one block of content, it can be difficult for some screen reader users to discern where one list item ends and the next one begins. A simple way to provide better separation of list items is to define the primary content section as a heading. Headings are useful for indicating a new section of contents, but also provide an easy way for screen reader users to navigate to specific sections on the page. The heading level should be based on the context in which the DataList component is being used. For example, if the heading for the section that contains the DataList is a level 3, then `h4` elements should be used in the DataList list items.
|
|
107
109
|
|
|
108
|
-
|
|
110
|
+
## Data list with checkboxes, actions, and additional cells
|
|
111
|
+
|
|
112
|
+
### Data list with checkboxes, actions, and additional cells example
|
|
109
113
|
|
|
110
114
|
```html
|
|
111
115
|
<ul
|
|
@@ -284,7 +288,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
284
288
|
|
|
285
289
|
```
|
|
286
290
|
|
|
287
|
-
###
|
|
291
|
+
### Data list with checkboxes, actions, and additional cells accessibility
|
|
288
292
|
|
|
289
293
|
| Attribute | Applied to | Outcome |
|
|
290
294
|
| -- | -- | -- |
|
|
@@ -293,7 +297,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
293
297
|
| `aria-labelledby="{title_cell_id} {data_list_action_id}"` | `.pf-v6-c-data-list__action` > `.pf-v6-c-button` | Creates an accessible label for the action button using the title cell and button label **Required** |
|
|
294
298
|
| `id` | `.pf-v6-c-data-list__cell > *`, `.pf-v6-c-data-list__check` > `.pf-v6-c-check__input`, `.pf-v6-c-data-list__action` > `.pf-v6-c-button` | Provides a reference for interactive elements. **Required** |
|
|
295
299
|
|
|
296
|
-
###
|
|
300
|
+
### Data list with checkboxes, actions, and additional cells usage
|
|
297
301
|
|
|
298
302
|
| Class | Applied to | Outcome |
|
|
299
303
|
| -- | -- | -- |
|
|
@@ -301,10 +305,12 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
301
305
|
| `.pf-v6-c-data-list__item-action` | `<div>` | Initiates a container for the data list actions. For example, add `.pf-v6-c-data-list__action` here. **Required** |
|
|
302
306
|
| `.pf-v6-c-data-list__check` | `<div>` | Initiates a data list check cell. **Required** |
|
|
303
307
|
| `.pf-v6-c-data-list__action` | `<div>` | Initiates a data list action button cell. **Required** |
|
|
304
|
-
| `.pf-m-hidden{-on-[breakpoint]}` | `.pf-v6-c-data-list__item-action` | Hides an actions container at optional [breakpoint](/tokens/all-
|
|
305
|
-
| `.pf-m-visible{-on-[breakpoint]}` | `.pf-v6-c-data-list__item-action` | Shows an actions container at optional [breakpoint](/tokens/all-
|
|
308
|
+
| `.pf-m-hidden{-on-[breakpoint]}` | `.pf-v6-c-data-list__item-action` | Hides an actions container at optional [breakpoint](/foundations-and-styles/design-tokens/all-design-tokens), or hides it at all breakpoints with `.pf-m-hidden`. |
|
|
309
|
+
| `.pf-m-visible{-on-[breakpoint]}` | `.pf-v6-c-data-list__item-action` | Shows an actions container at optional [breakpoint](/foundations-and-styles/design-tokens/all-design-tokens). |
|
|
306
310
|
|
|
307
|
-
|
|
311
|
+
## Exandable data list
|
|
312
|
+
|
|
313
|
+
### Expandable data list example
|
|
308
314
|
|
|
309
315
|
```html
|
|
310
316
|
<ul
|
|
@@ -328,7 +334,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
328
334
|
>
|
|
329
335
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
330
336
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
331
|
-
<
|
|
337
|
+
<svg
|
|
338
|
+
class="pf-v6-svg"
|
|
339
|
+
viewBox="0 0 20 20"
|
|
340
|
+
fill="currentColor"
|
|
341
|
+
aria-hidden="true"
|
|
342
|
+
role="img"
|
|
343
|
+
width="1em"
|
|
344
|
+
height="1em"
|
|
345
|
+
>
|
|
346
|
+
<path
|
|
347
|
+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
|
|
348
|
+
/>
|
|
349
|
+
</svg>
|
|
332
350
|
</div>
|
|
333
351
|
</span>
|
|
334
352
|
</button>
|
|
@@ -390,7 +408,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
390
408
|
>
|
|
391
409
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
392
410
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
393
|
-
<
|
|
411
|
+
<svg
|
|
412
|
+
class="pf-v6-svg"
|
|
413
|
+
viewBox="0 0 20 20"
|
|
414
|
+
fill="currentColor"
|
|
415
|
+
aria-hidden="true"
|
|
416
|
+
role="img"
|
|
417
|
+
width="1em"
|
|
418
|
+
height="1em"
|
|
419
|
+
>
|
|
420
|
+
<path
|
|
421
|
+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
|
|
422
|
+
/>
|
|
423
|
+
</svg>
|
|
394
424
|
</div>
|
|
395
425
|
</span>
|
|
396
426
|
</button>
|
|
@@ -449,7 +479,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
449
479
|
>
|
|
450
480
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
451
481
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
452
|
-
<
|
|
482
|
+
<svg
|
|
483
|
+
class="pf-v6-svg"
|
|
484
|
+
viewBox="0 0 20 20"
|
|
485
|
+
fill="currentColor"
|
|
486
|
+
aria-hidden="true"
|
|
487
|
+
role="img"
|
|
488
|
+
width="1em"
|
|
489
|
+
height="1em"
|
|
490
|
+
>
|
|
491
|
+
<path
|
|
492
|
+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
|
|
493
|
+
/>
|
|
494
|
+
</svg>
|
|
453
495
|
</div>
|
|
454
496
|
</span>
|
|
455
497
|
</button>
|
|
@@ -498,7 +540,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
498
540
|
|
|
499
541
|
```
|
|
500
542
|
|
|
501
|
-
###
|
|
543
|
+
### Compact expandable data list example
|
|
502
544
|
|
|
503
545
|
```html
|
|
504
546
|
<ul
|
|
@@ -522,7 +564,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
522
564
|
>
|
|
523
565
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
524
566
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
525
|
-
<
|
|
567
|
+
<svg
|
|
568
|
+
class="pf-v6-svg"
|
|
569
|
+
viewBox="0 0 20 20"
|
|
570
|
+
fill="currentColor"
|
|
571
|
+
aria-hidden="true"
|
|
572
|
+
role="img"
|
|
573
|
+
width="1em"
|
|
574
|
+
height="1em"
|
|
575
|
+
>
|
|
576
|
+
<path
|
|
577
|
+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
|
|
578
|
+
/>
|
|
579
|
+
</svg>
|
|
526
580
|
</div>
|
|
527
581
|
</span>
|
|
528
582
|
</button>
|
|
@@ -584,7 +638,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
584
638
|
>
|
|
585
639
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
586
640
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
587
|
-
<
|
|
641
|
+
<svg
|
|
642
|
+
class="pf-v6-svg"
|
|
643
|
+
viewBox="0 0 20 20"
|
|
644
|
+
fill="currentColor"
|
|
645
|
+
aria-hidden="true"
|
|
646
|
+
role="img"
|
|
647
|
+
width="1em"
|
|
648
|
+
height="1em"
|
|
649
|
+
>
|
|
650
|
+
<path
|
|
651
|
+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
|
|
652
|
+
/>
|
|
653
|
+
</svg>
|
|
588
654
|
</div>
|
|
589
655
|
</span>
|
|
590
656
|
</button>
|
|
@@ -646,7 +712,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
646
712
|
>
|
|
647
713
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
648
714
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
649
|
-
<
|
|
715
|
+
<svg
|
|
716
|
+
class="pf-v6-svg"
|
|
717
|
+
viewBox="0 0 20 20"
|
|
718
|
+
fill="currentColor"
|
|
719
|
+
aria-hidden="true"
|
|
720
|
+
role="img"
|
|
721
|
+
width="1em"
|
|
722
|
+
height="1em"
|
|
723
|
+
>
|
|
724
|
+
<path
|
|
725
|
+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
|
|
726
|
+
/>
|
|
727
|
+
</svg>
|
|
650
728
|
</div>
|
|
651
729
|
</span>
|
|
652
730
|
</button>
|
|
@@ -695,7 +773,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
695
773
|
|
|
696
774
|
```
|
|
697
775
|
|
|
698
|
-
###
|
|
776
|
+
### Nested expandable data list example
|
|
699
777
|
|
|
700
778
|
```html
|
|
701
779
|
<ul
|
|
@@ -719,7 +797,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
719
797
|
>
|
|
720
798
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
721
799
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
722
|
-
<
|
|
800
|
+
<svg
|
|
801
|
+
class="pf-v6-svg"
|
|
802
|
+
viewBox="0 0 20 20"
|
|
803
|
+
fill="currentColor"
|
|
804
|
+
aria-hidden="true"
|
|
805
|
+
role="img"
|
|
806
|
+
width="1em"
|
|
807
|
+
height="1em"
|
|
808
|
+
>
|
|
809
|
+
<path
|
|
810
|
+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
|
|
811
|
+
/>
|
|
812
|
+
</svg>
|
|
723
813
|
</div>
|
|
724
814
|
</span>
|
|
725
815
|
</button>
|
|
@@ -782,7 +872,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
782
872
|
>
|
|
783
873
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
784
874
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
785
|
-
<
|
|
875
|
+
<svg
|
|
876
|
+
class="pf-v6-svg"
|
|
877
|
+
viewBox="0 0 20 20"
|
|
878
|
+
fill="currentColor"
|
|
879
|
+
aria-hidden="true"
|
|
880
|
+
role="img"
|
|
881
|
+
width="1em"
|
|
882
|
+
height="1em"
|
|
883
|
+
>
|
|
884
|
+
<path
|
|
885
|
+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
|
|
886
|
+
/>
|
|
887
|
+
</svg>
|
|
786
888
|
</div>
|
|
787
889
|
</span>
|
|
788
890
|
</button>
|
|
@@ -822,7 +924,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
822
924
|
>
|
|
823
925
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
824
926
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
825
|
-
<
|
|
927
|
+
<svg
|
|
928
|
+
class="pf-v6-svg"
|
|
929
|
+
viewBox="0 0 20 20"
|
|
930
|
+
fill="currentColor"
|
|
931
|
+
aria-hidden="true"
|
|
932
|
+
role="img"
|
|
933
|
+
width="1em"
|
|
934
|
+
height="1em"
|
|
935
|
+
>
|
|
936
|
+
<path
|
|
937
|
+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
|
|
938
|
+
/>
|
|
939
|
+
</svg>
|
|
826
940
|
</div>
|
|
827
941
|
</span>
|
|
828
942
|
</button>
|
|
@@ -863,7 +977,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
863
977
|
>
|
|
864
978
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
865
979
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
866
|
-
<
|
|
980
|
+
<svg
|
|
981
|
+
class="pf-v6-svg"
|
|
982
|
+
viewBox="0 0 20 20"
|
|
983
|
+
fill="currentColor"
|
|
984
|
+
aria-hidden="true"
|
|
985
|
+
role="img"
|
|
986
|
+
width="1em"
|
|
987
|
+
height="1em"
|
|
988
|
+
>
|
|
989
|
+
<path
|
|
990
|
+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
|
|
991
|
+
/>
|
|
992
|
+
</svg>
|
|
867
993
|
</div>
|
|
868
994
|
</span>
|
|
869
995
|
</button>
|
|
@@ -907,7 +1033,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
907
1033
|
>
|
|
908
1034
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
909
1035
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
910
|
-
<
|
|
1036
|
+
<svg
|
|
1037
|
+
class="pf-v6-svg"
|
|
1038
|
+
viewBox="0 0 20 20"
|
|
1039
|
+
fill="currentColor"
|
|
1040
|
+
aria-hidden="true"
|
|
1041
|
+
role="img"
|
|
1042
|
+
width="1em"
|
|
1043
|
+
height="1em"
|
|
1044
|
+
>
|
|
1045
|
+
<path
|
|
1046
|
+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
|
|
1047
|
+
/>
|
|
1048
|
+
</svg>
|
|
911
1049
|
</div>
|
|
912
1050
|
</span>
|
|
913
1051
|
</button>
|
|
@@ -966,7 +1104,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
966
1104
|
>
|
|
967
1105
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
968
1106
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
969
|
-
<
|
|
1107
|
+
<svg
|
|
1108
|
+
class="pf-v6-svg"
|
|
1109
|
+
viewBox="0 0 20 20"
|
|
1110
|
+
fill="currentColor"
|
|
1111
|
+
aria-hidden="true"
|
|
1112
|
+
role="img"
|
|
1113
|
+
width="1em"
|
|
1114
|
+
height="1em"
|
|
1115
|
+
>
|
|
1116
|
+
<path
|
|
1117
|
+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
|
|
1118
|
+
/>
|
|
1119
|
+
</svg>
|
|
970
1120
|
</div>
|
|
971
1121
|
</span>
|
|
972
1122
|
</button>
|
|
@@ -1015,7 +1165,9 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1015
1165
|
|
|
1016
1166
|
```
|
|
1017
1167
|
|
|
1018
|
-
|
|
1168
|
+
## Compact data list
|
|
1169
|
+
|
|
1170
|
+
### Compact data list example
|
|
1019
1171
|
|
|
1020
1172
|
```html
|
|
1021
1173
|
<ul
|
|
@@ -1188,7 +1340,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1188
1340
|
|
|
1189
1341
|
```
|
|
1190
1342
|
|
|
1191
|
-
###
|
|
1343
|
+
### Compact data list accessibility
|
|
1192
1344
|
|
|
1193
1345
|
| Attribute | Applied to | Outcome |
|
|
1194
1346
|
| -- | -- | -- |
|
|
@@ -1199,7 +1351,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1199
1351
|
| `id="{button_id}"` | `.pf-v6-c-data-list__toggle` > `.pf-v6-c-button` | Provides a reference for toggle button description. **Required** |
|
|
1200
1352
|
| `aria-controls="[id of element controlled]"` | `.pf-v6-c-data-list__toggle` > `.pf-v6-c-button` | Identifies the section controlled by the toggle button. **Required** |
|
|
1201
1353
|
|
|
1202
|
-
###
|
|
1354
|
+
### Compact data list usage
|
|
1203
1355
|
|
|
1204
1356
|
| Class | Applied to | Outcome |
|
|
1205
1357
|
| -- | -- | -- |
|
|
@@ -1213,15 +1365,16 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1213
1365
|
| `.pf-m-no-padding` | `.pf-v6-c-data-list__expandable-content-body` | Removes padding for the expandable content body. |
|
|
1214
1366
|
| `.pf-m-icon` | `.pf-v6-c-data-list__cell` | Modifies a data list cell to not grow and align-left when its the first data-list\_\_cell element. |
|
|
1215
1367
|
|
|
1216
|
-
|
|
1368
|
+
## Data list modifiers
|
|
1369
|
+
|
|
1370
|
+
### Data list flex modifiers example
|
|
1217
1371
|
|
|
1218
1372
|
```html
|
|
1219
|
-
<h2 class="Preview__section-title">Default fitting - example 1</h2>
|
|
1220
1373
|
<ul
|
|
1221
1374
|
class="pf-v6-c-data-list"
|
|
1222
1375
|
role="list"
|
|
1223
1376
|
aria-label="Width modifier data list example 1"
|
|
1224
|
-
id="data-list-
|
|
1377
|
+
id="data-list-modifiers"
|
|
1225
1378
|
>
|
|
1226
1379
|
<li class="pf-v6-c-data-list__item">
|
|
1227
1380
|
<div class="pf-v6-c-data-list__item-row">
|
|
@@ -1229,13 +1382,13 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1229
1382
|
<div class="pf-v6-c-data-list__check">
|
|
1230
1383
|
<label
|
|
1231
1384
|
class="pf-v6-c-check pf-m-standalone"
|
|
1232
|
-
for="data-list-
|
|
1385
|
+
for="data-list-modifiers-item-1"-input"
|
|
1233
1386
|
>
|
|
1234
1387
|
<input
|
|
1235
1388
|
class="pf-v6-c-check__input"
|
|
1236
1389
|
type="checkbox"
|
|
1237
|
-
id="data-list-
|
|
1238
|
-
name="data-list-
|
|
1390
|
+
id="data-list-modifiers-item-1"-input"
|
|
1391
|
+
name="data-list-modifiers-item-1"-input"
|
|
1239
1392
|
aria-label="Standalone check"
|
|
1240
1393
|
/>
|
|
1241
1394
|
</label>
|
|
@@ -1244,7 +1397,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1244
1397
|
<div class="pf-v6-c-data-list__item-content">
|
|
1245
1398
|
<div class="pf-v6-c-data-list__cell">
|
|
1246
1399
|
<div class="Preview__placeholder">
|
|
1247
|
-
<b id="data-list-
|
|
1400
|
+
<b id="data-list-modifiers-item-1">default</b>
|
|
1248
1401
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
|
|
1249
1402
|
</div>
|
|
1250
1403
|
</div>
|
|
@@ -1257,28 +1410,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1257
1410
|
</div>
|
|
1258
1411
|
</div>
|
|
1259
1412
|
</li>
|
|
1260
|
-
</ul>
|
|
1261
|
-
|
|
1262
|
-
<h2 class="Preview__section-title">Flex modifiers - example 2</h2>
|
|
1263
|
-
<ul
|
|
1264
|
-
class="pf-v6-c-data-list"
|
|
1265
|
-
role="list"
|
|
1266
|
-
aria-label="Width modifier data list example 2"
|
|
1267
|
-
id="data-list-flex-modifiers"
|
|
1268
|
-
>
|
|
1269
1413
|
<li class="pf-v6-c-data-list__item">
|
|
1270
1414
|
<div class="pf-v6-c-data-list__item-row">
|
|
1271
1415
|
<div class="pf-v6-c-data-list__item-control">
|
|
1272
1416
|
<div class="pf-v6-c-data-list__check">
|
|
1273
1417
|
<label
|
|
1274
1418
|
class="pf-v6-c-check pf-m-standalone"
|
|
1275
|
-
for="data-list-
|
|
1419
|
+
for="data-list-modifiers-item-2"-input"
|
|
1276
1420
|
>
|
|
1277
1421
|
<input
|
|
1278
1422
|
class="pf-v6-c-check__input"
|
|
1279
1423
|
type="checkbox"
|
|
1280
|
-
id="data-list-
|
|
1281
|
-
name="data-list-
|
|
1424
|
+
id="data-list-modifiers-item-2"-input"
|
|
1425
|
+
name="data-list-modifiers-item-2"-input"
|
|
1282
1426
|
aria-label="Standalone check"
|
|
1283
1427
|
/>
|
|
1284
1428
|
</label>
|
|
@@ -1287,7 +1431,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1287
1431
|
<div class="pf-v6-c-data-list__item-content">
|
|
1288
1432
|
<div class="pf-v6-c-data-list__cell pf-m-flex-2">
|
|
1289
1433
|
<div class="Preview__placeholder">
|
|
1290
|
-
<b id="data-list-
|
|
1434
|
+
<b id="data-list-modifiers-item-2">.pf-m-flex-2</b>
|
|
1291
1435
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt.</p>
|
|
1292
1436
|
</div>
|
|
1293
1437
|
</div>
|
|
@@ -1304,7 +1448,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1304
1448
|
type="button"
|
|
1305
1449
|
aria-expanded="false"
|
|
1306
1450
|
aria-label="Data list item menu toggle"
|
|
1307
|
-
id="data-list-
|
|
1451
|
+
id="data-list-modifiers-item-2-menu-toggle"
|
|
1308
1452
|
>
|
|
1309
1453
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
1310
1454
|
<i class="fas fa-ellipsis-v" aria-hidden="true"></i>
|
|
@@ -1313,15 +1457,6 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1313
1457
|
</div>
|
|
1314
1458
|
</div>
|
|
1315
1459
|
</li>
|
|
1316
|
-
</ul>
|
|
1317
|
-
|
|
1318
|
-
<h2 class="Preview__section-title">Flex modifiers - example 3</h2>
|
|
1319
|
-
<ul
|
|
1320
|
-
class="pf-v6-c-data-list"
|
|
1321
|
-
role="list"
|
|
1322
|
-
aria-label="Width modifier data list example 3"
|
|
1323
|
-
id="data-list-flex-modifiers-2"
|
|
1324
|
-
>
|
|
1325
1460
|
<li class="pf-v6-c-data-list__item pf-m-expanded">
|
|
1326
1461
|
<div class="pf-v6-c-data-list__item-row">
|
|
1327
1462
|
<div class="pf-v6-c-data-list__item-control">
|
|
@@ -1329,15 +1464,27 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1329
1464
|
<button
|
|
1330
1465
|
class="pf-v6-c-button pf-m-plain"
|
|
1331
1466
|
type="button"
|
|
1332
|
-
aria-labelledby="data-list-
|
|
1333
|
-
id="data-list-
|
|
1467
|
+
aria-labelledby="data-list-modifiers-toggle1 data-list-modifiers-item-1"
|
|
1468
|
+
id="data-list-modifiers-toggle1"
|
|
1334
1469
|
aria-label="Toggle details for"
|
|
1335
1470
|
aria-expanded="true"
|
|
1336
|
-
aria-controls="data-list-
|
|
1471
|
+
aria-controls="data-list-modifiers-content1"
|
|
1337
1472
|
>
|
|
1338
1473
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
1339
1474
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
1340
|
-
<
|
|
1475
|
+
<svg
|
|
1476
|
+
class="pf-v6-svg"
|
|
1477
|
+
viewBox="0 0 20 20"
|
|
1478
|
+
fill="currentColor"
|
|
1479
|
+
aria-hidden="true"
|
|
1480
|
+
role="img"
|
|
1481
|
+
width="1em"
|
|
1482
|
+
height="1em"
|
|
1483
|
+
>
|
|
1484
|
+
<path
|
|
1485
|
+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
|
|
1486
|
+
/>
|
|
1487
|
+
</svg>
|
|
1341
1488
|
</div>
|
|
1342
1489
|
</span>
|
|
1343
1490
|
</button>
|
|
@@ -1346,13 +1493,13 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1346
1493
|
<div class="pf-v6-c-data-list__check">
|
|
1347
1494
|
<label
|
|
1348
1495
|
class="pf-v6-c-check pf-m-standalone"
|
|
1349
|
-
for="data-list-
|
|
1496
|
+
for="data-list-modifiers-item-3"-input"
|
|
1350
1497
|
>
|
|
1351
1498
|
<input
|
|
1352
1499
|
class="pf-v6-c-check__input"
|
|
1353
1500
|
type="checkbox"
|
|
1354
|
-
id="data-list-
|
|
1355
|
-
name="data-list-
|
|
1501
|
+
id="data-list-modifiers-item-3"-input"
|
|
1502
|
+
name="data-list-modifiers-item-3"-input"
|
|
1356
1503
|
aria-label="Standalone check"
|
|
1357
1504
|
/>
|
|
1358
1505
|
</label>
|
|
@@ -1361,7 +1508,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1361
1508
|
<div class="pf-v6-c-data-list__item-content">
|
|
1362
1509
|
<div class="pf-v6-c-data-list__cell pf-m-flex-5">
|
|
1363
1510
|
<div class="Preview__placeholder">
|
|
1364
|
-
<b id="data-list-
|
|
1511
|
+
<b id="data-list-modifiers-item-3">.pf-m-flex-5</b>
|
|
1365
1512
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
|
|
1366
1513
|
</div>
|
|
1367
1514
|
</div>
|
|
@@ -1390,7 +1537,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1390
1537
|
type="button"
|
|
1391
1538
|
aria-expanded="false"
|
|
1392
1539
|
aria-label="Data list item menu toggle"
|
|
1393
|
-
id="data-list-
|
|
1540
|
+
id="data-list-modifiers-item-3-menu-toggle"
|
|
1394
1541
|
>
|
|
1395
1542
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
1396
1543
|
<i class="fas fa-ellipsis-v" aria-hidden="true"></i>
|
|
@@ -1400,7 +1547,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1400
1547
|
</div>
|
|
1401
1548
|
<section
|
|
1402
1549
|
class="pf-v6-c-data-list__expandable-content"
|
|
1403
|
-
id="data-list-
|
|
1550
|
+
id="data-list-modifiers-content1"
|
|
1404
1551
|
aria-label="Flex modifier expandable primary content details"
|
|
1405
1552
|
>
|
|
1406
1553
|
<div
|
|
@@ -1412,19 +1559,103 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1412
1559
|
|
|
1413
1560
|
```
|
|
1414
1561
|
|
|
1415
|
-
###
|
|
1562
|
+
### Data list text modifiers example
|
|
1563
|
+
|
|
1564
|
+
```html
|
|
1565
|
+
<ul
|
|
1566
|
+
class="pf-v6-c-data-list"
|
|
1567
|
+
role="list"
|
|
1568
|
+
aria-label="Data list with text modifiers"
|
|
1569
|
+
id="data-list-with-text-modifiers"
|
|
1570
|
+
>
|
|
1571
|
+
<li class="pf-v6-c-data-list__item">
|
|
1572
|
+
<div class="pf-v6-c-data-list__item-row">
|
|
1573
|
+
<div class="pf-v6-c-data-list__item-content">
|
|
1574
|
+
<div class="pf-v6-c-data-list__cell">
|
|
1575
|
+
<span
|
|
1576
|
+
id="data-list-with-text-modifiers-item"
|
|
1577
|
+
>This text will wrap to the next line because it has the default behavior of the data list cell.</span>
|
|
1578
|
+
</div>
|
|
1579
|
+
<div
|
|
1580
|
+
class="pf-v6-c-data-list__cell pf-m-truncate"
|
|
1581
|
+
tabindex="0"
|
|
1582
|
+
>This text will truncate because it is very very long.</div>
|
|
1583
|
+
<div
|
|
1584
|
+
class="pf-v6-c-data-list__cell pf-m-break-word"
|
|
1585
|
+
>http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
|
|
1586
|
+
<div
|
|
1587
|
+
class="pf-v6-c-data-list__cell pf-m-nowrap"
|
|
1588
|
+
>This text will not break or wrap.</div>
|
|
1589
|
+
</div>
|
|
1590
|
+
</div>
|
|
1591
|
+
<div class="pf-v6-c-data-list__item-row pf-m-truncate">
|
|
1592
|
+
<div class="pf-v6-c-data-list__item-content">
|
|
1593
|
+
<div
|
|
1594
|
+
class="pf-v6-c-data-list__cell"
|
|
1595
|
+
tabindex="0"
|
|
1596
|
+
>This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
|
|
1597
|
+
<div
|
|
1598
|
+
class="pf-v6-c-data-list__cell"
|
|
1599
|
+
tabindex="0"
|
|
1600
|
+
>This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
|
|
1601
|
+
<div
|
|
1602
|
+
class="pf-v6-c-data-list__cell"
|
|
1603
|
+
tabindex="0"
|
|
1604
|
+
>This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
|
|
1605
|
+
<div
|
|
1606
|
+
class="pf-v6-c-data-list__cell"
|
|
1607
|
+
tabindex="0"
|
|
1608
|
+
>This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
|
|
1609
|
+
</div>
|
|
1610
|
+
</div>
|
|
1611
|
+
<div class="pf-v6-c-data-list__item-row pf-m-break-word">
|
|
1612
|
+
<div class="pf-v6-c-data-list__item-content">
|
|
1613
|
+
<div
|
|
1614
|
+
class="pf-v6-c-data-list__cell"
|
|
1615
|
+
>http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
|
|
1616
|
+
<div
|
|
1617
|
+
class="pf-v6-c-data-list__cell"
|
|
1618
|
+
>http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
|
|
1619
|
+
<div
|
|
1620
|
+
class="pf-v6-c-data-list__cell"
|
|
1621
|
+
>http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
|
|
1622
|
+
<div
|
|
1623
|
+
class="pf-v6-c-data-list__cell"
|
|
1624
|
+
>http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
|
|
1625
|
+
</div>
|
|
1626
|
+
</div>
|
|
1627
|
+
<div class="pf-v6-c-data-list__item-row pf-m-nowrap">
|
|
1628
|
+
<div class="pf-v6-c-data-list__item-content">
|
|
1629
|
+
<div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
|
|
1630
|
+
<div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
|
|
1631
|
+
<div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
|
|
1632
|
+
<div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
|
|
1633
|
+
</div>
|
|
1634
|
+
</div>
|
|
1635
|
+
</li>
|
|
1636
|
+
</ul>
|
|
1637
|
+
|
|
1638
|
+
```
|
|
1639
|
+
|
|
1640
|
+
### Data list modifiers accessibility
|
|
1416
1641
|
|
|
1417
1642
|
| Attribute | Applied to | Outcome |
|
|
1418
1643
|
| -- | -- | -- |
|
|
1419
1644
|
| `aria-controls="[id of element controlled]"` | `.pf-v6-c-data-list__toggle` > `.pf-v6-c-button` | Identifies the section controlled by the toggle button. **Required** |
|
|
1420
1645
|
|
|
1421
|
-
###
|
|
1646
|
+
### Data list modifiers usage
|
|
1422
1647
|
|
|
1423
1648
|
| Class | Applied to | Outcome |
|
|
1424
1649
|
| -- | -- | -- |
|
|
1425
1650
|
| `.pf-m-flex-{1, 2, 3, 4, 5}` | `.pf-v6-c-data-list__cell` | Percentage based modifier for `.pf-v6-c-data-list__cell` widths. |
|
|
1651
|
+
| `.pf-v6-c-data-list__text` | `*` | Inserts the data list text element. Use this class to modify specific text directly. |
|
|
1652
|
+
| `.pf-m-truncate` | `.pf-v6-c-data-list`, `.pf-v6-c-data-list__item-row`, `.pf-v6-c-data-list__cell`, `.pf-v6-c-data-list__text` | Modifies the data list element so that text is truncated. |
|
|
1653
|
+
| `.pf-m-break-word` | `.pf-v6-c-data-list`, `.pf-v6-c-data-list__item-row`, `.pf-v6-c-data-list__cell`, `.pf-v6-c-data-list__text` | Modifies the data list element so that text breaks to the next line. |
|
|
1654
|
+
| `.pf-m-nowrap` | `.pf-v6-c-data-list`, `.pf-v6-c-data-list__item-row`, `.pf-v6-c-data-list__cell`, `.pf-v6-c-data-list__text` | Modifies the data list element so that text does not wrap to the next line. |
|
|
1655
|
+
|
|
1656
|
+
## Data list with clickable rows
|
|
1426
1657
|
|
|
1427
|
-
###
|
|
1658
|
+
### Data list with clickable rows example
|
|
1428
1659
|
|
|
1429
1660
|
```html
|
|
1430
1661
|
<ul
|
|
@@ -1466,20 +1697,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1466
1697
|
|
|
1467
1698
|
```
|
|
1468
1699
|
|
|
1469
|
-
###
|
|
1470
|
-
|
|
1471
|
-
| Attribute | Applied to | Outcome |
|
|
1472
|
-
| -- | -- | -- |
|
|
1473
|
-
| `tabindex="0"` | `.pf-v6-c-data-list__item.pf-m-clickable` | Inserts the clickable row into the tab order of the page so that it is focusable. **Required** |
|
|
1474
|
-
|
|
1475
|
-
### Usage
|
|
1476
|
-
|
|
1477
|
-
| Class | Applied to | Outcome |
|
|
1478
|
-
| -- | -- | -- |
|
|
1479
|
-
| `.pf-m-clickable` | `.pf-v6-c-data-list__item` | Modifies a data list item so that it is clickable. |
|
|
1480
|
-
| `.pf-m-selected` | `.pf-v6-c-data-list__item` | Modifies a data list item for the selected state. |
|
|
1481
|
-
|
|
1482
|
-
### Clickable expandable rows
|
|
1700
|
+
### Data list with clickable expandable rows example
|
|
1483
1701
|
|
|
1484
1702
|
```html
|
|
1485
1703
|
<ul
|
|
@@ -1506,7 +1724,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1506
1724
|
>
|
|
1507
1725
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
1508
1726
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
1509
|
-
<
|
|
1727
|
+
<svg
|
|
1728
|
+
class="pf-v6-svg"
|
|
1729
|
+
viewBox="0 0 20 20"
|
|
1730
|
+
fill="currentColor"
|
|
1731
|
+
aria-hidden="true"
|
|
1732
|
+
role="img"
|
|
1733
|
+
width="1em"
|
|
1734
|
+
height="1em"
|
|
1735
|
+
>
|
|
1736
|
+
<path
|
|
1737
|
+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
|
|
1738
|
+
/>
|
|
1739
|
+
</svg>
|
|
1510
1740
|
</div>
|
|
1511
1741
|
</span>
|
|
1512
1742
|
</button>
|
|
@@ -1546,7 +1776,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1546
1776
|
>
|
|
1547
1777
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
1548
1778
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
1549
|
-
<
|
|
1779
|
+
<svg
|
|
1780
|
+
class="pf-v6-svg"
|
|
1781
|
+
viewBox="0 0 20 20"
|
|
1782
|
+
fill="currentColor"
|
|
1783
|
+
aria-hidden="true"
|
|
1784
|
+
role="img"
|
|
1785
|
+
width="1em"
|
|
1786
|
+
height="1em"
|
|
1787
|
+
>
|
|
1788
|
+
<path
|
|
1789
|
+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
|
|
1790
|
+
/>
|
|
1791
|
+
</svg>
|
|
1550
1792
|
</div>
|
|
1551
1793
|
</span>
|
|
1552
1794
|
</button>
|
|
@@ -1587,7 +1829,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1587
1829
|
>
|
|
1588
1830
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
1589
1831
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
1590
|
-
<
|
|
1832
|
+
<svg
|
|
1833
|
+
class="pf-v6-svg"
|
|
1834
|
+
viewBox="0 0 20 20"
|
|
1835
|
+
fill="currentColor"
|
|
1836
|
+
aria-hidden="true"
|
|
1837
|
+
role="img"
|
|
1838
|
+
width="1em"
|
|
1839
|
+
height="1em"
|
|
1840
|
+
>
|
|
1841
|
+
<path
|
|
1842
|
+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
|
|
1843
|
+
/>
|
|
1844
|
+
</svg>
|
|
1591
1845
|
</div>
|
|
1592
1846
|
</span>
|
|
1593
1847
|
</button>
|
|
@@ -1627,7 +1881,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1627
1881
|
>
|
|
1628
1882
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
1629
1883
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
1630
|
-
<
|
|
1884
|
+
<svg
|
|
1885
|
+
class="pf-v6-svg"
|
|
1886
|
+
viewBox="0 0 20 20"
|
|
1887
|
+
fill="currentColor"
|
|
1888
|
+
aria-hidden="true"
|
|
1889
|
+
role="img"
|
|
1890
|
+
width="1em"
|
|
1891
|
+
height="1em"
|
|
1892
|
+
>
|
|
1893
|
+
<path
|
|
1894
|
+
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
|
|
1895
|
+
/>
|
|
1896
|
+
</svg>
|
|
1631
1897
|
</div>
|
|
1632
1898
|
</span>
|
|
1633
1899
|
</button>
|
|
@@ -1656,7 +1922,22 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1656
1922
|
|
|
1657
1923
|
```
|
|
1658
1924
|
|
|
1659
|
-
###
|
|
1925
|
+
### Data list with clickable rows accessibility
|
|
1926
|
+
|
|
1927
|
+
| Attribute | Applied to | Outcome |
|
|
1928
|
+
| -- | -- | -- |
|
|
1929
|
+
| `tabindex="0"` | `.pf-v6-c-data-list__item.pf-m-clickable` | Inserts the clickable row into the tab order of the page so that it is focusable. **Required** |
|
|
1930
|
+
|
|
1931
|
+
### Data list with clickable rows usage
|
|
1932
|
+
|
|
1933
|
+
| Class | Applied to | Outcome |
|
|
1934
|
+
| -- | -- | -- |
|
|
1935
|
+
| `.pf-m-clickable` | `.pf-v6-c-data-list__item` | Modifies a data list item so that it is clickable. |
|
|
1936
|
+
| `.pf-m-selected` | `.pf-v6-c-data-list__item` | Modifies a data list item for the selected state. |
|
|
1937
|
+
|
|
1938
|
+
## Draggable data list
|
|
1939
|
+
|
|
1940
|
+
### Draggable data list example
|
|
1660
1941
|
|
|
1661
1942
|
```html
|
|
1662
1943
|
<div
|
|
@@ -1845,7 +2126,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1845
2126
|
|
|
1846
2127
|
```
|
|
1847
2128
|
|
|
1848
|
-
###
|
|
2129
|
+
### Draggable data list accessibility
|
|
1849
2130
|
|
|
1850
2131
|
| Attribute | Applied to | Outcome |
|
|
1851
2132
|
| -- | -- | -- |
|
|
@@ -1855,7 +2136,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1855
2136
|
| `aria-labelledby="[id value of .pf-v6-c-data-list__item-draggable-button] [id value of .pf-v6-c-data-list__cell-text]"` | `.pf-v6-c-data-list__item-draggable-button` | Provides an accessible name for the draggable button. |
|
|
1856
2137
|
| `id="[]"` | `.pf-v6-c-data-list__item-draggable-button`, `.pf-v6-c-data-list__cell-text` | Gives the button and the text element accessible IDs |
|
|
1857
2138
|
|
|
1858
|
-
###
|
|
2139
|
+
### Draggable data list usage
|
|
1859
2140
|
|
|
1860
2141
|
| Class | Applied to | Outcome |
|
|
1861
2142
|
| -- | -- | -- |
|
|
@@ -1866,117 +2147,37 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1866
2147
|
| `.pf-m-disabled` | `.pf-v6-c-data-list__item.pf-m-draggable` | Modifies a data list draggable item for the disabled state. |
|
|
1867
2148
|
| `.pf-m-drag-over` | `.pf-v6-c-data-list` | Modifies the data list to indicate that a draggable item is being dragged over the data list. |
|
|
1868
2149
|
|
|
1869
|
-
|
|
2150
|
+
## Plain data list
|
|
1870
2151
|
|
|
1871
|
-
|
|
2152
|
+
### Plain data list example
|
|
2153
|
+
|
|
2154
|
+
```html isBeta
|
|
1872
2155
|
<ul
|
|
1873
|
-
class="pf-v6-c-data-list"
|
|
2156
|
+
class="pf-v6-c-data-list pf-m-plain"
|
|
1874
2157
|
role="list"
|
|
1875
|
-
aria-label="
|
|
1876
|
-
id="data-list-
|
|
2158
|
+
aria-label="Basic data list example"
|
|
2159
|
+
id="data-list-basic"
|
|
1877
2160
|
>
|
|
1878
2161
|
<li class="pf-v6-c-data-list__item">
|
|
1879
2162
|
<div class="pf-v6-c-data-list__item-row">
|
|
1880
2163
|
<div class="pf-v6-c-data-list__item-content">
|
|
1881
2164
|
<div class="pf-v6-c-data-list__cell">
|
|
1882
|
-
<span
|
|
1883
|
-
id="data-list-with-text-modifiers-item"
|
|
1884
|
-
>This text will wrap to the next line because it has the default behavior of the data list cell.</span>
|
|
2165
|
+
<span id="data-list-basic-item-1">Primary content</span>
|
|
1885
2166
|
</div>
|
|
1886
|
-
<div
|
|
1887
|
-
class="pf-v6-c-data-list__cell pf-m-truncate"
|
|
1888
|
-
tabindex="0"
|
|
1889
|
-
>This text will truncate because it is very very long.</div>
|
|
1890
|
-
<div
|
|
1891
|
-
class="pf-v6-c-data-list__cell pf-m-break-word"
|
|
1892
|
-
>http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
|
|
1893
|
-
<div
|
|
1894
|
-
class="pf-v6-c-data-list__cell pf-m-nowrap"
|
|
1895
|
-
>This text will not break or wrap.</div>
|
|
1896
|
-
</div>
|
|
1897
|
-
</div>
|
|
1898
|
-
<div class="pf-v6-c-data-list__item-row pf-m-truncate">
|
|
1899
|
-
<div class="pf-v6-c-data-list__item-content">
|
|
1900
|
-
<div
|
|
1901
|
-
class="pf-v6-c-data-list__cell"
|
|
1902
|
-
tabindex="0"
|
|
1903
|
-
>This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
|
|
1904
|
-
<div
|
|
1905
|
-
class="pf-v6-c-data-list__cell"
|
|
1906
|
-
tabindex="0"
|
|
1907
|
-
>This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
|
|
1908
|
-
<div
|
|
1909
|
-
class="pf-v6-c-data-list__cell"
|
|
1910
|
-
tabindex="0"
|
|
1911
|
-
>This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
|
|
1912
|
-
<div
|
|
1913
|
-
class="pf-v6-c-data-list__cell"
|
|
1914
|
-
tabindex="0"
|
|
1915
|
-
>This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
|
|
1916
|
-
</div>
|
|
1917
|
-
</div>
|
|
1918
|
-
<div class="pf-v6-c-data-list__item-row pf-m-break-word">
|
|
1919
|
-
<div class="pf-v6-c-data-list__item-content">
|
|
1920
|
-
<div
|
|
1921
|
-
class="pf-v6-c-data-list__cell"
|
|
1922
|
-
>http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
|
|
1923
|
-
<div
|
|
1924
|
-
class="pf-v6-c-data-list__cell"
|
|
1925
|
-
>http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
|
|
1926
|
-
<div
|
|
1927
|
-
class="pf-v6-c-data-list__cell"
|
|
1928
|
-
>http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
|
|
1929
|
-
<div
|
|
1930
|
-
class="pf-v6-c-data-list__cell"
|
|
1931
|
-
>http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
|
|
1932
|
-
</div>
|
|
1933
|
-
</div>
|
|
1934
|
-
<div class="pf-v6-c-data-list__item-row pf-m-nowrap">
|
|
1935
|
-
<div class="pf-v6-c-data-list__item-content">
|
|
1936
|
-
<div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
|
|
1937
|
-
<div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
|
|
1938
|
-
<div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
|
|
1939
|
-
<div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
|
|
2167
|
+
<div class="pf-v6-c-data-list__cell">Secondary content</div>
|
|
1940
2168
|
</div>
|
|
1941
2169
|
</div>
|
|
1942
2170
|
</li>
|
|
1943
|
-
</ul>
|
|
1944
|
-
|
|
1945
|
-
```
|
|
1946
|
-
|
|
1947
|
-
### Text-modifiers-data-list-text
|
|
1948
2171
|
|
|
1949
|
-
```html
|
|
1950
|
-
<ul
|
|
1951
|
-
class="pf-v6-c-data-list"
|
|
1952
|
-
role="list"
|
|
1953
|
-
aria-label="Data list with modifiers and text"
|
|
1954
|
-
id="data-list-with-text-modifiers-and-text"
|
|
1955
|
-
>
|
|
1956
2172
|
<li class="pf-v6-c-data-list__item">
|
|
1957
2173
|
<div class="pf-v6-c-data-list__item-row">
|
|
1958
2174
|
<div class="pf-v6-c-data-list__item-content">
|
|
1959
|
-
<div class="pf-v6-c-data-list__cell">
|
|
1960
|
-
<span
|
|
1961
|
-
id="data-list-with-text-modifiers-and-text-item-1"
|
|
1962
|
-
>This text will wrap to the next line because it has the default behavior of the data list cell.</span>
|
|
1963
|
-
<span
|
|
1964
|
-
class="pf-v6-c-data-list__text pf-m-truncate"
|
|
1965
|
-
tabindex="0"
|
|
1966
|
-
>This is data list text, you can apply `pf-m-truncate` directly to the text. This is data list text, you can apply `pf-m-truncate` directly to the text.</span>
|
|
1967
|
-
</div>
|
|
1968
|
-
<div class="pf-v6-c-data-list__cell">
|
|
1969
|
-
This text will wrap to the next line because it has the default behavior of the data list cell.
|
|
1970
|
-
<span
|
|
1971
|
-
class="pf-v6-c-data-list__text pf-m-break-word"
|
|
1972
|
-
>http://thisisaverylongdatalisttextthatneedstobreakusethebreakwordmodifier.org</span>
|
|
1973
|
-
</div>
|
|
1974
|
-
<div class="pf-v6-c-data-list__cell">
|
|
1975
|
-
This text will wrap to the next line because it has the default behavior of the data list cell.
|
|
1976
|
-
<span
|
|
1977
|
-
class="pf-v6-c-data-list__text pf-m-nowrap"
|
|
1978
|
-
>This is data list text, you can apply `pf-m-nowrap` directly to the text.</span>
|
|
2175
|
+
<div class="pf-v6-c-data-list__cell pf-m-no-fill">
|
|
2176
|
+
<span id="data-list-basic-item-2">Secondary content (pf-m-no-fill)</span>
|
|
1979
2177
|
</div>
|
|
2178
|
+
<div
|
|
2179
|
+
class="pf-v6-c-data-list__cell pf-m-no-fill pf-m-align-right"
|
|
2180
|
+
>Secondary content (pf-m-align-right pf-m-no-fill)</div>
|
|
1980
2181
|
</div>
|
|
1981
2182
|
</div>
|
|
1982
2183
|
</li>
|
|
@@ -1984,22 +2185,15 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1984
2185
|
|
|
1985
2186
|
```
|
|
1986
2187
|
|
|
1987
|
-
###
|
|
2188
|
+
### Plain data list usage
|
|
1988
2189
|
|
|
1989
2190
|
| Class | Applied to | Outcome |
|
|
1990
2191
|
| -- | -- | -- |
|
|
1991
|
-
| `.pf-v6-c-data-
|
|
1992
|
-
| `.pf-m-truncate` | `.pf-v6-c-data-list`, `.pf-v6-c-data-list__item-row`, `.pf-v6-c-data-list__cell`, `.pf-v6-c-data-list__text` | Modifies the data list element so that text is truncated. |
|
|
1993
|
-
| `.pf-m-break-word` | `.pf-v6-c-data-list`, `.pf-v6-c-data-list__item-row`, `.pf-v6-c-data-list__cell`, `.pf-v6-c-data-list__text` | Modifies the data list element so that text breaks to the next line. |
|
|
1994
|
-
| `.pf-m-nowrap` | `.pf-v6-c-data-list`, `.pf-v6-c-data-list__item-row`, `.pf-v6-c-data-list__cell`, `.pf-v6-c-data-list__text` | Modifies the data list element so that text does not wrap to the next line. |
|
|
1995
|
-
|
|
1996
|
-
## Documentation
|
|
2192
|
+
| `.pf-m-plain` | `.pf-v6-c-data-list` | Modifies a data list to have a transparent background. |
|
|
1997
2193
|
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
The DataList component provides a flexible alternative to the Table component, wherein individual data points may or may not exist within each row. DataList relies upon PatternFly layouts to achieve desired presentation within `pf-v6-c-data-list__cell`s. DataLists do not have headers. If headers are required, use the [table component](/components/table).
|
|
2194
|
+
## Data list as grid
|
|
2001
2195
|
|
|
2002
|
-
###
|
|
2196
|
+
### Data list as grid example
|
|
2003
2197
|
|
|
2004
2198
|
```html
|
|
2005
2199
|
<ul
|
|
@@ -2040,7 +2234,7 @@ The DataList component provides a flexible alternative to the Table component, w
|
|
|
2040
2234
|
|
|
2041
2235
|
```
|
|
2042
2236
|
|
|
2043
|
-
###
|
|
2237
|
+
### Data list as grid on small breakpoint example
|
|
2044
2238
|
|
|
2045
2239
|
```html
|
|
2046
2240
|
<ul
|
|
@@ -2081,7 +2275,7 @@ The DataList component provides a flexible alternative to the Table component, w
|
|
|
2081
2275
|
|
|
2082
2276
|
```
|
|
2083
2277
|
|
|
2084
|
-
###
|
|
2278
|
+
### Data list with no grid
|
|
2085
2279
|
|
|
2086
2280
|
```html
|
|
2087
2281
|
<ul
|
|
@@ -2122,8 +2316,14 @@ The DataList component provides a flexible alternative to the Table component, w
|
|
|
2122
2316
|
|
|
2123
2317
|
```
|
|
2124
2318
|
|
|
2125
|
-
###
|
|
2319
|
+
### Data list as grid usage
|
|
2126
2320
|
|
|
2127
2321
|
| Class | Applied to | Outcome |
|
|
2128
2322
|
| -- | -- | -- |
|
|
2129
|
-
| `.pf-m-grid{-[none, sm, md, lg, xl, 2xl]}` | `.pf-v6-c-data-list` | Modifies the data list to switch to a grid layout at a specified [breakpoint](/tokens/all-
|
|
2323
|
+
| `.pf-m-grid{-[none, sm, md, lg, xl, 2xl]}` | `.pf-v6-c-data-list` | Modifies the data list to switch to a grid layout at a specified [breakpoint](/foundations-and-styles/design-tokens/all-design-tokens). `.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. |
|
|
2324
|
+
|
|
2325
|
+
## Documentation
|
|
2326
|
+
|
|
2327
|
+
### Overview
|
|
2328
|
+
|
|
2329
|
+
The DataList component provides a flexible alternative to the Table component, wherein individual data points may or may not exist within each row. DataList relies upon PatternFly layouts to achieve desired presentation within `pf-v6-c-data-list__cell` elements. DataLists do not have headers. If headers are required, use the [table component](/components/table).
|