@patternfly/patternfly 6.5.0-prerelease.7 → 6.5.0-prerelease.71
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.jpg +0 -0
- package/assets/images/compass--wallpaper-dark.png +0 -0
- package/assets/images/compass--wallpaper-light.jpg +0 -0
- package/assets/images/compass--wallpaper-light.png +0 -0
- package/assets/images/glass-brand-dark.jpg +0 -0
- package/assets/images/glass-brand-dark.png +0 -0
- package/assets/images/glass-brand-light.jpg +0 -0
- package/assets/images/glass-brand-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 +17 -0
- package/base/patternfly-svg-icons.scss +20 -0
- package/base/patternfly-variables.css +926 -513
- package/base/patternfly-variables.scss +46 -4
- package/base/tokens/tokens-dark.scss +56 -8
- package/base/tokens/tokens-default.scss +69 -14
- package/base/tokens/tokens-glass-dark.scss +26 -0
- package/base/tokens/tokens-glass.scss +22 -0
- package/base/tokens/tokens-local.scss +17 -0
- package/base/tokens/tokens-palette.scss +3 -1
- package/base/tokens/tokens-redhat-dark.scss +21 -0
- package/base/tokens/tokens-redhat-glass-dark.scss +40 -0
- package/base/tokens/tokens-redhat-glass.scss +30 -0
- package/base/tokens/tokens-redhat-highcontrast-dark.scss +50 -0
- package/base/tokens/tokens-redhat-highcontrast.scss +128 -0
- package/base/tokens/tokens-redhat.scss +15 -0
- package/components/AboutModalBox/about-modal-box.css +36 -26
- package/components/Accordion/accordion.css +26 -14
- package/components/Accordion/accordion.scss +12 -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 +10 -5
- package/components/Breadcrumb/breadcrumb.scss +6 -2
- package/components/Button/button.css +123 -32
- package/components/Button/button.scss +134 -29
- package/components/CalendarMonth/calendar-month.css +4 -3
- package/components/Card/card.css +51 -15
- package/components/Card/card.scss +65 -9
- package/components/ClipboardCopy/clipboard-copy.css +14 -7
- package/components/ClipboardCopy/clipboard-copy.scss +13 -4
- package/components/CodeEditor/code-editor.css +2 -2
- package/components/CodeEditor/code-editor.scss +2 -2
- 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 +8 -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 +221 -74
- package/components/Drawer/drawer.scss +191 -26
- 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 +16 -5
- package/components/JumpLinks/jump-links.scss +17 -3
- 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 +58 -40
- package/components/Login/login.scss +7 -3
- package/components/Masthead/masthead.css +112 -16
- package/components/Masthead/masthead.scss +112 -1
- package/components/Menu/menu.css +49 -33
- package/components/Menu/menu.scss +26 -19
- package/components/MenuToggle/menu-toggle.css +35 -8
- package/components/MenuToggle/menu-toggle.scss +42 -8
- package/components/ModalBox/modal-box.css +9 -7
- package/components/ModalBox/modal-box.scss +2 -2
- package/components/Nav/nav.css +82 -11
- package/components/Nav/nav.scss +85 -5
- package/components/NotificationDrawer/notification-drawer.css +19 -9
- package/components/NotificationDrawer/notification-drawer.scss +14 -5
- package/components/OverflowMenu/overflow-menu.css +16 -0
- package/components/OverflowMenu/overflow-menu.scss +20 -1
- package/components/Page/page.css +264 -27
- package/components/Page/page.scss +288 -14
- package/components/Pagination/pagination.scss +5 -1
- package/components/Panel/panel.css +14 -0
- package/components/Panel/panel.scss +18 -0
- package/components/Progress/progress.css +3 -1
- package/components/Progress/progress.scss +3 -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 +104 -57
- package/components/Table/table.scss +92 -37
- package/components/Tabs/tabs.css +51 -33
- package/components/Tabs/tabs.scss +54 -26
- 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 +147 -15
- package/components/Toolbar/toolbar.scss +36 -8
- package/components/TreeView/tree-view.css +45 -14
- package/components/TreeView/tree-view.scss +32 -1
- package/components/Wizard/wizard.css +41 -19
- package/components/Wizard/wizard.scss +26 -6
- package/components/_index.css +2320 -772
- package/components/_index.scss +3 -1
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +13 -1
- package/docs/components/Accordion/examples/Accordion.md +392 -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 +313 -26
- package/docs/components/Button/examples/Button.md +2362 -163
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +156 -12
- package/docs/components/Card/examples/Card.md +335 -12
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +293 -28
- package/docs/components/CodeBlock/examples/CodeBlock.md +104 -8
- package/docs/components/CodeEditor/examples/CodeEditor.md +234 -18
- 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 +627 -222
- 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/DragDrop/examples/DragDrop.css +1 -1
- package/docs/components/Drawer/examples/Drawer.md +355 -35
- package/docs/components/DualListSelector/examples/DualListSelector.md +1247 -161
- package/docs/components/EmptyState/examples/EmptyState.md +78 -6
- 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/Hint/examples/Hint.md +39 -3
- package/docs/components/Icon/examples/Icon.md +105 -9
- package/docs/components/InlineEdit/examples/InlineEdit.md +338 -26
- package/docs/components/InputGroup/examples/InputGroup.md +40 -4
- 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 +39 -3
- package/docs/components/Masthead/examples/masthead.md +80 -1
- package/docs/components/Menu/examples/Menu.md +1679 -133
- package/docs/components/MenuToggle/examples/MenuToggle.md +1514 -118
- package/docs/components/ModalBox/examples/ModalBox.md +289 -25
- 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 +1079 -83
- package/docs/components/OverflowMenu/examples/overflow-menu.css +6 -3
- package/docs/components/OverflowMenu/examples/overflow-menu.md +164 -11
- package/docs/components/Page/examples/Page.md +133 -25
- package/docs/components/Pagination/examples/Pagination.md +796 -77
- package/docs/components/Panel/examples/Panel.md +12 -0
- package/docs/components/Popover/examples/Popover.md +286 -22
- package/docs/components/Progress/examples/Progress.md +91 -7
- 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.css +2 -1
- package/docs/components/Table/examples/Table.md +7543 -653
- package/docs/components/Tabs/examples/Tabs.md +5908 -457
- 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 +1101 -88
- package/docs/components/TreeView/examples/TreeView.md +1390 -130
- package/docs/components/Wizard/examples/Wizard.md +828 -73
- package/docs/demos/AboutModal/examples/AboutModal.md +158 -53
- package/docs/demos/Alert/examples/Alert.md +539 -164
- package/docs/demos/BackToTop/examples/BackToTop.md +158 -53
- package/docs/demos/Banner/examples/Banner.md +290 -104
- package/docs/demos/Button/examples/Button.md +13 -1
- package/docs/demos/Card/examples/Card.md +1041 -134
- package/docs/demos/CardView/examples/CardView.md +569 -170
- package/docs/demos/Compass/examples/Compass.md +8009 -0
- package/docs/demos/Dashboard/examples/Dashboard.md +745 -177
- package/docs/demos/DataList/examples/DataList.md +1300 -291
- package/docs/demos/DescriptionList/examples/DescriptionList.md +472 -160
- package/docs/demos/Drawer/examples/Drawer.md +718 -262
- package/docs/demos/Form/examples/BasicForms.md +273 -21
- package/docs/demos/JumpLinks/examples/JumpLinks.md +862 -319
- package/docs/demos/Masthead/examples/Masthead.md +1119 -489
- package/docs/demos/Modal/examples/Modal.md +948 -321
- package/docs/demos/Nav/examples/Nav.md +3267 -499
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +2418 -405
- package/docs/demos/Page/examples/Page.md +2137 -773
- 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 +1913 -504
- package/docs/demos/Skeleton/examples/Skeleton.md +145 -52
- package/docs/demos/Table/examples/Table.md +11806 -2274
- package/docs/demos/Tabs/examples/Tabs.md +1117 -337
- package/docs/demos/Toolbar/examples/Toolbar.md +1811 -279
- package/docs/demos/Wizard/examples/Wizard.md +1705 -526
- 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 +54 -16
- package/patternfly-base-no-globals.css +969 -489
- package/patternfly-base.css +976 -489
- package/patternfly-charts.css +3 -3
- package/patternfly-no-globals.css +3187 -1138
- package/patternfly.css +3194 -1138
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/patternfly.scss +29 -0
- package/sass-utilities/functions.scss +32 -25
- package/sass-utilities/mixins.scss +52 -21
- package/sass-utilities/namespaces-components.scss +6 -0
- package/sass-utilities/scss-variables.scss +3 -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
|
|
@@ -160,7 +164,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
160
164
|
id="data-list-checkboxes-actions-addl-cells-item-1-menu-toggle"
|
|
161
165
|
>
|
|
162
166
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
163
|
-
<
|
|
167
|
+
<svg
|
|
168
|
+
class="pf-v6-svg"
|
|
169
|
+
viewBox="0 0 32 32"
|
|
170
|
+
fill="currentColor"
|
|
171
|
+
aria-hidden="true"
|
|
172
|
+
role="img"
|
|
173
|
+
width="1em"
|
|
174
|
+
height="1em"
|
|
175
|
+
>
|
|
176
|
+
<path
|
|
177
|
+
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
|
|
178
|
+
/>
|
|
179
|
+
</svg>
|
|
164
180
|
</span>
|
|
165
181
|
</button>
|
|
166
182
|
</div>
|
|
@@ -204,7 +220,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
204
220
|
id="data-list-checkboxes-actions-addl-cells-item-2-menu-toggle"
|
|
205
221
|
>
|
|
206
222
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
207
|
-
<
|
|
223
|
+
<svg
|
|
224
|
+
class="pf-v6-svg"
|
|
225
|
+
viewBox="0 0 32 32"
|
|
226
|
+
fill="currentColor"
|
|
227
|
+
aria-hidden="true"
|
|
228
|
+
role="img"
|
|
229
|
+
width="1em"
|
|
230
|
+
height="1em"
|
|
231
|
+
>
|
|
232
|
+
<path
|
|
233
|
+
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
|
|
234
|
+
/>
|
|
235
|
+
</svg>
|
|
208
236
|
</span>
|
|
209
237
|
</button>
|
|
210
238
|
</div>
|
|
@@ -258,7 +286,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
258
286
|
id="data-list-checkboxes-actions-addl-cells-item-3-menu-toggle"
|
|
259
287
|
>
|
|
260
288
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
261
|
-
<
|
|
289
|
+
<svg
|
|
290
|
+
class="pf-v6-svg"
|
|
291
|
+
viewBox="0 0 32 32"
|
|
292
|
+
fill="currentColor"
|
|
293
|
+
aria-hidden="true"
|
|
294
|
+
role="img"
|
|
295
|
+
width="1em"
|
|
296
|
+
height="1em"
|
|
297
|
+
>
|
|
298
|
+
<path
|
|
299
|
+
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
|
|
300
|
+
/>
|
|
301
|
+
</svg>
|
|
262
302
|
</span>
|
|
263
303
|
</button>
|
|
264
304
|
</div>
|
|
@@ -284,7 +324,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
284
324
|
|
|
285
325
|
```
|
|
286
326
|
|
|
287
|
-
###
|
|
327
|
+
### Data list with checkboxes, actions, and additional cells accessibility
|
|
288
328
|
|
|
289
329
|
| Attribute | Applied to | Outcome |
|
|
290
330
|
| -- | -- | -- |
|
|
@@ -293,7 +333,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
293
333
|
| `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
334
|
| `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
335
|
|
|
296
|
-
###
|
|
336
|
+
### Data list with checkboxes, actions, and additional cells usage
|
|
297
337
|
|
|
298
338
|
| Class | Applied to | Outcome |
|
|
299
339
|
| -- | -- | -- |
|
|
@@ -301,10 +341,12 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
301
341
|
| `.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
342
|
| `.pf-v6-c-data-list__check` | `<div>` | Initiates a data list check cell. **Required** |
|
|
303
343
|
| `.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-
|
|
344
|
+
| `.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`. |
|
|
345
|
+
| `.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). |
|
|
346
|
+
|
|
347
|
+
## Exandable data list
|
|
306
348
|
|
|
307
|
-
### Expandable
|
|
349
|
+
### Expandable data list example
|
|
308
350
|
|
|
309
351
|
```html
|
|
310
352
|
<ul
|
|
@@ -328,7 +370,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
328
370
|
>
|
|
329
371
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
330
372
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
331
|
-
<
|
|
373
|
+
<svg
|
|
374
|
+
class="pf-v6-svg"
|
|
375
|
+
viewBox="0 0 20 20"
|
|
376
|
+
fill="currentColor"
|
|
377
|
+
aria-hidden="true"
|
|
378
|
+
role="img"
|
|
379
|
+
width="1em"
|
|
380
|
+
height="1em"
|
|
381
|
+
>
|
|
382
|
+
<path
|
|
383
|
+
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"
|
|
384
|
+
/>
|
|
385
|
+
</svg>
|
|
332
386
|
</div>
|
|
333
387
|
</span>
|
|
334
388
|
</button>
|
|
@@ -359,7 +413,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
359
413
|
id="data-list-expandable-item-1-menu-toggle"
|
|
360
414
|
>
|
|
361
415
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
362
|
-
<
|
|
416
|
+
<svg
|
|
417
|
+
class="pf-v6-svg"
|
|
418
|
+
viewBox="0 0 32 32"
|
|
419
|
+
fill="currentColor"
|
|
420
|
+
aria-hidden="true"
|
|
421
|
+
role="img"
|
|
422
|
+
width="1em"
|
|
423
|
+
height="1em"
|
|
424
|
+
>
|
|
425
|
+
<path
|
|
426
|
+
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
|
|
427
|
+
/>
|
|
428
|
+
</svg>
|
|
363
429
|
</span>
|
|
364
430
|
</button>
|
|
365
431
|
</div>
|
|
@@ -390,7 +456,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
390
456
|
>
|
|
391
457
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
392
458
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
393
|
-
<
|
|
459
|
+
<svg
|
|
460
|
+
class="pf-v6-svg"
|
|
461
|
+
viewBox="0 0 20 20"
|
|
462
|
+
fill="currentColor"
|
|
463
|
+
aria-hidden="true"
|
|
464
|
+
role="img"
|
|
465
|
+
width="1em"
|
|
466
|
+
height="1em"
|
|
467
|
+
>
|
|
468
|
+
<path
|
|
469
|
+
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"
|
|
470
|
+
/>
|
|
471
|
+
</svg>
|
|
394
472
|
</div>
|
|
395
473
|
</span>
|
|
396
474
|
</button>
|
|
@@ -417,7 +495,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
417
495
|
id="data-list-expandable-item-2-menu-toggle"
|
|
418
496
|
>
|
|
419
497
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
420
|
-
<
|
|
498
|
+
<svg
|
|
499
|
+
class="pf-v6-svg"
|
|
500
|
+
viewBox="0 0 32 32"
|
|
501
|
+
fill="currentColor"
|
|
502
|
+
aria-hidden="true"
|
|
503
|
+
role="img"
|
|
504
|
+
width="1em"
|
|
505
|
+
height="1em"
|
|
506
|
+
>
|
|
507
|
+
<path
|
|
508
|
+
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
|
|
509
|
+
/>
|
|
510
|
+
</svg>
|
|
421
511
|
</span>
|
|
422
512
|
</button>
|
|
423
513
|
</div>
|
|
@@ -449,7 +539,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
449
539
|
>
|
|
450
540
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
451
541
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
452
|
-
<
|
|
542
|
+
<svg
|
|
543
|
+
class="pf-v6-svg"
|
|
544
|
+
viewBox="0 0 20 20"
|
|
545
|
+
fill="currentColor"
|
|
546
|
+
aria-hidden="true"
|
|
547
|
+
role="img"
|
|
548
|
+
width="1em"
|
|
549
|
+
height="1em"
|
|
550
|
+
>
|
|
551
|
+
<path
|
|
552
|
+
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"
|
|
553
|
+
/>
|
|
554
|
+
</svg>
|
|
453
555
|
</div>
|
|
454
556
|
</span>
|
|
455
557
|
</button>
|
|
@@ -479,7 +581,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
479
581
|
id="data-list-expandable-item-3-menu-toggle"
|
|
480
582
|
>
|
|
481
583
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
482
|
-
<
|
|
584
|
+
<svg
|
|
585
|
+
class="pf-v6-svg"
|
|
586
|
+
viewBox="0 0 32 32"
|
|
587
|
+
fill="currentColor"
|
|
588
|
+
aria-hidden="true"
|
|
589
|
+
role="img"
|
|
590
|
+
width="1em"
|
|
591
|
+
height="1em"
|
|
592
|
+
>
|
|
593
|
+
<path
|
|
594
|
+
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
|
|
595
|
+
/>
|
|
596
|
+
</svg>
|
|
483
597
|
</span>
|
|
484
598
|
</button>
|
|
485
599
|
</div>
|
|
@@ -498,7 +612,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
498
612
|
|
|
499
613
|
```
|
|
500
614
|
|
|
501
|
-
###
|
|
615
|
+
### Compact expandable data list example
|
|
502
616
|
|
|
503
617
|
```html
|
|
504
618
|
<ul
|
|
@@ -522,7 +636,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
522
636
|
>
|
|
523
637
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
524
638
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
525
|
-
<
|
|
639
|
+
<svg
|
|
640
|
+
class="pf-v6-svg"
|
|
641
|
+
viewBox="0 0 20 20"
|
|
642
|
+
fill="currentColor"
|
|
643
|
+
aria-hidden="true"
|
|
644
|
+
role="img"
|
|
645
|
+
width="1em"
|
|
646
|
+
height="1em"
|
|
647
|
+
>
|
|
648
|
+
<path
|
|
649
|
+
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"
|
|
650
|
+
/>
|
|
651
|
+
</svg>
|
|
526
652
|
</div>
|
|
527
653
|
</span>
|
|
528
654
|
</button>
|
|
@@ -553,7 +679,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
553
679
|
id="data-list-expandable-compact-item-1-menu-toggle"
|
|
554
680
|
>
|
|
555
681
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
556
|
-
<
|
|
682
|
+
<svg
|
|
683
|
+
class="pf-v6-svg"
|
|
684
|
+
viewBox="0 0 32 32"
|
|
685
|
+
fill="currentColor"
|
|
686
|
+
aria-hidden="true"
|
|
687
|
+
role="img"
|
|
688
|
+
width="1em"
|
|
689
|
+
height="1em"
|
|
690
|
+
>
|
|
691
|
+
<path
|
|
692
|
+
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
|
|
693
|
+
/>
|
|
694
|
+
</svg>
|
|
557
695
|
</span>
|
|
558
696
|
</button>
|
|
559
697
|
</div>
|
|
@@ -584,7 +722,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
584
722
|
>
|
|
585
723
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
586
724
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
587
|
-
<
|
|
725
|
+
<svg
|
|
726
|
+
class="pf-v6-svg"
|
|
727
|
+
viewBox="0 0 20 20"
|
|
728
|
+
fill="currentColor"
|
|
729
|
+
aria-hidden="true"
|
|
730
|
+
role="img"
|
|
731
|
+
width="1em"
|
|
732
|
+
height="1em"
|
|
733
|
+
>
|
|
734
|
+
<path
|
|
735
|
+
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"
|
|
736
|
+
/>
|
|
737
|
+
</svg>
|
|
588
738
|
</div>
|
|
589
739
|
</span>
|
|
590
740
|
</button>
|
|
@@ -614,7 +764,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
614
764
|
id="data-list-expandable-compact-item-2-menu-toggle"
|
|
615
765
|
>
|
|
616
766
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
617
|
-
<
|
|
767
|
+
<svg
|
|
768
|
+
class="pf-v6-svg"
|
|
769
|
+
viewBox="0 0 32 32"
|
|
770
|
+
fill="currentColor"
|
|
771
|
+
aria-hidden="true"
|
|
772
|
+
role="img"
|
|
773
|
+
width="1em"
|
|
774
|
+
height="1em"
|
|
775
|
+
>
|
|
776
|
+
<path
|
|
777
|
+
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
|
|
778
|
+
/>
|
|
779
|
+
</svg>
|
|
618
780
|
</span>
|
|
619
781
|
</button>
|
|
620
782
|
</div>
|
|
@@ -646,7 +808,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
646
808
|
>
|
|
647
809
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
648
810
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
649
|
-
<
|
|
811
|
+
<svg
|
|
812
|
+
class="pf-v6-svg"
|
|
813
|
+
viewBox="0 0 20 20"
|
|
814
|
+
fill="currentColor"
|
|
815
|
+
aria-hidden="true"
|
|
816
|
+
role="img"
|
|
817
|
+
width="1em"
|
|
818
|
+
height="1em"
|
|
819
|
+
>
|
|
820
|
+
<path
|
|
821
|
+
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"
|
|
822
|
+
/>
|
|
823
|
+
</svg>
|
|
650
824
|
</div>
|
|
651
825
|
</span>
|
|
652
826
|
</button>
|
|
@@ -676,7 +850,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
676
850
|
id="data-list-expandable-compact-item-3-menu-toggle"
|
|
677
851
|
>
|
|
678
852
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
679
|
-
<
|
|
853
|
+
<svg
|
|
854
|
+
class="pf-v6-svg"
|
|
855
|
+
viewBox="0 0 32 32"
|
|
856
|
+
fill="currentColor"
|
|
857
|
+
aria-hidden="true"
|
|
858
|
+
role="img"
|
|
859
|
+
width="1em"
|
|
860
|
+
height="1em"
|
|
861
|
+
>
|
|
862
|
+
<path
|
|
863
|
+
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
|
|
864
|
+
/>
|
|
865
|
+
</svg>
|
|
680
866
|
</span>
|
|
681
867
|
</button>
|
|
682
868
|
</div>
|
|
@@ -695,7 +881,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
695
881
|
|
|
696
882
|
```
|
|
697
883
|
|
|
698
|
-
###
|
|
884
|
+
### Nested expandable data list example
|
|
699
885
|
|
|
700
886
|
```html
|
|
701
887
|
<ul
|
|
@@ -719,7 +905,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
719
905
|
>
|
|
720
906
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
721
907
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
722
|
-
<
|
|
908
|
+
<svg
|
|
909
|
+
class="pf-v6-svg"
|
|
910
|
+
viewBox="0 0 20 20"
|
|
911
|
+
fill="currentColor"
|
|
912
|
+
aria-hidden="true"
|
|
913
|
+
role="img"
|
|
914
|
+
width="1em"
|
|
915
|
+
height="1em"
|
|
916
|
+
>
|
|
917
|
+
<path
|
|
918
|
+
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"
|
|
919
|
+
/>
|
|
920
|
+
</svg>
|
|
723
921
|
</div>
|
|
724
922
|
</span>
|
|
725
923
|
</button>
|
|
@@ -750,7 +948,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
750
948
|
id="data-list-expandable-nested-item-1-menu-toggle"
|
|
751
949
|
>
|
|
752
950
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
753
|
-
<
|
|
951
|
+
<svg
|
|
952
|
+
class="pf-v6-svg"
|
|
953
|
+
viewBox="0 0 32 32"
|
|
954
|
+
fill="currentColor"
|
|
955
|
+
aria-hidden="true"
|
|
956
|
+
role="img"
|
|
957
|
+
width="1em"
|
|
958
|
+
height="1em"
|
|
959
|
+
>
|
|
960
|
+
<path
|
|
961
|
+
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
|
|
962
|
+
/>
|
|
963
|
+
</svg>
|
|
754
964
|
</span>
|
|
755
965
|
</button>
|
|
756
966
|
</div>
|
|
@@ -782,7 +992,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
782
992
|
>
|
|
783
993
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
784
994
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
785
|
-
<
|
|
995
|
+
<svg
|
|
996
|
+
class="pf-v6-svg"
|
|
997
|
+
viewBox="0 0 20 20"
|
|
998
|
+
fill="currentColor"
|
|
999
|
+
aria-hidden="true"
|
|
1000
|
+
role="img"
|
|
1001
|
+
width="1em"
|
|
1002
|
+
height="1em"
|
|
1003
|
+
>
|
|
1004
|
+
<path
|
|
1005
|
+
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"
|
|
1006
|
+
/>
|
|
1007
|
+
</svg>
|
|
786
1008
|
</div>
|
|
787
1009
|
</span>
|
|
788
1010
|
</button>
|
|
@@ -822,7 +1044,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
822
1044
|
>
|
|
823
1045
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
824
1046
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
825
|
-
<
|
|
1047
|
+
<svg
|
|
1048
|
+
class="pf-v6-svg"
|
|
1049
|
+
viewBox="0 0 20 20"
|
|
1050
|
+
fill="currentColor"
|
|
1051
|
+
aria-hidden="true"
|
|
1052
|
+
role="img"
|
|
1053
|
+
width="1em"
|
|
1054
|
+
height="1em"
|
|
1055
|
+
>
|
|
1056
|
+
<path
|
|
1057
|
+
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"
|
|
1058
|
+
/>
|
|
1059
|
+
</svg>
|
|
826
1060
|
</div>
|
|
827
1061
|
</span>
|
|
828
1062
|
</button>
|
|
@@ -863,7 +1097,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
863
1097
|
>
|
|
864
1098
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
865
1099
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
866
|
-
<
|
|
1100
|
+
<svg
|
|
1101
|
+
class="pf-v6-svg"
|
|
1102
|
+
viewBox="0 0 20 20"
|
|
1103
|
+
fill="currentColor"
|
|
1104
|
+
aria-hidden="true"
|
|
1105
|
+
role="img"
|
|
1106
|
+
width="1em"
|
|
1107
|
+
height="1em"
|
|
1108
|
+
>
|
|
1109
|
+
<path
|
|
1110
|
+
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"
|
|
1111
|
+
/>
|
|
1112
|
+
</svg>
|
|
867
1113
|
</div>
|
|
868
1114
|
</span>
|
|
869
1115
|
</button>
|
|
@@ -907,7 +1153,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
907
1153
|
>
|
|
908
1154
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
909
1155
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
910
|
-
<
|
|
1156
|
+
<svg
|
|
1157
|
+
class="pf-v6-svg"
|
|
1158
|
+
viewBox="0 0 20 20"
|
|
1159
|
+
fill="currentColor"
|
|
1160
|
+
aria-hidden="true"
|
|
1161
|
+
role="img"
|
|
1162
|
+
width="1em"
|
|
1163
|
+
height="1em"
|
|
1164
|
+
>
|
|
1165
|
+
<path
|
|
1166
|
+
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"
|
|
1167
|
+
/>
|
|
1168
|
+
</svg>
|
|
911
1169
|
</div>
|
|
912
1170
|
</span>
|
|
913
1171
|
</button>
|
|
@@ -934,7 +1192,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
934
1192
|
id="data-list-expandable-nested-item-2-menu-toggle"
|
|
935
1193
|
>
|
|
936
1194
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
937
|
-
<
|
|
1195
|
+
<svg
|
|
1196
|
+
class="pf-v6-svg"
|
|
1197
|
+
viewBox="0 0 32 32"
|
|
1198
|
+
fill="currentColor"
|
|
1199
|
+
aria-hidden="true"
|
|
1200
|
+
role="img"
|
|
1201
|
+
width="1em"
|
|
1202
|
+
height="1em"
|
|
1203
|
+
>
|
|
1204
|
+
<path
|
|
1205
|
+
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
|
|
1206
|
+
/>
|
|
1207
|
+
</svg>
|
|
938
1208
|
</span>
|
|
939
1209
|
</button>
|
|
940
1210
|
</div>
|
|
@@ -966,7 +1236,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
966
1236
|
>
|
|
967
1237
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
968
1238
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
969
|
-
<
|
|
1239
|
+
<svg
|
|
1240
|
+
class="pf-v6-svg"
|
|
1241
|
+
viewBox="0 0 20 20"
|
|
1242
|
+
fill="currentColor"
|
|
1243
|
+
aria-hidden="true"
|
|
1244
|
+
role="img"
|
|
1245
|
+
width="1em"
|
|
1246
|
+
height="1em"
|
|
1247
|
+
>
|
|
1248
|
+
<path
|
|
1249
|
+
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"
|
|
1250
|
+
/>
|
|
1251
|
+
</svg>
|
|
970
1252
|
</div>
|
|
971
1253
|
</span>
|
|
972
1254
|
</button>
|
|
@@ -996,7 +1278,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
996
1278
|
id="data-list-expandable-nested-item-3-menu-toggle"
|
|
997
1279
|
>
|
|
998
1280
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
999
|
-
<
|
|
1281
|
+
<svg
|
|
1282
|
+
class="pf-v6-svg"
|
|
1283
|
+
viewBox="0 0 32 32"
|
|
1284
|
+
fill="currentColor"
|
|
1285
|
+
aria-hidden="true"
|
|
1286
|
+
role="img"
|
|
1287
|
+
width="1em"
|
|
1288
|
+
height="1em"
|
|
1289
|
+
>
|
|
1290
|
+
<path
|
|
1291
|
+
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
|
|
1292
|
+
/>
|
|
1293
|
+
</svg>
|
|
1000
1294
|
</span>
|
|
1001
1295
|
</button>
|
|
1002
1296
|
</div>
|
|
@@ -1015,7 +1309,9 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1015
1309
|
|
|
1016
1310
|
```
|
|
1017
1311
|
|
|
1018
|
-
|
|
1312
|
+
## Compact data list
|
|
1313
|
+
|
|
1314
|
+
### Compact data list example
|
|
1019
1315
|
|
|
1020
1316
|
```html
|
|
1021
1317
|
<ul
|
|
@@ -1068,7 +1364,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1068
1364
|
id="data-list-compact-item-1-menu-toggle"
|
|
1069
1365
|
>
|
|
1070
1366
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
1071
|
-
<
|
|
1367
|
+
<svg
|
|
1368
|
+
class="pf-v6-svg"
|
|
1369
|
+
viewBox="0 0 32 32"
|
|
1370
|
+
fill="currentColor"
|
|
1371
|
+
aria-hidden="true"
|
|
1372
|
+
role="img"
|
|
1373
|
+
width="1em"
|
|
1374
|
+
height="1em"
|
|
1375
|
+
>
|
|
1376
|
+
<path
|
|
1377
|
+
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
|
|
1378
|
+
/>
|
|
1379
|
+
</svg>
|
|
1072
1380
|
</span>
|
|
1073
1381
|
</button>
|
|
1074
1382
|
</div>
|
|
@@ -1110,7 +1418,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1110
1418
|
id="data-list-compact-item-2-menu-toggle"
|
|
1111
1419
|
>
|
|
1112
1420
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
1113
|
-
<
|
|
1421
|
+
<svg
|
|
1422
|
+
class="pf-v6-svg"
|
|
1423
|
+
viewBox="0 0 32 32"
|
|
1424
|
+
fill="currentColor"
|
|
1425
|
+
aria-hidden="true"
|
|
1426
|
+
role="img"
|
|
1427
|
+
width="1em"
|
|
1428
|
+
height="1em"
|
|
1429
|
+
>
|
|
1430
|
+
<path
|
|
1431
|
+
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
|
|
1432
|
+
/>
|
|
1433
|
+
</svg>
|
|
1114
1434
|
</span>
|
|
1115
1435
|
</button>
|
|
1116
1436
|
</div>
|
|
@@ -1162,7 +1482,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1162
1482
|
id="data-list-compact-item-3-menu-toggle"
|
|
1163
1483
|
>
|
|
1164
1484
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
1165
|
-
<
|
|
1485
|
+
<svg
|
|
1486
|
+
class="pf-v6-svg"
|
|
1487
|
+
viewBox="0 0 32 32"
|
|
1488
|
+
fill="currentColor"
|
|
1489
|
+
aria-hidden="true"
|
|
1490
|
+
role="img"
|
|
1491
|
+
width="1em"
|
|
1492
|
+
height="1em"
|
|
1493
|
+
>
|
|
1494
|
+
<path
|
|
1495
|
+
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
|
|
1496
|
+
/>
|
|
1497
|
+
</svg>
|
|
1166
1498
|
</span>
|
|
1167
1499
|
</button>
|
|
1168
1500
|
</div>
|
|
@@ -1188,7 +1520,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1188
1520
|
|
|
1189
1521
|
```
|
|
1190
1522
|
|
|
1191
|
-
###
|
|
1523
|
+
### Compact data list accessibility
|
|
1192
1524
|
|
|
1193
1525
|
| Attribute | Applied to | Outcome |
|
|
1194
1526
|
| -- | -- | -- |
|
|
@@ -1199,7 +1531,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1199
1531
|
| `id="{button_id}"` | `.pf-v6-c-data-list__toggle` > `.pf-v6-c-button` | Provides a reference for toggle button description. **Required** |
|
|
1200
1532
|
| `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
1533
|
|
|
1202
|
-
###
|
|
1534
|
+
### Compact data list usage
|
|
1203
1535
|
|
|
1204
1536
|
| Class | Applied to | Outcome |
|
|
1205
1537
|
| -- | -- | -- |
|
|
@@ -1213,15 +1545,16 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1213
1545
|
| `.pf-m-no-padding` | `.pf-v6-c-data-list__expandable-content-body` | Removes padding for the expandable content body. |
|
|
1214
1546
|
| `.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
1547
|
|
|
1216
|
-
|
|
1548
|
+
## Data list modifiers
|
|
1549
|
+
|
|
1550
|
+
### Data list flex modifiers example
|
|
1217
1551
|
|
|
1218
1552
|
```html
|
|
1219
|
-
<h2 class="Preview__section-title">Default fitting - example 1</h2>
|
|
1220
1553
|
<ul
|
|
1221
1554
|
class="pf-v6-c-data-list"
|
|
1222
1555
|
role="list"
|
|
1223
1556
|
aria-label="Width modifier data list example 1"
|
|
1224
|
-
id="data-list-
|
|
1557
|
+
id="data-list-modifiers"
|
|
1225
1558
|
>
|
|
1226
1559
|
<li class="pf-v6-c-data-list__item">
|
|
1227
1560
|
<div class="pf-v6-c-data-list__item-row">
|
|
@@ -1229,13 +1562,13 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1229
1562
|
<div class="pf-v6-c-data-list__check">
|
|
1230
1563
|
<label
|
|
1231
1564
|
class="pf-v6-c-check pf-m-standalone"
|
|
1232
|
-
for="data-list-
|
|
1565
|
+
for="data-list-modifiers-item-1"-input"
|
|
1233
1566
|
>
|
|
1234
1567
|
<input
|
|
1235
1568
|
class="pf-v6-c-check__input"
|
|
1236
1569
|
type="checkbox"
|
|
1237
|
-
id="data-list-
|
|
1238
|
-
name="data-list-
|
|
1570
|
+
id="data-list-modifiers-item-1"-input"
|
|
1571
|
+
name="data-list-modifiers-item-1"-input"
|
|
1239
1572
|
aria-label="Standalone check"
|
|
1240
1573
|
/>
|
|
1241
1574
|
</label>
|
|
@@ -1244,7 +1577,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1244
1577
|
<div class="pf-v6-c-data-list__item-content">
|
|
1245
1578
|
<div class="pf-v6-c-data-list__cell">
|
|
1246
1579
|
<div class="Preview__placeholder">
|
|
1247
|
-
<b id="data-list-
|
|
1580
|
+
<b id="data-list-modifiers-item-1">default</b>
|
|
1248
1581
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
|
|
1249
1582
|
</div>
|
|
1250
1583
|
</div>
|
|
@@ -1257,28 +1590,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1257
1590
|
</div>
|
|
1258
1591
|
</div>
|
|
1259
1592
|
</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
1593
|
<li class="pf-v6-c-data-list__item">
|
|
1270
1594
|
<div class="pf-v6-c-data-list__item-row">
|
|
1271
1595
|
<div class="pf-v6-c-data-list__item-control">
|
|
1272
1596
|
<div class="pf-v6-c-data-list__check">
|
|
1273
1597
|
<label
|
|
1274
1598
|
class="pf-v6-c-check pf-m-standalone"
|
|
1275
|
-
for="data-list-
|
|
1599
|
+
for="data-list-modifiers-item-2"-input"
|
|
1276
1600
|
>
|
|
1277
1601
|
<input
|
|
1278
1602
|
class="pf-v6-c-check__input"
|
|
1279
1603
|
type="checkbox"
|
|
1280
|
-
id="data-list-
|
|
1281
|
-
name="data-list-
|
|
1604
|
+
id="data-list-modifiers-item-2"-input"
|
|
1605
|
+
name="data-list-modifiers-item-2"-input"
|
|
1282
1606
|
aria-label="Standalone check"
|
|
1283
1607
|
/>
|
|
1284
1608
|
</label>
|
|
@@ -1287,7 +1611,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1287
1611
|
<div class="pf-v6-c-data-list__item-content">
|
|
1288
1612
|
<div class="pf-v6-c-data-list__cell pf-m-flex-2">
|
|
1289
1613
|
<div class="Preview__placeholder">
|
|
1290
|
-
<b id="data-list-
|
|
1614
|
+
<b id="data-list-modifiers-item-2">.pf-m-flex-2</b>
|
|
1291
1615
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt.</p>
|
|
1292
1616
|
</div>
|
|
1293
1617
|
</div>
|
|
@@ -1304,24 +1628,27 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1304
1628
|
type="button"
|
|
1305
1629
|
aria-expanded="false"
|
|
1306
1630
|
aria-label="Data list item menu toggle"
|
|
1307
|
-
id="data-list-
|
|
1631
|
+
id="data-list-modifiers-item-2-menu-toggle"
|
|
1308
1632
|
>
|
|
1309
1633
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
1310
|
-
<
|
|
1634
|
+
<svg
|
|
1635
|
+
class="pf-v6-svg"
|
|
1636
|
+
viewBox="0 0 32 32"
|
|
1637
|
+
fill="currentColor"
|
|
1638
|
+
aria-hidden="true"
|
|
1639
|
+
role="img"
|
|
1640
|
+
width="1em"
|
|
1641
|
+
height="1em"
|
|
1642
|
+
>
|
|
1643
|
+
<path
|
|
1644
|
+
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
|
|
1645
|
+
/>
|
|
1646
|
+
</svg>
|
|
1311
1647
|
</span>
|
|
1312
1648
|
</button>
|
|
1313
1649
|
</div>
|
|
1314
1650
|
</div>
|
|
1315
1651
|
</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
1652
|
<li class="pf-v6-c-data-list__item pf-m-expanded">
|
|
1326
1653
|
<div class="pf-v6-c-data-list__item-row">
|
|
1327
1654
|
<div class="pf-v6-c-data-list__item-control">
|
|
@@ -1329,15 +1656,27 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1329
1656
|
<button
|
|
1330
1657
|
class="pf-v6-c-button pf-m-plain"
|
|
1331
1658
|
type="button"
|
|
1332
|
-
aria-labelledby="data-list-
|
|
1333
|
-
id="data-list-
|
|
1659
|
+
aria-labelledby="data-list-modifiers-toggle1 data-list-modifiers-item-1"
|
|
1660
|
+
id="data-list-modifiers-toggle1"
|
|
1334
1661
|
aria-label="Toggle details for"
|
|
1335
1662
|
aria-expanded="true"
|
|
1336
|
-
aria-controls="data-list-
|
|
1663
|
+
aria-controls="data-list-modifiers-content1"
|
|
1337
1664
|
>
|
|
1338
1665
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
1339
1666
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
1340
|
-
<
|
|
1667
|
+
<svg
|
|
1668
|
+
class="pf-v6-svg"
|
|
1669
|
+
viewBox="0 0 20 20"
|
|
1670
|
+
fill="currentColor"
|
|
1671
|
+
aria-hidden="true"
|
|
1672
|
+
role="img"
|
|
1673
|
+
width="1em"
|
|
1674
|
+
height="1em"
|
|
1675
|
+
>
|
|
1676
|
+
<path
|
|
1677
|
+
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"
|
|
1678
|
+
/>
|
|
1679
|
+
</svg>
|
|
1341
1680
|
</div>
|
|
1342
1681
|
</span>
|
|
1343
1682
|
</button>
|
|
@@ -1346,13 +1685,13 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1346
1685
|
<div class="pf-v6-c-data-list__check">
|
|
1347
1686
|
<label
|
|
1348
1687
|
class="pf-v6-c-check pf-m-standalone"
|
|
1349
|
-
for="data-list-
|
|
1688
|
+
for="data-list-modifiers-item-3"-input"
|
|
1350
1689
|
>
|
|
1351
1690
|
<input
|
|
1352
1691
|
class="pf-v6-c-check__input"
|
|
1353
1692
|
type="checkbox"
|
|
1354
|
-
id="data-list-
|
|
1355
|
-
name="data-list-
|
|
1693
|
+
id="data-list-modifiers-item-3"-input"
|
|
1694
|
+
name="data-list-modifiers-item-3"-input"
|
|
1356
1695
|
aria-label="Standalone check"
|
|
1357
1696
|
/>
|
|
1358
1697
|
</label>
|
|
@@ -1361,7 +1700,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1361
1700
|
<div class="pf-v6-c-data-list__item-content">
|
|
1362
1701
|
<div class="pf-v6-c-data-list__cell pf-m-flex-5">
|
|
1363
1702
|
<div class="Preview__placeholder">
|
|
1364
|
-
<b id="data-list-
|
|
1703
|
+
<b id="data-list-modifiers-item-3">.pf-m-flex-5</b>
|
|
1365
1704
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
|
|
1366
1705
|
</div>
|
|
1367
1706
|
</div>
|
|
@@ -1390,17 +1729,29 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1390
1729
|
type="button"
|
|
1391
1730
|
aria-expanded="false"
|
|
1392
1731
|
aria-label="Data list item menu toggle"
|
|
1393
|
-
id="data-list-
|
|
1732
|
+
id="data-list-modifiers-item-3-menu-toggle"
|
|
1394
1733
|
>
|
|
1395
1734
|
<span class="pf-v6-c-menu-toggle__icon">
|
|
1396
|
-
<
|
|
1735
|
+
<svg
|
|
1736
|
+
class="pf-v6-svg"
|
|
1737
|
+
viewBox="0 0 32 32"
|
|
1738
|
+
fill="currentColor"
|
|
1739
|
+
aria-hidden="true"
|
|
1740
|
+
role="img"
|
|
1741
|
+
width="1em"
|
|
1742
|
+
height="1em"
|
|
1743
|
+
>
|
|
1744
|
+
<path
|
|
1745
|
+
d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
|
|
1746
|
+
/>
|
|
1747
|
+
</svg>
|
|
1397
1748
|
</span>
|
|
1398
1749
|
</button>
|
|
1399
1750
|
</div>
|
|
1400
1751
|
</div>
|
|
1401
1752
|
<section
|
|
1402
1753
|
class="pf-v6-c-data-list__expandable-content"
|
|
1403
|
-
id="data-list-
|
|
1754
|
+
id="data-list-modifiers-content1"
|
|
1404
1755
|
aria-label="Flex modifier expandable primary content details"
|
|
1405
1756
|
>
|
|
1406
1757
|
<div
|
|
@@ -1412,19 +1763,103 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1412
1763
|
|
|
1413
1764
|
```
|
|
1414
1765
|
|
|
1415
|
-
###
|
|
1766
|
+
### Data list text modifiers example
|
|
1767
|
+
|
|
1768
|
+
```html
|
|
1769
|
+
<ul
|
|
1770
|
+
class="pf-v6-c-data-list"
|
|
1771
|
+
role="list"
|
|
1772
|
+
aria-label="Data list with text modifiers"
|
|
1773
|
+
id="data-list-with-text-modifiers"
|
|
1774
|
+
>
|
|
1775
|
+
<li class="pf-v6-c-data-list__item">
|
|
1776
|
+
<div class="pf-v6-c-data-list__item-row">
|
|
1777
|
+
<div class="pf-v6-c-data-list__item-content">
|
|
1778
|
+
<div class="pf-v6-c-data-list__cell">
|
|
1779
|
+
<span
|
|
1780
|
+
id="data-list-with-text-modifiers-item"
|
|
1781
|
+
>This text will wrap to the next line because it has the default behavior of the data list cell.</span>
|
|
1782
|
+
</div>
|
|
1783
|
+
<div
|
|
1784
|
+
class="pf-v6-c-data-list__cell pf-m-truncate"
|
|
1785
|
+
tabindex="0"
|
|
1786
|
+
>This text will truncate because it is very very long.</div>
|
|
1787
|
+
<div
|
|
1788
|
+
class="pf-v6-c-data-list__cell pf-m-break-word"
|
|
1789
|
+
>http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
|
|
1790
|
+
<div
|
|
1791
|
+
class="pf-v6-c-data-list__cell pf-m-nowrap"
|
|
1792
|
+
>This text will not break or wrap.</div>
|
|
1793
|
+
</div>
|
|
1794
|
+
</div>
|
|
1795
|
+
<div class="pf-v6-c-data-list__item-row pf-m-truncate">
|
|
1796
|
+
<div class="pf-v6-c-data-list__item-content">
|
|
1797
|
+
<div
|
|
1798
|
+
class="pf-v6-c-data-list__cell"
|
|
1799
|
+
tabindex="0"
|
|
1800
|
+
>This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
|
|
1801
|
+
<div
|
|
1802
|
+
class="pf-v6-c-data-list__cell"
|
|
1803
|
+
tabindex="0"
|
|
1804
|
+
>This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
|
|
1805
|
+
<div
|
|
1806
|
+
class="pf-v6-c-data-list__cell"
|
|
1807
|
+
tabindex="0"
|
|
1808
|
+
>This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
|
|
1809
|
+
<div
|
|
1810
|
+
class="pf-v6-c-data-list__cell"
|
|
1811
|
+
tabindex="0"
|
|
1812
|
+
>This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
|
|
1813
|
+
</div>
|
|
1814
|
+
</div>
|
|
1815
|
+
<div class="pf-v6-c-data-list__item-row pf-m-break-word">
|
|
1816
|
+
<div class="pf-v6-c-data-list__item-content">
|
|
1817
|
+
<div
|
|
1818
|
+
class="pf-v6-c-data-list__cell"
|
|
1819
|
+
>http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
|
|
1820
|
+
<div
|
|
1821
|
+
class="pf-v6-c-data-list__cell"
|
|
1822
|
+
>http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
|
|
1823
|
+
<div
|
|
1824
|
+
class="pf-v6-c-data-list__cell"
|
|
1825
|
+
>http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
|
|
1826
|
+
<div
|
|
1827
|
+
class="pf-v6-c-data-list__cell"
|
|
1828
|
+
>http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
|
|
1829
|
+
</div>
|
|
1830
|
+
</div>
|
|
1831
|
+
<div class="pf-v6-c-data-list__item-row pf-m-nowrap">
|
|
1832
|
+
<div class="pf-v6-c-data-list__item-content">
|
|
1833
|
+
<div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
|
|
1834
|
+
<div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
|
|
1835
|
+
<div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
|
|
1836
|
+
<div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
|
|
1837
|
+
</div>
|
|
1838
|
+
</div>
|
|
1839
|
+
</li>
|
|
1840
|
+
</ul>
|
|
1841
|
+
|
|
1842
|
+
```
|
|
1843
|
+
|
|
1844
|
+
### Data list modifiers accessibility
|
|
1416
1845
|
|
|
1417
1846
|
| Attribute | Applied to | Outcome |
|
|
1418
1847
|
| -- | -- | -- |
|
|
1419
1848
|
| `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
1849
|
|
|
1421
|
-
###
|
|
1850
|
+
### Data list modifiers usage
|
|
1422
1851
|
|
|
1423
1852
|
| Class | Applied to | Outcome |
|
|
1424
1853
|
| -- | -- | -- |
|
|
1425
1854
|
| `.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. |
|
|
1855
|
+
| `.pf-v6-c-data-list__text` | `*` | Inserts the data list text element. Use this class to modify specific text directly. |
|
|
1856
|
+
| `.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. |
|
|
1857
|
+
| `.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. |
|
|
1858
|
+
| `.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. |
|
|
1859
|
+
|
|
1860
|
+
## Data list with clickable rows
|
|
1426
1861
|
|
|
1427
|
-
###
|
|
1862
|
+
### Data list with clickable rows example
|
|
1428
1863
|
|
|
1429
1864
|
```html
|
|
1430
1865
|
<ul
|
|
@@ -1466,20 +1901,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1466
1901
|
|
|
1467
1902
|
```
|
|
1468
1903
|
|
|
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
|
|
1904
|
+
### Data list with clickable expandable rows example
|
|
1483
1905
|
|
|
1484
1906
|
```html
|
|
1485
1907
|
<ul
|
|
@@ -1506,7 +1928,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1506
1928
|
>
|
|
1507
1929
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
1508
1930
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
1509
|
-
<
|
|
1931
|
+
<svg
|
|
1932
|
+
class="pf-v6-svg"
|
|
1933
|
+
viewBox="0 0 20 20"
|
|
1934
|
+
fill="currentColor"
|
|
1935
|
+
aria-hidden="true"
|
|
1936
|
+
role="img"
|
|
1937
|
+
width="1em"
|
|
1938
|
+
height="1em"
|
|
1939
|
+
>
|
|
1940
|
+
<path
|
|
1941
|
+
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"
|
|
1942
|
+
/>
|
|
1943
|
+
</svg>
|
|
1510
1944
|
</div>
|
|
1511
1945
|
</span>
|
|
1512
1946
|
</button>
|
|
@@ -1546,7 +1980,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1546
1980
|
>
|
|
1547
1981
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
1548
1982
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
1549
|
-
<
|
|
1983
|
+
<svg
|
|
1984
|
+
class="pf-v6-svg"
|
|
1985
|
+
viewBox="0 0 20 20"
|
|
1986
|
+
fill="currentColor"
|
|
1987
|
+
aria-hidden="true"
|
|
1988
|
+
role="img"
|
|
1989
|
+
width="1em"
|
|
1990
|
+
height="1em"
|
|
1991
|
+
>
|
|
1992
|
+
<path
|
|
1993
|
+
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"
|
|
1994
|
+
/>
|
|
1995
|
+
</svg>
|
|
1550
1996
|
</div>
|
|
1551
1997
|
</span>
|
|
1552
1998
|
</button>
|
|
@@ -1587,7 +2033,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1587
2033
|
>
|
|
1588
2034
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
1589
2035
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
1590
|
-
<
|
|
2036
|
+
<svg
|
|
2037
|
+
class="pf-v6-svg"
|
|
2038
|
+
viewBox="0 0 20 20"
|
|
2039
|
+
fill="currentColor"
|
|
2040
|
+
aria-hidden="true"
|
|
2041
|
+
role="img"
|
|
2042
|
+
width="1em"
|
|
2043
|
+
height="1em"
|
|
2044
|
+
>
|
|
2045
|
+
<path
|
|
2046
|
+
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"
|
|
2047
|
+
/>
|
|
2048
|
+
</svg>
|
|
1591
2049
|
</div>
|
|
1592
2050
|
</span>
|
|
1593
2051
|
</button>
|
|
@@ -1627,7 +2085,19 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1627
2085
|
>
|
|
1628
2086
|
<span class="pf-v6-c-button__icon pf-m-start">
|
|
1629
2087
|
<div class="pf-v6-c-data-list__toggle-icon">
|
|
1630
|
-
<
|
|
2088
|
+
<svg
|
|
2089
|
+
class="pf-v6-svg"
|
|
2090
|
+
viewBox="0 0 20 20"
|
|
2091
|
+
fill="currentColor"
|
|
2092
|
+
aria-hidden="true"
|
|
2093
|
+
role="img"
|
|
2094
|
+
width="1em"
|
|
2095
|
+
height="1em"
|
|
2096
|
+
>
|
|
2097
|
+
<path
|
|
2098
|
+
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"
|
|
2099
|
+
/>
|
|
2100
|
+
</svg>
|
|
1631
2101
|
</div>
|
|
1632
2102
|
</span>
|
|
1633
2103
|
</button>
|
|
@@ -1656,7 +2126,22 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1656
2126
|
|
|
1657
2127
|
```
|
|
1658
2128
|
|
|
1659
|
-
###
|
|
2129
|
+
### Data list with clickable rows accessibility
|
|
2130
|
+
|
|
2131
|
+
| Attribute | Applied to | Outcome |
|
|
2132
|
+
| -- | -- | -- |
|
|
2133
|
+
| `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** |
|
|
2134
|
+
|
|
2135
|
+
### Data list with clickable rows usage
|
|
2136
|
+
|
|
2137
|
+
| Class | Applied to | Outcome |
|
|
2138
|
+
| -- | -- | -- |
|
|
2139
|
+
| `.pf-m-clickable` | `.pf-v6-c-data-list__item` | Modifies a data list item so that it is clickable. |
|
|
2140
|
+
| `.pf-m-selected` | `.pf-v6-c-data-list__item` | Modifies a data list item for the selected state. |
|
|
2141
|
+
|
|
2142
|
+
## Draggable data list
|
|
2143
|
+
|
|
2144
|
+
### Draggable data list example
|
|
1660
2145
|
|
|
1661
2146
|
```html
|
|
1662
2147
|
<div
|
|
@@ -1845,7 +2330,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1845
2330
|
|
|
1846
2331
|
```
|
|
1847
2332
|
|
|
1848
|
-
###
|
|
2333
|
+
### Draggable data list accessibility
|
|
1849
2334
|
|
|
1850
2335
|
| Attribute | Applied to | Outcome |
|
|
1851
2336
|
| -- | -- | -- |
|
|
@@ -1855,7 +2340,7 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1855
2340
|
| `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
2341
|
| `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
2342
|
|
|
1858
|
-
###
|
|
2343
|
+
### Draggable data list usage
|
|
1859
2344
|
|
|
1860
2345
|
| Class | Applied to | Outcome |
|
|
1861
2346
|
| -- | -- | -- |
|
|
@@ -1866,117 +2351,37 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1866
2351
|
| `.pf-m-disabled` | `.pf-v6-c-data-list__item.pf-m-draggable` | Modifies a data list draggable item for the disabled state. |
|
|
1867
2352
|
| `.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
2353
|
|
|
1869
|
-
|
|
2354
|
+
## Plain data list
|
|
1870
2355
|
|
|
1871
|
-
|
|
2356
|
+
### Plain data list example
|
|
2357
|
+
|
|
2358
|
+
```html isBeta
|
|
1872
2359
|
<ul
|
|
1873
|
-
class="pf-v6-c-data-list"
|
|
2360
|
+
class="pf-v6-c-data-list pf-m-plain"
|
|
1874
2361
|
role="list"
|
|
1875
|
-
aria-label="
|
|
1876
|
-
id="data-list-
|
|
2362
|
+
aria-label="Basic data list example"
|
|
2363
|
+
id="data-list-basic"
|
|
1877
2364
|
>
|
|
1878
2365
|
<li class="pf-v6-c-data-list__item">
|
|
1879
2366
|
<div class="pf-v6-c-data-list__item-row">
|
|
1880
2367
|
<div class="pf-v6-c-data-list__item-content">
|
|
1881
2368
|
<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>
|
|
2369
|
+
<span id="data-list-basic-item-1">Primary content</span>
|
|
1885
2370
|
</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>
|
|
2371
|
+
<div class="pf-v6-c-data-list__cell">Secondary content</div>
|
|
1940
2372
|
</div>
|
|
1941
2373
|
</div>
|
|
1942
2374
|
</li>
|
|
1943
|
-
</ul>
|
|
1944
|
-
|
|
1945
|
-
```
|
|
1946
|
-
|
|
1947
|
-
### Text-modifiers-data-list-text
|
|
1948
2375
|
|
|
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
2376
|
<li class="pf-v6-c-data-list__item">
|
|
1957
2377
|
<div class="pf-v6-c-data-list__item-row">
|
|
1958
2378
|
<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>
|
|
2379
|
+
<div class="pf-v6-c-data-list__cell pf-m-no-fill">
|
|
2380
|
+
<span id="data-list-basic-item-2">Secondary content (pf-m-no-fill)</span>
|
|
1979
2381
|
</div>
|
|
2382
|
+
<div
|
|
2383
|
+
class="pf-v6-c-data-list__cell pf-m-no-fill pf-m-align-right"
|
|
2384
|
+
>Secondary content (pf-m-align-right pf-m-no-fill)</div>
|
|
1980
2385
|
</div>
|
|
1981
2386
|
</div>
|
|
1982
2387
|
</li>
|
|
@@ -1984,22 +2389,16 @@ When a list item includes more than one block of content, it can be difficult fo
|
|
|
1984
2389
|
|
|
1985
2390
|
```
|
|
1986
2391
|
|
|
1987
|
-
###
|
|
2392
|
+
### Plain data list usage
|
|
1988
2393
|
|
|
1989
2394
|
| Class | Applied to | Outcome |
|
|
1990
2395
|
| -- | -- | -- |
|
|
1991
|
-
| `.pf-v6-c-data-
|
|
1992
|
-
| `.pf-m-
|
|
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. |
|
|
2396
|
+
| `.pf-m-plain` | `.pf-v6-c-data-list` | Modifies a data list to have a transparent background. |
|
|
2397
|
+
| `.pf-m-no-plain-on-glass` | `.pf-v6-c-data-list` | Prevents the data list from automatically applying plain styling when glass theme is enabled. |
|
|
1995
2398
|
|
|
1996
|
-
##
|
|
2399
|
+
## Data list as grid
|
|
1997
2400
|
|
|
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).
|
|
2001
|
-
|
|
2002
|
-
### Grid
|
|
2401
|
+
### Data list as grid example
|
|
2003
2402
|
|
|
2004
2403
|
```html
|
|
2005
2404
|
<ul
|
|
@@ -2040,7 +2439,7 @@ The DataList component provides a flexible alternative to the Table component, w
|
|
|
2040
2439
|
|
|
2041
2440
|
```
|
|
2042
2441
|
|
|
2043
|
-
###
|
|
2442
|
+
### Data list as grid on small breakpoint example
|
|
2044
2443
|
|
|
2045
2444
|
```html
|
|
2046
2445
|
<ul
|
|
@@ -2081,7 +2480,7 @@ The DataList component provides a flexible alternative to the Table component, w
|
|
|
2081
2480
|
|
|
2082
2481
|
```
|
|
2083
2482
|
|
|
2084
|
-
###
|
|
2483
|
+
### Data list with no grid
|
|
2085
2484
|
|
|
2086
2485
|
```html
|
|
2087
2486
|
<ul
|
|
@@ -2122,8 +2521,14 @@ The DataList component provides a flexible alternative to the Table component, w
|
|
|
2122
2521
|
|
|
2123
2522
|
```
|
|
2124
2523
|
|
|
2125
|
-
###
|
|
2524
|
+
### Data list as grid usage
|
|
2126
2525
|
|
|
2127
2526
|
| Class | Applied to | Outcome |
|
|
2128
2527
|
| -- | -- | -- |
|
|
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-
|
|
2528
|
+
| `.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. |
|
|
2529
|
+
|
|
2530
|
+
## Documentation
|
|
2531
|
+
|
|
2532
|
+
### Overview
|
|
2533
|
+
|
|
2534
|
+
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).
|