@patternfly/patternfly 6.0.0-alpha.5 → 6.0.0-alpha.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/CODE_OF_CONDUCT.md +1 -2
- package/README.md +13 -3
- package/assets/icons/iconUnicodes.json +1 -0
- package/assets/images/PF-Backdrop.svg +1 -0
- package/assets/images/PF-HorizontalLogo-Color.svg +29 -0
- package/assets/images/PF-HorizontalLogo-Reverse.svg +28 -0
- package/assets/images/PF-IconLogo-Reverse.svg +14 -0
- package/assets/images/PF-IconLogo-color.svg +17 -0
- package/assets/images/PF-IconLogo.svg +17 -0
- package/assets/images/logo__pf--reverse-on-md.svg +1 -1
- package/assets/images/pf-background.svg +22 -0
- package/assets/images/pf-c-brand__logo-on-lg-white.svg +32 -0
- package/assets/images/pf-c-brand__logo-on-md-white.svg +42 -0
- package/assets/images/pf-c-brand__logo-on-sm-white.svg +17 -0
- package/assets/images/pf-c-brand__logo-on-sm.svg +1 -1
- package/assets/images/pf-c-brand__logo-on-xl-white.svg +39 -0
- package/assets/images/pf_logo_white.hbs +35 -0
- package/assets/images/pf_logo_white.svg +38 -0
- package/assets/pficon/pf-v5-pficon.woff2 +0 -0
- package/assets/pficon/pficon.scss +6 -129
- package/base/_common.scss +29 -4
- package/base/_globals.scss +5 -7
- package/base/_variables.scss +8 -6
- package/base/patternfly-common.css +24 -6
- package/base/patternfly-globals.css +5 -4
- package/base/patternfly-icons.css +5 -1
- package/base/patternfly-pf-icons.css +5 -1
- package/base/patternfly-variables.css +889 -787
- package/base/tokens/_tokens-dark.scss +322 -265
- package/base/tokens/_tokens-default.scss +428 -306
- package/base/tokens/_tokens-font.scss +41 -46
- package/base/tokens/_tokens-palette.scss +69 -71
- package/base/tokens/_workspace-overrides.scss +7 -0
- package/components/AboutModalBox/about-modal-box.css +78 -104
- package/components/AboutModalBox/about-modal-box.scss +62 -74
- package/components/Accordion/accordion.css +96 -175
- package/components/Accordion/accordion.scss +106 -193
- package/components/ActionList/action-list.css +2 -2
- package/components/ActionList/action-list.scss +2 -2
- package/components/Alert/alert-group.css +27 -20
- package/components/Alert/alert-group.scss +27 -20
- package/components/Alert/alert.css +74 -95
- package/components/Alert/alert.scss +76 -89
- package/components/AppLauncher/app-launcher.css +32 -23
- package/components/AppLauncher/app-launcher.scss +32 -23
- package/components/Avatar/avatar.css +10 -13
- package/components/Avatar/avatar.scss +10 -17
- package/components/BackToTop/back-to-top.css +17 -15
- package/components/BackToTop/back-to-top.scss +14 -13
- package/components/Backdrop/backdrop.css +8 -4
- package/components/Backdrop/backdrop.scss +7 -4
- package/components/BackgroundImage/background-image.css +11 -4
- package/components/BackgroundImage/background-image.scss +13 -4
- package/components/Badge/badge.css +25 -17
- package/components/Badge/badge.scss +27 -19
- package/components/Banner/banner.css +95 -69
- package/components/Banner/banner.scss +100 -34
- package/components/Breadcrumb/breadcrumb.css +28 -19
- package/components/Breadcrumb/breadcrumb.scss +26 -19
- package/components/Button/button.css +401 -358
- package/components/Button/button.scss +459 -486
- package/components/CalendarMonth/calendar-month.css +25 -15
- package/components/CalendarMonth/calendar-month.scss +23 -15
- package/components/Card/card.css +28 -17
- package/components/Card/card.scss +32 -17
- package/components/Check/check.css +25 -22
- package/components/Check/check.scss +26 -24
- package/components/Chip/chip-group.css +6 -6
- package/components/Chip/chip-group.scss +6 -6
- package/components/Chip/chip.css +16 -9
- package/components/Chip/chip.scss +17 -9
- package/components/ClipboardCopy/clipboard-copy.css +19 -10
- package/components/ClipboardCopy/clipboard-copy.scss +16 -8
- package/components/ClipboardCopy/themes/dark/clipboard-copy.scss +2 -2
- package/components/CodeBlock/code-block.css +6 -3
- package/components/CodeBlock/code-block.scss +6 -3
- package/components/CodeEditor/code-editor.css +31 -22
- package/components/CodeEditor/code-editor.scss +30 -21
- package/components/CodeEditor/themes/dark/code-editor.scss +1 -1
- package/components/Content/content.css +40 -37
- package/components/Content/content.scss +40 -37
- package/components/ContextSelector/context-selector.css +41 -26
- package/components/ContextSelector/context-selector.scss +40 -25
- package/components/ContextSelector/themes/dark/context-selector.scss +1 -1
- package/components/DataList/data-list-grid.css +21 -21
- package/components/DataList/data-list-grid.scss +3 -3
- package/components/DataList/data-list.css +165 -209
- package/components/DataList/data-list.scss +138 -185
- package/components/DatePicker/date-picker.css +8 -8
- package/components/DatePicker/date-picker.scss +8 -8
- package/components/DescriptionList/description-list.css +8 -5
- package/components/DescriptionList/description-list.scss +8 -5
- package/components/Divider/divider.css +97 -177
- package/components/Divider/divider.scss +60 -79
- package/components/DragDrop/drag-drop.css +8 -8
- package/components/DragDrop/drag-drop.scss +8 -8
- package/components/Drawer/drawer.css +120 -62
- package/components/Drawer/drawer.scss +94 -44
- package/components/Dropdown/dropdown.css +76 -69
- package/components/Dropdown/dropdown.scss +67 -62
- package/components/DualListSelector/dual-list-selector.css +29 -15
- package/components/DualListSelector/dual-list-selector.scss +30 -15
- package/components/EmptyState/empty-state.css +64 -38
- package/components/EmptyState/empty-state.scss +70 -38
- package/components/ExpandableSection/expandable-section.css +75 -66
- package/components/ExpandableSection/expandable-section.scss +82 -80
- package/components/FileUpload/file-upload.css +9 -15
- package/components/FileUpload/file-upload.scss +9 -15
- package/components/Form/form.css +111 -154
- package/components/Form/form.scss +101 -160
- package/components/FormControl/form-control.css +95 -111
- package/components/FormControl/form-control.scss +97 -92
- package/components/HelperText/helper-text.css +29 -35
- package/components/HelperText/helper-text.scss +31 -41
- package/components/Hint/hint.css +37 -27
- package/components/Hint/hint.scss +37 -30
- package/components/Icon/icon.css +1 -1
- package/components/Icon/icon.scss +1 -1
- package/components/InlineEdit/inline-edit.css +9 -9
- package/components/InlineEdit/inline-edit.scss +9 -9
- package/components/InputGroup/input-group.css +12 -6
- package/components/InputGroup/input-group.scss +11 -5
- package/components/InputGroup/themes/dark/input-group.scss +1 -1
- package/components/JumpLinks/jump-links.css +27 -24
- package/components/JumpLinks/jump-links.scss +26 -24
- package/components/Label/label-group.css +13 -10
- package/components/Label/label-group.scss +13 -10
- package/components/Label/label.css +9 -9
- package/components/Label/label.scss +9 -9
- package/components/List/list.css +25 -25
- package/components/List/list.scss +26 -26
- package/components/LogViewer/log-viewer.css +14 -14
- package/components/LogViewer/log-viewer.scss +14 -14
- package/components/Login/login.css +104 -122
- package/components/Login/login.scss +92 -91
- package/components/Masthead/masthead.css +273 -498
- package/components/Masthead/masthead.scss +137 -282
- package/components/Menu/menu.css +82 -65
- package/components/Menu/menu.scss +85 -69
- package/components/MenuToggle/menu-toggle.css +37 -31
- package/components/MenuToggle/menu-toggle.scss +37 -33
- package/components/ModalBox/modal-box.css +76 -69
- package/components/ModalBox/modal-box.scss +74 -70
- package/components/MultipleFileUpload/multiple-file-upload.css +11 -8
- package/components/MultipleFileUpload/multiple-file-upload.scss +11 -8
- package/components/Nav/nav.css +249 -898
- package/components/Nav/nav.scss +316 -1071
- package/components/Nav/themes/dark/nav.scss +2 -2
- package/components/NotificationBadge/notification-badge.css +66 -85
- package/components/NotificationBadge/notification-badge.scss +72 -103
- package/components/NotificationDrawer/notification-drawer.css +130 -128
- package/components/NotificationDrawer/notification-drawer.scss +130 -129
- package/components/NumberInput/number-input.css +2 -2
- package/components/NumberInput/number-input.scss +2 -2
- package/components/OptionsMenu/options-menu.css +43 -31
- package/components/OptionsMenu/options-menu.scss +43 -31
- package/components/OverflowMenu/overflow-menu.css +2 -2
- package/components/OverflowMenu/overflow-menu.scss +2 -2
- package/components/Page/page.css +232 -271
- package/components/Page/page.scss +180 -231
- package/components/Pagination/pagination.css +71 -121
- package/components/Pagination/pagination.scss +56 -127
- package/components/Panel/panel.css +40 -30
- package/components/Panel/panel.scss +42 -33
- package/components/Popover/popover.css +108 -87
- package/components/Popover/popover.scss +120 -109
- package/components/Progress/progress.css +40 -52
- package/components/Progress/progress.scss +48 -62
- package/components/ProgressStepper/progress-stepper.css +26 -20
- package/components/ProgressStepper/progress-stepper.scss +25 -19
- package/components/Radio/radio.css +30 -23
- package/components/Radio/radio.scss +31 -25
- package/components/Select/select.css +56 -47
- package/components/Select/select.scss +56 -47
- package/components/Sidebar/sidebar.css +11 -5
- package/components/Sidebar/sidebar.scss +11 -5
- package/components/SimpleList/simple-list.css +45 -56
- package/components/SimpleList/simple-list.scss +51 -55
- package/components/Skeleton/skeleton.css +24 -25
- package/components/Skeleton/skeleton.scss +21 -26
- package/components/SkipToContent/skip-to-content.css +9 -6
- package/components/SkipToContent/skip-to-content.scss +8 -6
- package/components/Slider/slider.css +80 -55
- package/components/Slider/slider.scss +96 -65
- package/components/Spinner/spinner.css +17 -34
- package/components/Spinner/spinner.scss +19 -47
- package/components/Switch/switch.css +49 -41
- package/components/Switch/switch.scss +51 -42
- package/components/TabContent/tab-content.css +21 -12
- package/components/TabContent/tab-content.scss +22 -15
- package/components/Table/table-grid.css +264 -203
- package/components/Table/table-grid.scss +61 -47
- package/components/Table/table-scrollable.css +4 -4
- package/components/Table/table-scrollable.scss +6 -4
- package/components/Table/table-tree-view.css +112 -105
- package/components/Table/table-tree-view.scss +38 -33
- package/components/Table/table.css +105 -89
- package/components/Table/table.scss +105 -89
- package/components/Tabs/tabs.css +76 -48
- package/components/Tabs/tabs.scss +74 -48
- package/components/TextInputGroup/text-input-group.css +15 -15
- package/components/TextInputGroup/text-input-group.scss +15 -15
- package/components/Tile/tile.css +10 -10
- package/components/Tile/tile.scss +10 -10
- package/components/Title/title.css +70 -19
- package/components/Title/title.scss +90 -20
- package/components/ToggleGroup/toggle-group.css +14 -11
- package/components/ToggleGroup/toggle-group.scss +14 -11
- package/components/Toolbar/toolbar.css +57 -43
- package/components/Toolbar/toolbar.scss +45 -25
- package/components/Tooltip/tooltip.css +74 -44
- package/components/Tooltip/tooltip.scss +93 -77
- package/components/TreeView/tree-view.css +48 -27
- package/components/TreeView/tree-view.scss +50 -28
- package/components/Truncate/truncate.css +13 -0
- package/components/Truncate/truncate.scss +19 -3
- package/components/Wizard/wizard.css +57 -36
- package/components/Wizard/wizard.scss +57 -36
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +2 -2
- package/docs/components/Accordion/examples/Accordion.md +614 -416
- package/docs/components/Alert/examples/Alert.md +3 -3
- package/docs/components/Avatar/examples/Avatar.md +5 -19
- package/docs/components/BackgroundImage/examples/BackgroundImage.md +1 -1
- package/docs/components/Badge/examples/Badge.md +21 -0
- package/docs/components/Banner/examples/Banner.md +48 -25
- package/docs/components/Brand/examples/Brand.css +12 -0
- package/docs/components/Brand/examples/Brand.md +51 -32
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +1 -1
- package/docs/components/Button/examples/Button.css +6 -2
- package/docs/components/Button/examples/Button.md +1425 -87
- package/docs/components/Card/examples/Card.md +143 -37
- package/docs/components/Check/examples/Check.md +71 -58
- package/docs/components/Chip/examples/Chip.md +1 -1
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +106 -0
- package/docs/components/CodeBlock/examples/CodeBlock.md +4 -4
- package/docs/components/CodeEditor/examples/CodeEditor.md +3 -3
- package/docs/components/Content/examples/Content.md +5 -5
- package/docs/components/Divider/examples/Divider.css +3 -1
- package/docs/components/Divider/examples/Divider.md +4 -5
- package/docs/components/DragDrop/examples/DragDrop.css +2 -2
- package/docs/components/Dropdown/deprecated/Dropdown.css +1 -1
- package/docs/components/DualListSelector/examples/DualListSelector.md +64 -16
- package/docs/components/EmptyState/examples/EmptyState.md +45 -1
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +49 -28
- package/docs/components/Form/examples/Form.md +134 -89
- package/docs/components/InlineEdit/examples/InlineEdit.md +3 -1
- package/docs/components/Label/examples/Label.md +12 -12
- package/docs/components/LogViewer/examples/LogViewer.css +2 -2
- package/docs/components/LogViewer/examples/LogViewer.md +250 -160
- package/docs/components/Login/examples/Login.md +10 -5
- package/docs/components/Masthead/examples/masthead.md +443 -65
- package/docs/components/Menu/examples/Menu.css +8 -0
- package/docs/components/Menu/examples/Menu.md +594 -543
- package/docs/components/MenuToggle/examples/MenuToggle.md +109 -96
- package/docs/components/ModalBox/examples/ModalBox.css +3 -8
- package/docs/components/Nav/examples/Navigation.css +3 -47
- package/docs/components/Nav/examples/Navigation.md +305 -353
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +5 -7
- package/docs/components/OptionsMenu/deprecated/options-menu.md +12 -3
- package/docs/components/Page/examples/Page.css +0 -8
- package/docs/components/Page/examples/Page.md +22 -21
- package/docs/components/Pagination/examples/Pagination.md +663 -637
- package/docs/components/Panel/examples/Panel.md +12 -0
- package/docs/components/Popover/examples/Popover.css +4 -9
- package/docs/components/Popover/examples/Popover.md +1 -1
- package/docs/components/Radio/examples/Radio.md +62 -54
- package/docs/components/Select/deprecated/Select.md +184 -177
- package/docs/components/SimpleList/examples/SimpleList.md +3 -3
- package/docs/components/TabContent/examples/TabContent.md +10 -10
- package/docs/components/Table/examples/Table.css +2 -2
- package/docs/components/Table/examples/Table.md +10 -10
- package/docs/components/TextInputGroup/examples/TextInputGroup.css +1 -1
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +9 -9
- package/docs/components/Tile/examples/Tile.css +1 -1
- package/docs/components/Title/examples/Title.md +18 -0
- package/docs/components/Toolbar/examples/Toolbar.md +663 -2894
- package/docs/components/Tooltip/examples/Tooltip.css +4 -0
- package/docs/components/Tooltip/examples/Tooltip.md +3 -1
- package/docs/components/Truncate/examples/Truncate.css +2 -2
- package/docs/components/Truncate/examples/Truncate.md +2 -2
- package/docs/demos/AboutModal/examples/AboutModal.md +103 -30
- package/docs/demos/Alert/examples/Alert.md +327 -84
- package/docs/demos/BackToTop/examples/BackToTop.md +101 -28
- package/docs/demos/Banner/examples/Banner.md +209 -58
- package/docs/demos/Card/examples/Card.css +3 -3
- package/docs/demos/Card/examples/Card.md +28 -12
- package/docs/demos/CardView/examples/CardView.md +263 -205
- package/docs/demos/ContextSelector/examples/ContextSelector.md +373 -90
- package/docs/demos/Dashboard/examples/Dashboard.md +104 -31
- package/docs/demos/DataList/examples/DataList.md +995 -928
- package/docs/demos/DescriptionList/examples/DescriptionList.md +303 -84
- package/docs/demos/Drawer/examples/Drawer.md +505 -140
- package/docs/demos/Form/examples/BasicForms.md +131 -80
- package/docs/demos/JumpLinks/examples/JumpLinks.md +606 -168
- package/docs/demos/Masthead/examples/Masthead.md +767 -323
- package/docs/demos/Modal/examples/Modal.md +639 -192
- package/docs/demos/Nav/examples/Nav.md +685 -896
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +510 -140
- package/docs/demos/Page/examples/Page.md +933 -264
- package/docs/demos/Page/examples/Penta.md +569 -501
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +13 -9
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +44 -32
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +1296 -917
- package/docs/demos/Skeleton/examples/Skeleton.md +108 -63
- package/docs/demos/Table/examples/Table.md +3832 -3390
- package/docs/demos/Tabs/examples/Tabs.md +636 -191
- package/docs/demos/Toolbar/examples/Toolbar.css +15 -0
- package/docs/demos/Toolbar/examples/Toolbar.md +1331 -1493
- package/docs/demos/Wizard/examples/Wizard.md +909 -252
- package/docs/layouts/Flex/examples/Flex.md +16 -16
- package/docs/utilities/BoxShadow/examples/box-shadow.css +5 -5
- package/icons/pficons.mjs +1 -0
- package/layouts/Flex/flex.css +115 -43
- package/layouts/Flex/flex.scss +20 -8
- package/package.json +36 -32
- package/patternfly-addons.css +732 -972
- package/patternfly-base-no-globals-theme-dark-unversioned.css +923 -799
- package/patternfly-base-no-globals.css +923 -799
- package/patternfly-base-theme-dark-unversioned.css +928 -803
- package/patternfly-base.css +928 -803
- package/patternfly-no-globals.css +6092 -6615
- package/patternfly-theme-dark-unversioned.css +6097 -6619
- package/patternfly.css +6097 -6619
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/functions.scss +6 -0
- package/sass-utilities/mixins.scss +62 -2
- package/sass-utilities/scss-variables.scss +8 -8
- package/sass-utilities/themes/dark/mixins.scss +3 -1
- package/utilities/Accessibility/accessibility.css +12 -12
- package/utilities/Spacing/spacing.css +720 -960
- package/utilities/Spacing/spacing.scss +4 -8
- package/base/themes/dark/_variables.scss +0 -102
- package/components/AboutModalBox/themes/dark/about-modal-box.scss +0 -7
- package/components/Accordion/themes/dark/accordion.scss +0 -9
- package/components/Alert/themes/dark/alert.scss +0 -17
- package/components/Badge/themes/dark/badge.scss +0 -9
- package/components/Banner/themes/dark/banner.scss +0 -14
- package/components/Button/themes/dark/button.scss +0 -51
- package/components/DataList/themes/dark/data-list.scss +0 -10
- package/components/Form/themes/dark/form.scss +0 -7
- package/components/FormControl/themes/dark/form-control.scss +0 -24
- package/components/HelperText/themes/dark/helper-text.scss +0 -7
- package/components/Hint/themes/dark/hint.scss +0 -8
- package/components/Login/themes/dark/login.scss +0 -12
- package/components/Masthead/themes/dark/masthead.scss +0 -14
- package/components/ModalBox/themes/dark/modal-box.scss +0 -7
- package/components/NotificationBadge/themes/dark/notification-badge.scss +0 -10
- package/components/NotificationDrawer/themes/dark/notification-drawer.scss +0 -14
- package/components/Page/themes/dark/page.scss +0 -69
- package/components/Pagination/themes/dark/pagination.scss +0 -7
- package/components/Panel/themes/dark/panel.scss +0 -7
- package/components/Popover/themes/dark/popover.scss +0 -11
- package/components/Progress/themes/dark/progress.scss +0 -9
- package/components/SimpleList/themes/dark/simple-list.scss +0 -14
- package/components/Skeleton/themes/dark/skeleton.scss +0 -10
- package/components/Switch/themes/dark/switch.scss +0 -11
- package/components/Tooltip/themes/dark/tooltip.scss +0 -8
- package/docs/components/Avatar/examples/Avatar.css +0 -3
- package/docs/components/NotificationBadge/examples/NotificationBadge.css +0 -3
|
@@ -11,14 +11,17 @@ cssPrefix: pf-v5-c-form
|
|
|
11
11
|
<form class="pf-v5-c-form" novalidate>
|
|
12
12
|
<div class="pf-v5-c-form__group">
|
|
13
13
|
<div class="pf-v5-c-form__group-label"><label class="pf-v5-c-form__label" for="form-vertical-name">
|
|
14
|
-
<span class="pf-v5-c-form__label-text">Name</span> <span class="pf-v5-c-form__label-required" aria-hidden="true">*</span></label> <span
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
<span class="pf-v5-c-form__label-text">Name</span> <span class="pf-v5-c-form__label-required" aria-hidden="true">*</span></label> <span class="pf-v5-c-form__group-label-help">
|
|
15
|
+
<span
|
|
16
|
+
class="pf-v5-c-button pf-m-plain pf-m-no-padding"
|
|
17
|
+
type="button"
|
|
18
|
+
role="button"
|
|
19
|
+
tabindex="0"
|
|
20
|
+
aria-label="More information for name field"
|
|
21
|
+
aria-describedby="form-vertical-name"
|
|
22
|
+
>
|
|
23
|
+
<i class="fas fa-question-circle" aria-hidden="true"></i>
|
|
24
|
+
</span></span>
|
|
22
25
|
</div>
|
|
23
26
|
<div class="pf-v5-c-form__group-control">
|
|
24
27
|
<span class="pf-v5-c-form-control pf-m-required">
|
|
@@ -56,14 +59,17 @@ cssPrefix: pf-v5-c-form
|
|
|
56
59
|
</div>
|
|
57
60
|
<div class="pf-v5-c-form__group">
|
|
58
61
|
<div class="pf-v5-c-form__group-label"><label class="pf-v5-c-form__label" for="form-horizontal-info">
|
|
59
|
-
<span class="pf-v5-c-form__label-text">Information</span></label> <span
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
<span class="pf-v5-c-form__label-text">Information</span></label> <span class="pf-v5-c-form__group-label-help">
|
|
63
|
+
<span
|
|
64
|
+
class="pf-v5-c-button pf-m-plain pf-m-no-padding"
|
|
65
|
+
type="button"
|
|
66
|
+
role="button"
|
|
67
|
+
tabindex="0"
|
|
68
|
+
aria-label="More information for information field"
|
|
69
|
+
aria-describedby="form-horizontal-info"
|
|
70
|
+
>
|
|
71
|
+
<i class="fas fa-question-circle" aria-hidden="true"></i>
|
|
72
|
+
</span></span>
|
|
67
73
|
</div>
|
|
68
74
|
<div class="pf-v5-c-form__group-control">
|
|
69
75
|
<span class="pf-v5-c-form-control">
|
|
@@ -85,14 +91,17 @@ cssPrefix: pf-v5-c-form
|
|
|
85
91
|
class="pf-v5-c-form__group-label pf-m-no-padding-top"
|
|
86
92
|
id="form-horizontalform-horizontal-checkbox-legend"
|
|
87
93
|
><span class="pf-v5-c-form__label">
|
|
88
|
-
<span class="pf-v5-c-form__label-text">Label (no top padding)</span></span> <span
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
<span class="pf-v5-c-form__label-text">Label (no top padding)</span></span> <span class="pf-v5-c-form__group-label-help">
|
|
95
|
+
<span
|
|
96
|
+
class="pf-v5-c-button pf-m-plain pf-m-no-padding"
|
|
97
|
+
type="button"
|
|
98
|
+
role="button"
|
|
99
|
+
tabindex="0"
|
|
100
|
+
aria-label="More information for label field"
|
|
101
|
+
aria-describedby="form-horizontal-checkbox-legend"
|
|
102
|
+
>
|
|
103
|
+
<i class="fas fa-question-circle" aria-hidden="true"></i>
|
|
104
|
+
</span></span>
|
|
96
105
|
</div>
|
|
97
106
|
<div class="pf-v5-c-form__group-control pf-m-stack">
|
|
98
107
|
<div class="pf-v5-c-check">
|
|
@@ -136,14 +145,17 @@ cssPrefix: pf-v5-c-form
|
|
|
136
145
|
class="pf-v5-c-form__label"
|
|
137
146
|
for="form-horizontal-custom-breakpoint-name"
|
|
138
147
|
>
|
|
139
|
-
<span class="pf-v5-c-form__label-text">Name</span> <span class="pf-v5-c-form__label-required" aria-hidden="true">*</span></label> <span
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
148
|
+
<span class="pf-v5-c-form__label-text">Name</span> <span class="pf-v5-c-form__label-required" aria-hidden="true">*</span></label> <span class="pf-v5-c-form__group-label-help">
|
|
149
|
+
<span
|
|
150
|
+
class="pf-v5-c-button pf-m-plain pf-m-no-padding"
|
|
151
|
+
type="button"
|
|
152
|
+
role="button"
|
|
153
|
+
tabindex="0"
|
|
154
|
+
aria-label="More information for name field"
|
|
155
|
+
aria-describedby="form-horizontal-custom-breakpoint-name"
|
|
156
|
+
>
|
|
157
|
+
<i class="fas fa-question-circle" aria-hidden="true"></i>
|
|
158
|
+
</span></span>
|
|
147
159
|
</div>
|
|
148
160
|
<div class="pf-v5-c-form__group-control">
|
|
149
161
|
<span class="pf-v5-c-form-control pf-m-required">
|
|
@@ -277,6 +289,9 @@ cssPrefix: pf-v5-c-form
|
|
|
277
289
|
class="pf-v5-c-helper-text__item"
|
|
278
290
|
id="form-help-text-name-helper"
|
|
279
291
|
>
|
|
292
|
+
<span class="pf-v5-c-helper-text__item-icon">
|
|
293
|
+
<i class="fas fa-fw fa-minus" aria-hidden="true"></i>
|
|
294
|
+
</span>
|
|
280
295
|
<span class="pf-v5-c-helper-text__item-text">This is helper text.</span>
|
|
281
296
|
</div>
|
|
282
297
|
</div>
|
|
@@ -308,6 +323,9 @@ cssPrefix: pf-v5-c-form
|
|
|
308
323
|
class="pf-v5-c-helper-text__item pf-m-warning"
|
|
309
324
|
id="form-help-text-email-helper"
|
|
310
325
|
>
|
|
326
|
+
<span class="pf-v5-c-helper-text__item-icon">
|
|
327
|
+
<i class="fas fa-fw fa-exclamation-triangle" aria-hidden="true"></i>
|
|
328
|
+
</span>
|
|
311
329
|
<span
|
|
312
330
|
class="pf-v5-c-helper-text__item-text"
|
|
313
331
|
>This is helper text for a warning input.</span>
|
|
@@ -342,6 +360,9 @@ cssPrefix: pf-v5-c-form
|
|
|
342
360
|
class="pf-v5-c-helper-text__item pf-m-error"
|
|
343
361
|
id="-address-helper"
|
|
344
362
|
>
|
|
363
|
+
<span class="pf-v5-c-helper-text__item-icon">
|
|
364
|
+
<i class="fas fa-fw fa-exclamation-circle" aria-hidden="true"></i>
|
|
365
|
+
</span>
|
|
345
366
|
<span
|
|
346
367
|
class="pf-v5-c-helper-text__item-text"
|
|
347
368
|
>This is helper text for an invalid input.</span>
|
|
@@ -375,6 +396,9 @@ cssPrefix: pf-v5-c-form
|
|
|
375
396
|
class="pf-v5-c-helper-text__item pf-m-success"
|
|
376
397
|
id="form-help-text-comment-helper"
|
|
377
398
|
>
|
|
399
|
+
<span class="pf-v5-c-helper-text__item-icon">
|
|
400
|
+
<i class="fas fa-fw fa-check-circle" aria-hidden="true"></i>
|
|
401
|
+
</span>
|
|
378
402
|
<span
|
|
379
403
|
class="pf-v5-c-helper-text__item-text"
|
|
380
404
|
>This is helper text for success input.</span>
|
|
@@ -429,14 +453,17 @@ cssPrefix: pf-v5-c-form
|
|
|
429
453
|
<div class="pf-v5-c-form__group">
|
|
430
454
|
<div class="pf-v5-c-form__group-label pf-m-info">
|
|
431
455
|
<div class="pf-v5-c-form__group-label-main"><label class="pf-v5-c-form__label" for="form-additional-info-name">
|
|
432
|
-
<span class="pf-v5-c-form__label-text">Name</span> <span class="pf-v5-c-form__label-required" aria-hidden="true">*</span></label> <span
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
456
|
+
<span class="pf-v5-c-form__label-text">Name</span> <span class="pf-v5-c-form__label-required" aria-hidden="true">*</span></label> <span class="pf-v5-c-form__group-label-help">
|
|
457
|
+
<span
|
|
458
|
+
class="pf-v5-c-button pf-m-plain pf-m-no-padding"
|
|
459
|
+
type="button"
|
|
460
|
+
role="button"
|
|
461
|
+
tabindex="0"
|
|
462
|
+
aria-label="More information for name field"
|
|
463
|
+
aria-describedby="form-additional-infoform-additional-info-name"
|
|
464
|
+
>
|
|
465
|
+
<i class="fas fa-question-circle" aria-hidden="true"></i>
|
|
466
|
+
</span></span>
|
|
440
467
|
</div>
|
|
441
468
|
<div class="pf-v5-c-form__group-label-info">info</div>
|
|
442
469
|
</div>
|
|
@@ -500,14 +527,17 @@ cssPrefix: pf-v5-c-form
|
|
|
500
527
|
class="pf-v5-c-form__label"
|
|
501
528
|
for="form-field-group-field-group-label1"
|
|
502
529
|
>
|
|
503
|
-
<span class="pf-v5-c-form__label-text">Label 1</span> <span class="pf-v5-c-form__label-required" aria-hidden="true">*</span></label> <span
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
530
|
+
<span class="pf-v5-c-form__label-text">Label 1</span> <span class="pf-v5-c-form__label-required" aria-hidden="true">*</span></label> <span class="pf-v5-c-form__group-label-help">
|
|
531
|
+
<span
|
|
532
|
+
class="pf-v5-c-button pf-m-plain pf-m-no-padding"
|
|
533
|
+
type="button"
|
|
534
|
+
role="button"
|
|
535
|
+
tabindex="0"
|
|
536
|
+
aria-label="More information for label 1 field"
|
|
537
|
+
aria-describedby="form-field-group-field-group-label1"
|
|
538
|
+
>
|
|
539
|
+
<i class="fas fa-question-circle" aria-hidden="true"></i>
|
|
540
|
+
</span></span>
|
|
511
541
|
</div>
|
|
512
542
|
<div class="pf-v5-c-form__group-control">
|
|
513
543
|
<span class="pf-v5-c-form-control pf-m-required">
|
|
@@ -525,14 +555,17 @@ cssPrefix: pf-v5-c-form
|
|
|
525
555
|
class="pf-v5-c-form__label"
|
|
526
556
|
for="form-field-group-field-group-label2"
|
|
527
557
|
>
|
|
528
|
-
<span class="pf-v5-c-form__label-text">Label 2</span> <span class="pf-v5-c-form__label-required" aria-hidden="true">*</span></label> <span
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
558
|
+
<span class="pf-v5-c-form__label-text">Label 2</span> <span class="pf-v5-c-form__label-required" aria-hidden="true">*</span></label> <span class="pf-v5-c-form__group-label-help">
|
|
559
|
+
<span
|
|
560
|
+
class="pf-v5-c-button pf-m-plain pf-m-no-padding"
|
|
561
|
+
type="button"
|
|
562
|
+
role="button"
|
|
563
|
+
tabindex="0"
|
|
564
|
+
aria-label="More information for label 2 field"
|
|
565
|
+
aria-describedby="form-field-group-field-group-label2"
|
|
566
|
+
>
|
|
567
|
+
<i class="fas fa-question-circle" aria-hidden="true"></i>
|
|
568
|
+
</span></span>
|
|
536
569
|
</div>
|
|
537
570
|
<div class="pf-v5-c-form__group-control">
|
|
538
571
|
<span class="pf-v5-c-form-control pf-m-required">
|
|
@@ -633,14 +666,17 @@ cssPrefix: pf-v5-c-form
|
|
|
633
666
|
class="pf-v5-c-form__label"
|
|
634
667
|
for="form-expandable-field-groupsform-expandable-field-groups-field-group-2-label1"
|
|
635
668
|
>
|
|
636
|
-
<span class="pf-v5-c-form__label-text">Label 1</span> <span class="pf-v5-c-form__label-required" aria-hidden="true">*</span></label> <span
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
669
|
+
<span class="pf-v5-c-form__label-text">Label 1</span> <span class="pf-v5-c-form__label-required" aria-hidden="true">*</span></label> <span class="pf-v5-c-form__group-label-help">
|
|
670
|
+
<span
|
|
671
|
+
class="pf-v5-c-button pf-m-plain pf-m-no-padding"
|
|
672
|
+
type="button"
|
|
673
|
+
role="button"
|
|
674
|
+
tabindex="0"
|
|
675
|
+
aria-label="More information for label 1 field"
|
|
676
|
+
aria-describedby="form-expandable-field-groupsform-expandable-field-groups-field-group-2-label1"
|
|
677
|
+
>
|
|
678
|
+
<i class="fas fa-question-circle" aria-hidden="true"></i>
|
|
679
|
+
</span></span>
|
|
644
680
|
</div>
|
|
645
681
|
<div class="pf-v5-c-form__group-control">
|
|
646
682
|
<span class="pf-v5-c-form-control pf-m-required">
|
|
@@ -658,14 +694,17 @@ cssPrefix: pf-v5-c-form
|
|
|
658
694
|
class="pf-v5-c-form__label"
|
|
659
695
|
for="form-expandable-field-groupsform-expandable-field-groups-field-group-2-label2"
|
|
660
696
|
>
|
|
661
|
-
<span class="pf-v5-c-form__label-text">Label 2</span> <span class="pf-v5-c-form__label-required" aria-hidden="true">*</span></label> <span
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
697
|
+
<span class="pf-v5-c-form__label-text">Label 2</span> <span class="pf-v5-c-form__label-required" aria-hidden="true">*</span></label> <span class="pf-v5-c-form__group-label-help">
|
|
698
|
+
<span
|
|
699
|
+
class="pf-v5-c-button pf-m-plain pf-m-no-padding"
|
|
700
|
+
type="button"
|
|
701
|
+
role="button"
|
|
702
|
+
tabindex="0"
|
|
703
|
+
aria-label="More information for label 2 field"
|
|
704
|
+
aria-describedby="form-expandable-field-groupsform-expandable-field-groups-field-group-2-label2"
|
|
705
|
+
>
|
|
706
|
+
<i class="fas fa-question-circle" aria-hidden="true"></i>
|
|
707
|
+
</span></span>
|
|
669
708
|
</div>
|
|
670
709
|
<div class="pf-v5-c-form__group-control">
|
|
671
710
|
<span class="pf-v5-c-form-control pf-m-required">
|
|
@@ -702,14 +741,17 @@ cssPrefix: pf-v5-c-form
|
|
|
702
741
|
<span class="pf-v5-c-form__label-text">Label 1</span> <span
|
|
703
742
|
class="pf-v5-c-form__label-required"
|
|
704
743
|
aria-hidden="true"
|
|
705
|
-
>*</span></label> <span
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
744
|
+
>*</span></label> <span class="pf-v5-c-form__group-label-help">
|
|
745
|
+
<span
|
|
746
|
+
class="pf-v5-c-button pf-m-plain pf-m-no-padding"
|
|
747
|
+
type="button"
|
|
748
|
+
role="button"
|
|
749
|
+
tabindex="0"
|
|
750
|
+
aria-label="More information for label 1 field"
|
|
751
|
+
aria-describedby="form-expandable-field-groupsform-expandable-field-groups-field-group-3-label1"
|
|
752
|
+
>
|
|
753
|
+
<i class="fas fa-question-circle" aria-hidden="true"></i>
|
|
754
|
+
</span></span>
|
|
713
755
|
</div>
|
|
714
756
|
<div class="pf-v5-c-form__group-control">
|
|
715
757
|
<span class="pf-v5-c-form-control pf-m-required">
|
|
@@ -730,14 +772,17 @@ cssPrefix: pf-v5-c-form
|
|
|
730
772
|
<span class="pf-v5-c-form__label-text">Label 2</span> <span
|
|
731
773
|
class="pf-v5-c-form__label-required"
|
|
732
774
|
aria-hidden="true"
|
|
733
|
-
>*</span></label> <span
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
775
|
+
>*</span></label> <span class="pf-v5-c-form__group-label-help">
|
|
776
|
+
<span
|
|
777
|
+
class="pf-v5-c-button pf-m-plain pf-m-no-padding"
|
|
778
|
+
type="button"
|
|
779
|
+
role="button"
|
|
780
|
+
tabindex="0"
|
|
781
|
+
aria-label="More information for label 2 field"
|
|
782
|
+
aria-describedby="form-expandable-field-groupsform-expandable-field-groups-field-group-3-label2"
|
|
783
|
+
>
|
|
784
|
+
<i class="fas fa-question-circle" aria-hidden="true"></i>
|
|
785
|
+
</span></span>
|
|
741
786
|
</div>
|
|
742
787
|
<div class="pf-v5-c-form__group-control">
|
|
743
788
|
<span class="pf-v5-c-form-control pf-m-required">
|
|
@@ -799,7 +844,7 @@ To avoid the form label's required indicator or help tooltip icon from wrapping
|
|
|
799
844
|
| `.pf-v5-c-form__label-required` | `<span>` | Initiates a form label required indicator. |
|
|
800
845
|
| `.pf-v5-c-form__group-label-main` | `<div>` | Initiates a form group label main container. |
|
|
801
846
|
| `.pf-v5-c-form__group-label-info` | `<div>` | Initiates a form group info label. |
|
|
802
|
-
| `.pf-v5-c-form__group-label-help` | `<
|
|
847
|
+
| `.pf-v5-c-form__group-label-help` | `<span>` | Initiates field level help. |
|
|
803
848
|
| `.pf-v5-c-form__group-control` | `<div>` | Initiates a form group control section. |
|
|
804
849
|
| `.pf-v5-c-form__actions` | `<div>` | Iniates a row of actions. |
|
|
805
850
|
| `.pf-v5-c-form__helper-text` | `<p>`, `<div>` | Initiates a form helper text block. |
|
|
@@ -930,4 +930,6 @@ All accessibility requirements for inputs apply to elements within inline edit.
|
|
|
930
930
|
| `.pf-m-valid` | `.pf-v5-c-inline-edit__action` | Modifies the action button state. |
|
|
931
931
|
| `.pf-m-enable-editable` | `.pf-v5-c-inline-edit__action` | Exposes an inline edit action by default. |
|
|
932
932
|
|
|
933
|
-
|
|
933
|
+
```
|
|
934
|
+
-->
|
|
935
|
+
```
|
|
@@ -1949,16 +1949,16 @@ This style of label is used to indicate overflow within a label group.
|
|
|
1949
1949
|
|
|
1950
1950
|
**Note: Editable label behavior must be handled with JavaScript.**
|
|
1951
1951
|
|
|
1952
|
-
*
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
*
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
*
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1952
|
+
* `.pf-v5-c-label__editable-text` onClick event should:
|
|
1953
|
+
* Set `.pf-m-editable-active` on `.pf-v5-c-label`
|
|
1954
|
+
* Change `.pf-v5-c-label__editable-text`from a button to an input
|
|
1955
|
+
* Return keypress, when content is editable, should:
|
|
1956
|
+
* Be captured to prevent line wrapping and save updates to label text
|
|
1957
|
+
* Remove `.pf-m-editable-active` from `.pf-v5-c-label`
|
|
1958
|
+
* Esc keypress, when content is editable, should:
|
|
1959
|
+
* Undo any update to label text
|
|
1960
|
+
* Remove `.pf-m-editable-active` from `.pf-v5-c-label`
|
|
1961
|
+
* Change `.pf-v5-c-label__editable-text` back to a button
|
|
1962
1962
|
|
|
1963
1963
|
```html isBeta
|
|
1964
1964
|
<span class="pf-v5-c-label pf-m-editable pf-m-blue">
|
|
@@ -2692,7 +2692,7 @@ The contents of a label group can be modified by removing labels or adding new o
|
|
|
2692
2692
|
|
|
2693
2693
|
In addition to the JavaScript management of [editable labels](/components/label#editable), dynamic label groups also need:
|
|
2694
2694
|
|
|
2695
|
-
*
|
|
2695
|
+
* `.pf-v5-c-label-group.pf-m-editable` onClick event should (excluding labels within) set focus on `.pf-v5-c-label-group__textarea`
|
|
2696
2696
|
|
|
2697
2697
|
### Editable labels, dynamic label group
|
|
2698
2698
|
|
|
@@ -3265,7 +3265,7 @@ In addition to the JavaScript management of [editable labels](/components/label#
|
|
|
3265
3265
|
|
|
3266
3266
|
| Attribute | Applied to | Outcome |
|
|
3267
3267
|
| -- | -- | -- |
|
|
3268
|
-
| `role="list"` | `.pf-v5-c-label-group__list` | Indicates that the label group list is a list element. This role is redundant since `.pf-v5-c-label-group__list` is a `<ul>` but is required for screen readers to announce the list
|
|
3268
|
+
| `role="list"` | `.pf-v5-c-label-group__list` | Indicates that the label group list is a list element. This role is redundant since `.pf-v5-c-label-group__list` is a `<ul>` but is required for screen readers to announce the list properly. **Required** |
|
|
3269
3269
|
| `aria-label="[button label text]"` | `.pf-v5-c-label-group__close > button` | Provides an accessible name for a label group close button when an icon is used instead of text. Required when an icon is used with no supporting text. **Required** |
|
|
3270
3270
|
| `aria-labelledby="[id value of .pf-v5-c-label-group__close > button] [id value of .pf-v5-c-label-group__label]"` | `.pf-v5-c-label-group__close > button` | Provides an accessible name for the button. **Required** |
|
|
3271
3271
|
| `aria-label="[label text]"` | `.pf-v5-c-label-group__textarea` | Provides an accessible name for the textarea. **Required** |
|