@patternfly/patternfly 5.0.0-alpha.4 → 5.0.0-alpha.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/RELEASE-NOTES.md +18 -1
- package/assets/icons/iconUnicodes.json +1 -0
- package/assets/images/pfbg-icon.svg +1 -0
- package/assets/pficon/pficon.scss +7 -2
- package/assets/pficon/pficon.woff2 +0 -0
- package/base/_base.scss +0 -18
- package/base/_chart-globals.scss +0 -4
- package/base/_common.scss +0 -22
- package/base/_fa-icons.scss +1 -2
- package/base/_fonts.scss +22 -27
- package/base/_globals.scss +92 -86
- package/base/_icons.scss +1 -28
- package/base/_svg-icons.scss +6 -0
- package/base/_variables.scss +4 -4
- package/base/patternfly-common.css +0 -10
- package/base/patternfly-fa-icons.css +1 -1
- package/base/patternfly-fonts.css +17 -17
- package/base/patternfly-globals.css +35 -41
- package/base/patternfly-icons.css +8 -22
- package/base/patternfly-pf-icons.css +6 -2
- package/base/patternfly-themes.css +0 -42
- package/base/patternfly-variables.css +3 -3
- package/base/themes/dark/_globals.scss +1 -1
- package/base/themes/dark/_variables.scss +1 -1
- package/components/AboutModalBox/about-modal-box.css +20 -50
- package/components/AboutModalBox/about-modal-box.scss +22 -14
- package/components/Accordion/accordion.css +2 -0
- package/components/Accordion/accordion.scss +2 -0
- package/components/Alert/alert.css +17 -8
- package/components/Alert/alert.scss +21 -7
- package/components/Alert/themes/dark/alert.scss +1 -1
- package/components/AppLauncher/app-launcher.css +2 -0
- package/components/AppLauncher/app-launcher.scss +2 -0
- package/components/Avatar/avatar.scss +2 -2
- package/components/BackgroundImage/background-image.css +8 -35
- package/components/BackgroundImage/background-image.scss +17 -43
- package/components/Banner/banner.css +14 -52
- package/components/Banner/banner.scss +9 -13
- package/components/Breadcrumb/breadcrumb.css +2 -0
- package/components/Breadcrumb/breadcrumb.scss +2 -0
- package/components/CalendarMonth/calendar-month.css +2 -2
- package/components/CalendarMonth/calendar-month.scss +3 -3
- package/components/Card/card.css +115 -50
- package/components/Card/card.scss +164 -63
- package/components/Chip/chip.css +33 -24
- package/components/Chip/chip.scss +40 -31
- package/components/ChipGroup/chip-group.css +27 -17
- package/components/ChipGroup/chip-group.scss +36 -22
- package/components/Content/content.css +11 -5
- package/components/Content/content.scss +17 -9
- package/components/ContextSelector/context-selector.css +13 -6
- package/components/ContextSelector/context-selector.scss +14 -7
- package/components/DataList/data-list-grid.css +7 -7
- package/components/DataList/data-list-grid.scss +1 -1
- package/components/DataList/data-list.css +46 -40
- package/components/DataList/data-list.scss +37 -28
- package/components/DatePicker/date-picker.css +0 -8
- package/components/DatePicker/date-picker.scss +0 -9
- package/components/DescriptionList/description-list.css +7 -7
- package/components/DescriptionList/description-list.scss +7 -7
- package/components/Divider/divider.css +2 -2
- package/components/Divider/divider.scss +3 -3
- package/components/Drawer/drawer.css +15 -16
- package/components/Drawer/drawer.scss +2 -3
- package/components/Dropdown/dropdown.css +26 -25
- package/components/Dropdown/dropdown.scss +17 -18
- package/components/DualListSelector/dual-list-selector.css +1 -1
- package/components/DualListSelector/dual-list-selector.scss +1 -1
- package/components/EmptyState/empty-state.css +46 -52
- package/components/EmptyState/empty-state.scss +58 -57
- package/components/ExpandableSection/expandable-section.css +2 -0
- package/components/ExpandableSection/expandable-section.scss +2 -0
- package/components/Form/form.css +14 -12
- package/components/Form/form.scss +9 -7
- package/components/FormControl/form-control.css +2 -5
- package/components/FormControl/themes/dark/form-control.scss +2 -6
- package/components/HelperText/helper-text.css +4 -0
- package/components/HelperText/helper-text.scss +5 -0
- package/components/Hint/hint.css +2 -2
- package/components/Hint/hint.scss +2 -2
- package/components/Icon/icon.css +3 -3
- package/components/Icon/icon.scss +3 -3
- package/components/InputGroup/input-group.css +61 -85
- package/components/InputGroup/input-group.scss +55 -61
- package/components/InputGroup/themes/dark/input-group.scss +11 -25
- package/components/Label/label.css +49 -36
- package/components/Label/label.scss +53 -38
- package/components/Label/themes/dark/label.scss +2 -2
- package/components/LabelGroup/label-group.css +26 -22
- package/components/LabelGroup/label-group.scss +31 -26
- package/components/LogViewer/log-viewer.css +0 -38
- package/components/Login/login.css +20 -60
- package/components/Login/login.scss +16 -18
- package/components/Login/themes/dark/login.scss +4 -0
- package/components/Masthead/masthead.css +4 -42
- package/components/Masthead/masthead.scss +4 -4
- package/components/Menu/menu.css +9 -6
- package/components/Menu/menu.scss +34 -31
- package/components/MenuToggle/menu-toggle.css +3 -1
- package/components/MenuToggle/menu-toggle.scss +3 -1
- package/components/ModalBox/modal-box.css +12 -11
- package/components/ModalBox/modal-box.scss +14 -14
- package/components/MultipleFileUpload/multiple-file-upload.css +6 -6
- package/components/MultipleFileUpload/multiple-file-upload.scss +6 -6
- package/components/Nav/nav.css +1 -1
- package/components/Nav/nav.scss +2 -2
- package/components/NotificationDrawer/notification-drawer.css +8 -8
- package/components/NotificationDrawer/notification-drawer.scss +8 -8
- package/components/OptionsMenu/options-menu.css +8 -10
- package/components/OptionsMenu/options-menu.scss +9 -11
- package/components/Page/page.css +101 -122
- package/components/Page/page.scss +49 -21
- package/components/Pagination/pagination.css +2 -110
- package/components/Pagination/pagination.scss +0 -6
- package/components/Popover/popover.css +31 -37
- package/components/Popover/popover.scss +32 -37
- package/components/Popover/themes/dark/popover.scss +3 -9
- package/components/Progress/progress.css +13 -10
- package/components/Progress/progress.scss +13 -10
- package/components/ProgressStepper/progress-stepper.css +5 -5
- package/components/ProgressStepper/progress-stepper.scss +5 -5
- package/components/SearchInput/search-input.css +4 -2
- package/components/SearchInput/search-input.scss +4 -2
- package/components/Select/select.css +1 -1
- package/components/Select/select.scss +1 -1
- package/components/Sidebar/sidebar.css +69 -26
- package/components/Sidebar/sidebar.scss +84 -27
- package/components/SimpleList/simple-list.css +1 -1
- package/components/SimpleList/simple-list.scss +2 -2
- package/components/Spinner/spinner.css +4 -133
- package/components/Spinner/spinner.scss +4 -173
- package/components/Table/table-grid.css +28 -28
- package/components/Table/table-scrollable.css +31 -26
- package/components/Table/table-scrollable.scss +33 -28
- package/components/Table/table-tree-view.css +14 -4
- package/components/Table/table-tree-view.scss +15 -0
- package/components/Table/table.css +67 -65
- package/components/Table/table.scss +65 -62
- package/components/Tabs/tabs.css +0 -4
- package/components/Tabs/tabs.scss +0 -7
- package/components/TextInputGroup/text-input-group.css +6 -4
- package/components/TextInputGroup/text-input-group.scss +6 -5
- package/components/Tile/tile.css +1 -1
- package/components/Tile/tile.scss +1 -1
- package/components/Timestamp/timestamp.css +3 -3
- package/components/Timestamp/timestamp.scss +3 -3
- package/components/Toolbar/toolbar.css +78 -43
- package/components/Toolbar/toolbar.scss +50 -10
- package/components/Tooltip/themes/dark/tooltip.scss +1 -11
- package/components/Tooltip/tooltip.css +7 -12
- package/components/Tooltip/tooltip.scss +6 -3
- package/components/TreeView/tree-view.css +7 -15
- package/components/TreeView/tree-view.scss +7 -18
- package/components/Wizard/wizard.css +16 -39
- package/components/Wizard/wizard.scss +20 -2
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +20 -14
- package/docs/components/Accordion/examples/Accordion.md +12 -12
- package/docs/components/ActionList/examples/ActionList.md +6 -6
- package/docs/components/Alert/examples/Alert.md +29 -29
- package/docs/components/AlertGroup/examples/AlertGroup.md +15 -15
- package/docs/components/AppLauncher/examples/application-launcher.md +52 -46
- package/docs/components/Avatar/examples/Avatar.md +11 -11
- package/docs/components/BackToTop/examples/BackToTop.md +4 -4
- package/docs/components/Backdrop/examples/Backdrop.md +4 -4
- package/docs/components/BackgroundImage/examples/BackgroundImage.md +13 -29
- package/docs/components/Badge/examples/Badge.md +5 -5
- package/docs/components/Banner/examples/Banner.md +8 -8
- package/docs/components/Brand/examples/Brand.md +9 -9
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +20 -20
- package/docs/components/Button/examples/Button.md +51 -55
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +301 -284
- package/docs/components/Card/examples/Card.md +676 -116
- package/docs/components/Check/examples/Check.md +16 -19
- package/docs/components/Chip/examples/Chip.md +70 -52
- package/docs/components/ChipGroup/examples/ChipGroup.md +452 -673
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +22 -22
- package/docs/components/CodeBlock/examples/CodeBlock.md +9 -9
- package/docs/components/CodeEditor/examples/CodeEditor.md +54 -35
- package/docs/components/Content/examples/Content.md +37 -9
- package/docs/components/ContextSelector/examples/context-selector.css +5 -1
- package/docs/components/ContextSelector/examples/context-selector.md +87 -80
- package/docs/components/DataList/examples/DataList.md +239 -202
- package/docs/components/DatePicker/examples/DatePicker.md +139 -104
- package/docs/components/DescriptionList/examples/DescriptionList.md +24 -24
- package/docs/components/Divider/examples/Divider.md +10 -10
- package/docs/components/DragDrop/examples/DragDrop.md +5 -5
- package/docs/components/Drawer/examples/Drawer.md +43 -43
- package/docs/components/Dropdown/examples/Dropdown.css +5 -2
- package/docs/components/Dropdown/examples/Dropdown.md +125 -100
- package/docs/components/DualListSelector/examples/DualListSelector.md +201 -197
- package/docs/components/EmptyState/examples/EmptyState.md +130 -82
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +23 -23
- package/docs/components/FileUpload/examples/FileUpload.md +150 -110
- package/docs/components/Form/examples/Form.md +152 -130
- package/docs/components/FormControl/examples/FormControl.md +21 -20
- package/docs/components/HelperText/examples/HelperText.md +24 -35
- package/docs/components/Hint/examples/Hint.md +7 -7
- package/docs/components/Icon/examples/Icon.md +11 -12
- package/docs/components/InlineEdit/examples/InlineEdit.md +29 -27
- package/docs/components/InputGroup/examples/InputGroup.md +229 -179
- package/docs/components/JumpLinks/examples/JumpLinks.md +35 -35
- package/docs/components/Label/examples/Label.md +1427 -746
- package/docs/components/LabelGroup/examples/LabelGroup.md +295 -242
- package/docs/components/List/examples/List.md +18 -18
- package/docs/components/LogViewer/examples/LogViewer.md +79 -74
- package/docs/components/Login/examples/Login.md +103 -181
- package/docs/components/Masthead/examples/masthead.md +9 -9
- package/docs/components/Menu/examples/Menu.md +93 -85
- package/docs/components/MenuToggle/examples/MenuToggle.md +29 -28
- package/docs/components/ModalBox/examples/ModalBox.md +113 -92
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +27 -26
- package/docs/components/Nav/examples/Navigation.md +69 -69
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +8 -8
- package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +64 -64
- package/docs/components/NumberInput/examples/NumberInput.md +311 -239
- package/docs/components/OptionsMenu/examples/options-menu.md +28 -28
- package/docs/components/OverflowMenu/examples/overflow-menu.md +25 -25
- package/docs/components/Page/examples/Page.css +7 -1
- package/docs/components/Page/examples/Page.md +81 -54
- package/docs/components/Pagination/examples/Pagination.md +27 -27
- package/docs/components/Panel/examples/Panel.md +10 -10
- package/docs/components/Popover/examples/Popover.md +206 -149
- package/docs/components/Progress/examples/Progress.md +32 -61
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +45 -39
- package/docs/components/Radio/examples/Radio.md +12 -11
- package/docs/components/SearchInput/examples/SearchInput.md +185 -148
- package/docs/components/Select/examples/Select.md +372 -318
- package/docs/components/Sidebar/examples/Sidebar.md +70 -14
- package/docs/components/SimpleList/examples/SimpleList.md +15 -15
- package/docs/components/Skeleton/examples/Skeleton.md +8 -8
- package/docs/components/SkipToContent/examples/SkipToContent.md +5 -5
- package/docs/components/Slider/examples/Slider.md +84 -62
- package/docs/components/Spinner/examples/Spinner.md +18 -67
- package/docs/components/Switch/examples/Switch.md +19 -19
- package/docs/components/TabContent/examples/TabContent.md +13 -13
- package/docs/components/Table/examples/Table.css +4 -0
- package/docs/components/Table/examples/Table.md +5212 -5750
- package/docs/components/Tabs/examples/Tabs.md +155 -155
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +523 -406
- package/docs/components/Tile/examples/Tile.md +16 -17
- package/docs/components/Timestamp/examples/Timestamp.md +5 -5
- package/docs/components/Title/examples/Title.md +17 -17
- package/docs/components/ToggleGroup/examples/toggle-group.md +13 -13
- package/docs/components/Toolbar/examples/Toolbar.md +848 -726
- package/docs/components/Tooltip/examples/Tooltip.md +10 -10
- package/docs/components/TreeView/examples/TreeView.md +34 -34
- package/docs/components/Truncate/examples/Truncate.md +4 -5
- package/docs/components/Wizard/examples/Wizard.md +119 -127
- package/docs/demos/AboutModal/examples/AboutModal.md +4 -5
- package/docs/demos/Alert/examples/Alert.md +118 -71
- package/docs/demos/BackToTop/examples/BackToTop.md +4 -4
- package/docs/demos/Banner/examples/Banner.md +8 -9
- package/docs/demos/Button/examples/Button.md +10 -5
- package/docs/demos/Card/examples/Card.md +246 -168
- package/docs/demos/CardView/examples/CardView.md +57 -30
- package/docs/demos/ContextSelector/examples/ContextSelector.md +18 -18
- package/docs/demos/Dashboard/examples/Dashboard.md +61 -38
- package/docs/demos/DataList/examples/DataList.md +312 -255
- package/docs/demos/DescriptionList/examples/DescriptionList.md +33 -22
- package/docs/demos/Drawer/examples/Drawer.md +24 -22
- package/docs/demos/Form/examples/BasicForms.md +220 -213
- package/docs/demos/HelperText/examples/HelperText.md +16 -14
- package/docs/demos/JumpLinks/examples/JumpLinks.md +28 -28
- package/docs/demos/Masthead/examples/Masthead.md +302 -284
- package/docs/demos/Modal/examples/Modal.md +54 -66
- package/docs/demos/Nav/examples/Nav.md +47 -47
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +70 -58
- package/docs/demos/Page/examples/Page.md +982 -51
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +22 -18
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +121 -106
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +345 -311
- package/docs/demos/Skeleton/examples/Skeleton.md +4 -4
- package/docs/demos/Table/examples/Table.md +3373 -1333
- package/docs/demos/Tabs/examples/Tabs.md +141 -90
- package/docs/demos/Toolbar/examples/Toolbar.md +1994 -329
- package/docs/demos/Wizard/examples/Wizard.md +289 -266
- package/docs/layouts/Bullseye/examples/Bullseye.md +4 -4
- package/docs/layouts/Flex/examples/Flex.md +98 -98
- package/docs/layouts/Gallery/examples/Gallery.md +7 -7
- package/docs/layouts/Grid/examples/Grid.md +9 -9
- package/docs/layouts/Level/examples/Level.md +5 -5
- package/docs/layouts/Split/examples/Split.md +7 -7
- package/docs/layouts/Stack/examples/Stack.md +6 -6
- package/docs/utilities/Accessibility/examples/Accessibility.md +5 -5
- package/docs/utilities/Alignment/examples/Alignment.md +7 -7
- package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +13 -13
- package/docs/utilities/BoxShadow/examples/box-shadow.md +23 -23
- package/docs/utilities/Display/examples/Display.md +12 -12
- package/docs/utilities/Flex/examples/Flex.md +35 -35
- package/docs/utilities/Float/examples/Float.md +5 -5
- package/docs/utilities/Sizing/examples/Sizing.md +51 -51
- package/docs/utilities/Spacing/examples/Spacing.md +35 -35
- package/docs/utilities/Text/examples/Text.md +31 -31
- package/icons/{pf-icons.json → pf-icons.mjs} +2 -1
- package/layouts/Gallery/gallery.css +1 -1
- package/layouts/Gallery/gallery.scss +1 -1
- package/layouts/Grid/grid.css +7 -7
- package/layouts/Grid/grid.scss +2 -2
- package/package.json +60 -66
- package/patternfly-addons.css +48 -48
- package/{patternfly-base-no-reset.css → patternfly-base-no-globals.css} +28 -73
- package/{patternfly-base-no-reset.scss → patternfly-base-no-globals.scss} +1 -0
- package/patternfly-base.css +63 -114
- package/{patternfly-no-reset.css → patternfly-no-globals.css} +1206 -2449
- package/{patternfly-no-reset.scss → patternfly-no-globals.scss} +1 -0
- package/patternfly.css +1234 -2483
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/functions.scss +8 -24
- package/sass-utilities/mixins.scss +15 -39
- package/sass-utilities/placeholders.scss +0 -23
- package/sass-utilities/scss-variables.scss +5 -6
- package/sass-utilities/themes/dark/placeholders.scss +0 -22
- package/sass-utilities/themes/dark/scss-variables.scss +1 -1
- package/utilities/Spacing/spacing.scss +2 -2
- package/utilities/Text/text.css +48 -48
- package/utilities/Text/text.scss +6 -6
- package/utilities/Text/themes/dark/text.scss +2 -2
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Black.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-BlackItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Bold.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-BoldItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Italic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Medium.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-MediumItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Regular.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Bold.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-BoldItalic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Italic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Medium.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-MediumItalic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Regular.woff +0 -0
- package/assets/fonts/webfonts/fa-solid-900.woff +0 -0
- package/assets/pficon/pficon.woff +0 -0
- package/base/_shield-inheritable.scss +0 -69
- package/base/_shield-noninheritable.scss +0 -13
- package/base/patternfly-shield-inheritable.css +0 -66
- package/base/patternfly-shield-inheritable.scss +0 -4
- package/base/patternfly-shield-noninheritable.css +0 -9
- package/base/patternfly-shield-noninheritable.scss +0 -4
- package/sass-utilities/bs-variables.scss +0 -709
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Form
|
|
3
3
|
section: components
|
|
4
|
+
subsection: forms
|
|
4
5
|
cssPrefix: pf-c-form
|
|
5
6
|
---## Examples
|
|
6
7
|
|
|
@@ -75,11 +76,11 @@ cssPrefix: pf-c-form
|
|
|
75
76
|
<div
|
|
76
77
|
class="pf-c-form__group"
|
|
77
78
|
role="group"
|
|
78
|
-
aria-labelledby="form-horizontal-checkbox-legend"
|
|
79
|
+
aria-labelledby="form-horizontalform-horizontal-checkbox-legend"
|
|
79
80
|
>
|
|
80
81
|
<div
|
|
81
82
|
class="pf-c-form__group-label pf-m-no-padding-top"
|
|
82
|
-
id="form-horizontal-checkbox-legend"
|
|
83
|
+
id="form-horizontalform-horizontal-checkbox-legend"
|
|
83
84
|
><span class="pf-c-form__label">
|
|
84
85
|
<span class="pf-c-form__label-text">Label (no top padding)</span></span> <span
|
|
85
86
|
class="pf-c-form__group-label-help"
|
|
@@ -160,7 +161,7 @@ cssPrefix: pf-c-form
|
|
|
160
161
|
<div class="pf-c-form__group">
|
|
161
162
|
<div class="pf-c-form__group-label"><label
|
|
162
163
|
class="pf-c-form__label"
|
|
163
|
-
for="form-section-example-
|
|
164
|
+
for="form-section-example-section-1-input"
|
|
164
165
|
>
|
|
165
166
|
<span class="pf-c-form__label-text">Form section 1 inputs</span></label>
|
|
166
167
|
</div>
|
|
@@ -168,8 +169,8 @@ cssPrefix: pf-c-form
|
|
|
168
169
|
<input
|
|
169
170
|
class="pf-c-form-control"
|
|
170
171
|
type="text"
|
|
171
|
-
id="form-section-example-
|
|
172
|
-
name="form-section-example-
|
|
172
|
+
id="form-section-example-section-1-input"
|
|
173
|
+
name="form-section-example-section-1-input"
|
|
173
174
|
required
|
|
174
175
|
/>
|
|
175
176
|
</div>
|
|
@@ -177,7 +178,7 @@ cssPrefix: pf-c-form
|
|
|
177
178
|
<div class="pf-c-form__group">
|
|
178
179
|
<div class="pf-c-form__group-label"><label
|
|
179
180
|
class="pf-c-form__label"
|
|
180
|
-
for="form-section-example-
|
|
181
|
+
for="form-section-example-section-1-input-2"
|
|
181
182
|
>
|
|
182
183
|
<span class="pf-c-form__label-text">Form section 1 inputs</span></label>
|
|
183
184
|
</div>
|
|
@@ -185,8 +186,8 @@ cssPrefix: pf-c-form
|
|
|
185
186
|
<input
|
|
186
187
|
class="pf-c-form-control"
|
|
187
188
|
type="text"
|
|
188
|
-
id="form-section-example-
|
|
189
|
-
name="form-section-example-
|
|
189
|
+
id="form-section-example-section-1-input-2"
|
|
190
|
+
name="form-section-example-section-1-input-2"
|
|
190
191
|
required
|
|
191
192
|
/>
|
|
192
193
|
</div>
|
|
@@ -195,17 +196,17 @@ cssPrefix: pf-c-form
|
|
|
195
196
|
<section
|
|
196
197
|
class="pf-c-form__section"
|
|
197
198
|
role="group"
|
|
198
|
-
aria-labelledby="form-section-example-
|
|
199
|
+
aria-labelledby="form-section-example-section-2-title"
|
|
199
200
|
>
|
|
200
201
|
<div
|
|
201
202
|
class="pf-c-form__section-title"
|
|
202
|
-
id="form-section-example-
|
|
203
|
+
id="form-section-example-section-2-title"
|
|
203
204
|
aria-hidden="true"
|
|
204
205
|
>Section 2 title (optional)</div>
|
|
205
206
|
<div class="pf-c-form__group">
|
|
206
207
|
<div class="pf-c-form__group-label"><label
|
|
207
208
|
class="pf-c-form__label"
|
|
208
|
-
for="form-section-example-
|
|
209
|
+
for="form-section-example-section-2-input"
|
|
209
210
|
>
|
|
210
211
|
<span class="pf-c-form__label-text">Form section 2 inputs</span></label>
|
|
211
212
|
</div>
|
|
@@ -213,8 +214,8 @@ cssPrefix: pf-c-form
|
|
|
213
214
|
<input
|
|
214
215
|
class="pf-c-form-control"
|
|
215
216
|
type="text"
|
|
216
|
-
id="form-section-example-
|
|
217
|
-
name="form-section-example-
|
|
217
|
+
id="form-section-example-section-2-input"
|
|
218
|
+
name="form-section-example-section-2-input"
|
|
218
219
|
required
|
|
219
220
|
/>
|
|
220
221
|
</div>
|
|
@@ -222,7 +223,7 @@ cssPrefix: pf-c-form
|
|
|
222
223
|
<div class="pf-c-form__group">
|
|
223
224
|
<div class="pf-c-form__group-label"><label
|
|
224
225
|
class="pf-c-form__label"
|
|
225
|
-
for="form-section-example-
|
|
226
|
+
for="form-section-example-section-2-input-2"
|
|
226
227
|
>
|
|
227
228
|
<span class="pf-c-form__label-text">Form section 2 inputs</span></label>
|
|
228
229
|
</div>
|
|
@@ -230,8 +231,8 @@ cssPrefix: pf-c-form
|
|
|
230
231
|
<input
|
|
231
232
|
class="pf-c-form-control"
|
|
232
233
|
type="text"
|
|
233
|
-
id="form-section-example-
|
|
234
|
-
name="form-section-example-
|
|
234
|
+
id="form-section-example-section-2-input-2"
|
|
235
|
+
name="form-section-example-section-2-input-2"
|
|
235
236
|
required
|
|
236
237
|
/>
|
|
237
238
|
</div>
|
|
@@ -258,11 +259,13 @@ cssPrefix: pf-c-form
|
|
|
258
259
|
name="form-help-text-name"
|
|
259
260
|
aria-describedby="form-help-text-name-helper"
|
|
260
261
|
/>
|
|
261
|
-
<
|
|
262
|
-
class="pf-c-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
262
|
+
<div class="pf-c-form__helper-text" aria-live="polite">
|
|
263
|
+
<div class="pf-c-helper-text">
|
|
264
|
+
<div class="pf-c-helper-text__item" id="form-help-text-name-helper">
|
|
265
|
+
<span class="pf-c-helper-text__item-text">This is helper text.</span>
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
266
269
|
</div>
|
|
267
270
|
</div>
|
|
268
271
|
<div class="pf-c-form__group">
|
|
@@ -278,15 +281,22 @@ cssPrefix: pf-c-form
|
|
|
278
281
|
name="form-help-text-email"
|
|
279
282
|
aria-describedby="form-help-text-email-helper"
|
|
280
283
|
/>
|
|
281
|
-
<
|
|
282
|
-
class="pf-c-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
<div class="pf-c-form__helper-text" aria-live="polite">
|
|
285
|
+
<div class="pf-c-helper-text">
|
|
286
|
+
<div
|
|
287
|
+
class="pf-c-helper-text__item pf-m-warning"
|
|
288
|
+
id="form-help-text-email-helper"
|
|
289
|
+
>
|
|
290
|
+
<span
|
|
291
|
+
class="pf-c-helper-text__item-text"
|
|
292
|
+
>This is helper text for a warning input.</span>
|
|
293
|
+
</div>
|
|
294
|
+
</div>
|
|
295
|
+
</div>
|
|
286
296
|
</div>
|
|
287
297
|
</div>
|
|
288
298
|
<div class="pf-c-form__group">
|
|
289
|
-
<div class="pf-c-form__group-label"><label class="pf-c-form__label" for="
|
|
299
|
+
<div class="pf-c-form__group-label"><label class="pf-c-form__label" for="-address">
|
|
290
300
|
<span class="pf-c-form__label-text">Address</span> <span class="pf-c-form__label-required" aria-hidden="true">*</span></label>
|
|
291
301
|
</div>
|
|
292
302
|
<div class="pf-c-form__group-control">
|
|
@@ -294,16 +304,20 @@ cssPrefix: pf-c-form
|
|
|
294
304
|
class="pf-c-form-control"
|
|
295
305
|
required
|
|
296
306
|
type="text"
|
|
297
|
-
id="
|
|
298
|
-
name="
|
|
307
|
+
id="-address"
|
|
308
|
+
name="-address"
|
|
299
309
|
aria-invalid="true"
|
|
300
|
-
aria-describedby="
|
|
310
|
+
aria-describedby="-address-helper"
|
|
301
311
|
/>
|
|
302
|
-
<
|
|
303
|
-
class="pf-c-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
312
|
+
<div class="pf-c-form__helper-text" aria-live="polite">
|
|
313
|
+
<div class="pf-c-helper-text">
|
|
314
|
+
<div class="pf-c-helper-text__item pf-m-error" id="-address-helper">
|
|
315
|
+
<span
|
|
316
|
+
class="pf-c-helper-text__item-text"
|
|
317
|
+
>This is helper text for an invalid input.</span>
|
|
318
|
+
</div>
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
307
321
|
</div>
|
|
308
322
|
</div>
|
|
309
323
|
<div class="pf-c-form__group">
|
|
@@ -319,34 +333,48 @@ cssPrefix: pf-c-form
|
|
|
319
333
|
name="form-help-text-comment"
|
|
320
334
|
aria-describedby="form-help-text-comment-helper"
|
|
321
335
|
/>
|
|
322
|
-
<
|
|
323
|
-
class="pf-c-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
336
|
+
<div class="pf-c-form__helper-text" aria-live="polite">
|
|
337
|
+
<div class="pf-c-helper-text">
|
|
338
|
+
<div
|
|
339
|
+
class="pf-c-helper-text__item pf-m-success"
|
|
340
|
+
id="form-help-text-comment-helper"
|
|
341
|
+
>
|
|
342
|
+
<span
|
|
343
|
+
class="pf-c-helper-text__item-text"
|
|
344
|
+
>This is helper text for success input.</span>
|
|
345
|
+
</div>
|
|
346
|
+
</div>
|
|
347
|
+
</div>
|
|
327
348
|
</div>
|
|
328
349
|
</div>
|
|
329
350
|
<div class="pf-c-form__group">
|
|
330
351
|
<div class="pf-c-form__group-label"><label class="pf-c-form__label" for="form-help-text-info">
|
|
331
352
|
<span class="pf-c-form__label-text">Information</span></label>
|
|
332
353
|
</div>
|
|
333
|
-
<
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
class="pf-c-form__helper-text
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
354
|
+
<div class="pf-c-form__group-control">
|
|
355
|
+
<textarea
|
|
356
|
+
class="pf-c-form-control"
|
|
357
|
+
id="form-help-text-info"
|
|
358
|
+
name="form-help-text-info"
|
|
359
|
+
aria-invalid="true"
|
|
360
|
+
aria-describedby="form-help-text-info-helper"
|
|
361
|
+
></textarea>
|
|
362
|
+
<div class="pf-c-form__helper-text" aria-live="polite">
|
|
363
|
+
<div class="pf-c-helper-text">
|
|
364
|
+
<div
|
|
365
|
+
class="pf-c-helper-text__item pf-m-error"
|
|
366
|
+
id="form-help-text-info-helper"
|
|
367
|
+
>
|
|
368
|
+
<span class="pf-c-helper-text__item-icon">
|
|
369
|
+
<i class="fas fa-fw fa-exclamation-circle" aria-hidden="true"></i>
|
|
370
|
+
</span>
|
|
371
|
+
<span
|
|
372
|
+
class="pf-c-helper-text__item-text"
|
|
373
|
+
>This is helper text with an icon.</span>
|
|
374
|
+
</div>
|
|
375
|
+
</div>
|
|
376
|
+
</div>
|
|
377
|
+
</div>
|
|
350
378
|
</div>
|
|
351
379
|
</form>
|
|
352
380
|
|
|
@@ -362,7 +390,7 @@ cssPrefix: pf-c-form
|
|
|
362
390
|
<span class="pf-c-form__label-text">Name</span> <span class="pf-c-form__label-required" aria-hidden="true">*</span></label> <span
|
|
363
391
|
class="pf-c-form__group-label-help"
|
|
364
392
|
aria-label="More information for name field"
|
|
365
|
-
aria-describedby="form-additional-info-name"
|
|
393
|
+
aria-describedby="form-additional-infoform-additional-info-name"
|
|
366
394
|
role="button"
|
|
367
395
|
type="button"
|
|
368
396
|
tabindex="0"
|
|
@@ -427,12 +455,12 @@ cssPrefix: pf-c-form
|
|
|
427
455
|
<div class="pf-c-form__group">
|
|
428
456
|
<div class="pf-c-form__group-label"><label
|
|
429
457
|
class="pf-c-form__label"
|
|
430
|
-
for="form-field-
|
|
458
|
+
for="form-field-group-field-group-label1"
|
|
431
459
|
>
|
|
432
460
|
<span class="pf-c-form__label-text">Label 1</span> <span class="pf-c-form__label-required" aria-hidden="true">*</span></label> <span
|
|
433
461
|
class="pf-c-form__group-label-help"
|
|
434
462
|
aria-label="More information for label 1 field"
|
|
435
|
-
aria-describedby="form-field-
|
|
463
|
+
aria-describedby="form-field-group-field-group-label1"
|
|
436
464
|
role="button"
|
|
437
465
|
type="button"
|
|
438
466
|
tabindex="0"
|
|
@@ -442,8 +470,8 @@ cssPrefix: pf-c-form
|
|
|
442
470
|
<input
|
|
443
471
|
class="pf-c-form-control"
|
|
444
472
|
type="text"
|
|
445
|
-
id="form-field-
|
|
446
|
-
name="form-field-
|
|
473
|
+
id="form-field-group-field-group-label1"
|
|
474
|
+
name="form-field-group-field-group-label1"
|
|
447
475
|
required
|
|
448
476
|
/>
|
|
449
477
|
</div>
|
|
@@ -451,12 +479,12 @@ cssPrefix: pf-c-form
|
|
|
451
479
|
<div class="pf-c-form__group">
|
|
452
480
|
<div class="pf-c-form__group-label"><label
|
|
453
481
|
class="pf-c-form__label"
|
|
454
|
-
for="form-field-
|
|
482
|
+
for="form-field-group-field-group-label2"
|
|
455
483
|
>
|
|
456
484
|
<span class="pf-c-form__label-text">Label 2</span> <span class="pf-c-form__label-required" aria-hidden="true">*</span></label> <span
|
|
457
485
|
class="pf-c-form__group-label-help"
|
|
458
486
|
aria-label="More information for label 2 field"
|
|
459
|
-
aria-describedby="form-field-
|
|
487
|
+
aria-describedby="form-field-group-field-group-label2"
|
|
460
488
|
role="button"
|
|
461
489
|
type="button"
|
|
462
490
|
tabindex="0"
|
|
@@ -466,8 +494,8 @@ cssPrefix: pf-c-form
|
|
|
466
494
|
<input
|
|
467
495
|
class="pf-c-form-control"
|
|
468
496
|
type="text"
|
|
469
|
-
id="form-field-
|
|
470
|
-
name="form-field-
|
|
497
|
+
id="form-field-group-field-group-label2"
|
|
498
|
+
name="form-field-group-field-group-label2"
|
|
471
499
|
required
|
|
472
500
|
/>
|
|
473
501
|
</div>
|
|
@@ -681,70 +709,64 @@ To avoid the form label's required indicator or help tooltip icon from wrapping
|
|
|
681
709
|
|
|
682
710
|
### Accessibility
|
|
683
711
|
|
|
684
|
-
| Attribute
|
|
685
|
-
|
|
|
686
|
-
| `for`
|
|
687
|
-
| `id`
|
|
688
|
-
| `required`
|
|
689
|
-
| `
|
|
690
|
-
| `aria-describedby="{helper_text_id}"`
|
|
691
|
-
| `aria-
|
|
692
|
-
| `
|
|
693
|
-
| `role="
|
|
694
|
-
| `role="
|
|
695
|
-
| `
|
|
696
|
-
| `id`
|
|
697
|
-
| `id`
|
|
698
|
-
| `id`
|
|
699
|
-
| `aria-
|
|
700
|
-
| `aria-
|
|
701
|
-
| `aria-
|
|
702
|
-
| `
|
|
703
|
-
| `
|
|
704
|
-
| `aria-label="{descriptive text}" aria-describedby="{form_label_id}"` | `.pf-c-form__group-label-help` | Provides an accessible label on a button that provides additional information for a form element. |
|
|
712
|
+
| Attribute | Applied to | Outcome |
|
|
713
|
+
| -- | -- | -- |
|
|
714
|
+
| `for` | `<label>` | Each `<label>` must have a `for` attribute that matches its form field id. **Required** |
|
|
715
|
+
| `id` | `<input type="radio/checkbox/text">`, `<select>`, `<textarea>` | Each `<form>` field must have an `id` attribute that matches its label's `for` value. **Required** |
|
|
716
|
+
| `required` | `<input>`, `<select>`, `<textarea>` | Required fields must include these attributes. |
|
|
717
|
+
| `aria-describedby="{helper_text_id}"` | `<input>`, `<select>`, `<textarea>` | Form fields with related `.pf-c-helper-text` require this attribute. Usage `<input aria-describedby="{helper_text_id}">`. |
|
|
718
|
+
| `aria-invalid="true" aria-describedby="{helper_text_id}"` | `<input>`, `<select>`, `<textarea>` | When form validation fails `aria-describedby` is used to communicate the error to the user. These attributes need to be handled with Javascript so that `aria-describedby` only references help text that explains the error, and so that `aria-invalid="true"` is only present when validation fails. For proper styling of errors `aria-invalid="true"` is required. |
|
|
719
|
+
| `aria-hidden="true"` | `.pf-c-form__label-required` | Hides the required indicator from assistive technologies. |
|
|
720
|
+
| `role="group"` | `.pf-c-form__group`, `.pf-c-form__section`, `.pf-c-form__field-group` | Provides group role for form groups, form sections, and form field groups. **Required for checkbox groups, form groups, form sections, and form field groups.** |
|
|
721
|
+
| `role="radiogroup"` | `.pf-c-form__group` | Provides group role for radio input groups. **Required for radio input groups** |
|
|
722
|
+
| `role="button"` | `.pf-c-form__group-label-help` | Provides button role for group label help spans. **Required for group label help.** |
|
|
723
|
+
| `id` | `.pf-c-form__group-label` | Generates an `id` for use in the `aria-labelledby` attribute in a checkbox or radio form group. |
|
|
724
|
+
| `id` | `.pf-c-form__field-group-title-text` | Generates an `id` for use in the `aria-labelledby` attribute in an expandable field group's toggle button. |
|
|
725
|
+
| `id` | `.pf-c-form__field-group-toggle-button > button` | Generates an `id` for use in the `aria-labelledby` attribute in an expandable field group's toggle button. |
|
|
726
|
+
| `aria-labelledby="{label id}"` | `.pf-c-form__group`, `.pf-c-form__section`, `.pf-c-form__field-group` | Provides an accessible label for form groups, form sections, and form field groups. **Required for form groups, form sections, and form field groups that contain labels.** |
|
|
727
|
+
| `aria-label` | `.pf-c-form__field-group-toggle-button > button` | Provides an accessible label for the field group toggle button. |
|
|
728
|
+
| `aria-labelledby="{title id} {toggle button id}"` | `.pf-c-form__field-group-toggle-button > button` | Provides an accessible label for the field group toggle button. |
|
|
729
|
+
| `aria-expanded="true/false"` | `.pf-c-form__field-group-toggle-button > button` | Indicates whether the field group body is visible or hidden. |
|
|
730
|
+
| `id="{form_label_id}"` | `.pf-c-form__label` | Generates an `id` for use in the `aria-describedby` attribute in a `.pf-c-form__group-label-help`. |
|
|
731
|
+
| `aria-label="{descriptive text}" aria-describedby="{form_label_id}"` | `.pf-c-form__group-label-help` | Provides an accessible label on a button that provides additional information for a form element. |
|
|
705
732
|
|
|
706
733
|
### Usage
|
|
707
734
|
|
|
708
|
-
| Class
|
|
709
|
-
|
|
|
710
|
-
| `.pf-c-form`
|
|
711
|
-
| `.pf-c-form__section`
|
|
712
|
-
| `.pf-c-form__section-title`
|
|
713
|
-
| `.pf-c-form__group`
|
|
714
|
-
| `.pf-c-form__group-label`
|
|
715
|
-
| `.pf-c-form__label`
|
|
716
|
-
| `.pf-c-form__label-text`
|
|
717
|
-
| `.pf-c-form__label-required`
|
|
718
|
-
| `.pf-c-form__group-label-main`
|
|
719
|
-
| `.pf-c-form__group-label-info`
|
|
720
|
-
| `.pf-c-form__group-label-help`
|
|
721
|
-
| `.pf-c-form__group-control`
|
|
722
|
-
| `.pf-c-form__actions`
|
|
723
|
-
| `.pf-c-form__helper-text`
|
|
724
|
-
| `.pf-c-
|
|
725
|
-
| `.pf-c-
|
|
726
|
-
| `.pf-c-form__field-group`
|
|
727
|
-
| `.pf-c-form__field-group-toggle`
|
|
728
|
-
| `.pf-c-form__field-group-toggle-
|
|
729
|
-
| `.pf-c-form__field-group-
|
|
730
|
-
| `.pf-c-form__field-group-header`
|
|
731
|
-
| `.pf-c-form__field-group-header-
|
|
732
|
-
| `.pf-c-form__field-group-header-title`
|
|
733
|
-
| `.pf-c-form__field-group-header-
|
|
734
|
-
| `.pf-c-form__field-group-header-
|
|
735
|
-
| `.pf-c-form__field-group-
|
|
736
|
-
| `.pf-
|
|
737
|
-
| `.pf-m-
|
|
738
|
-
| `.pf-m-
|
|
739
|
-
| `.pf-m-
|
|
740
|
-
| `.pf-m-
|
|
741
|
-
| `.pf-m-
|
|
742
|
-
| `.pf-m-
|
|
743
|
-
| `.pf-m-
|
|
744
|
-
| `.pf-m-
|
|
745
|
-
|
|
|
746
|
-
| `.pf-m-no-padding-top` | `.pf-c-form__group-label` | Removes top padding from the label element for labels adjacent to an element that isn't a form control. |
|
|
747
|
-
| `.pf-m-inline` | `.pf-c-form__group-control` | Modifies form group children to be inline (this is primarily for radio buttons and checkboxes). |
|
|
748
|
-
| `.pf-m-stack` | `.pf-c-form__group-control` | Modifies form group children to be stacked with space between children. |
|
|
749
|
-
| `.pf-m-expanded` | `.pf-c-form__field-group` | Modifies an expandable field group for the expanded state. |
|
|
750
|
-
| `--pf-c-form--m-limit-width--MaxWidth` | `.pf-c-form.pf-m-limit-width` | Sets a custom `max-width` for a width limited form. |
|
|
735
|
+
| Class | Applied to | Outcome |
|
|
736
|
+
| -- | -- | -- |
|
|
737
|
+
| `.pf-c-form` | `<form>` | Initiates a standard form. **Required** |
|
|
738
|
+
| `.pf-c-form__section` | `<div>, <section>` | Initiates a form section. |
|
|
739
|
+
| `.pf-c-form__section-title` | `<h1>`,`<h2>`,`<h3>`,`<h4>`,`<h5>`,`<h6>`, `<div>` | Initiates a form section title. |
|
|
740
|
+
| `.pf-c-form__group` | `<div>` | Initiates a form group. |
|
|
741
|
+
| `.pf-c-form__group-label` | `<div>` | Initiates a form group label. |
|
|
742
|
+
| `.pf-c-form__label` | `<label>`, `<span>` | Initiates a form label. **Required** |
|
|
743
|
+
| `.pf-c-form__label-text` | `<span>` | Initiates a form label text. **Required** |
|
|
744
|
+
| `.pf-c-form__label-required` | `<span>` | Initiates a form label required indicator. |
|
|
745
|
+
| `.pf-c-form__group-label-main` | `<div>` | Initiates a form group label main container. |
|
|
746
|
+
| `.pf-c-form__group-label-info` | `<div>` | Initiates a form group info label. |
|
|
747
|
+
| `.pf-c-form__group-label-help` | `<button>`, `<span>` | Initiates a field level help span/button. |
|
|
748
|
+
| `.pf-c-form__group-control` | `<div>` | Initiates a form group control section. |
|
|
749
|
+
| `.pf-c-form__actions` | `<div>` | Iniates a row of actions. |
|
|
750
|
+
| `.pf-c-form__helper-text` | `<p>`, `<div>` | Initiates a form helper text block. |
|
|
751
|
+
| `.pf-c-form__alert` | `<div>` | Initiates the form alert container for inline alerts. |
|
|
752
|
+
| `.pf-c-form__field-group` | `<div>` | Initiates a form field group. |
|
|
753
|
+
| `.pf-c-form__field-group-toggle` | `<div>` | Initiates the form field group toggle. |
|
|
754
|
+
| `.pf-c-form__field-group-toggle-button` | `<div>` | Initiates the form field group toggle button. |
|
|
755
|
+
| `.pf-c-form__field-group-toggle-icon` | `<span>` | Initiates the form field group toggle icon. |
|
|
756
|
+
| `.pf-c-form__field-group-header` | `<div>` | Initiates the form field group header. |
|
|
757
|
+
| `.pf-c-form__field-group-header-main` | `<div>` | Initiates the form field group main section. |
|
|
758
|
+
| `.pf-c-form__field-group-header-title` | `<div>` | Initiates the form field group title. |
|
|
759
|
+
| `.pf-c-form__field-group-header-title-text` | `<div>` | Initiates the form field group title text. |
|
|
760
|
+
| `.pf-c-form__field-group-header-description` | `<div>` | Initiates the form field group description. |
|
|
761
|
+
| `.pf-c-form__field-group-header-actions` | `<div>` | Initiates the form field group actions container. |
|
|
762
|
+
| `.pf-c-form__field-group-body` | `<div>` | Initiates the form field group body. |
|
|
763
|
+
| `.pf-m-horizontal{-on-[xs, sm, md, lg, xl, 2xl]}` | `.pf-c-form` | Modifies the form for a horizontal layout at an optional breakpoint. The default breakpoint is `-md`. |
|
|
764
|
+
| `.pf-m-limit-width` | `.pf-c-form` | Limits the overall max-width of the form. Configurable by defining `--pf-c-form--m-limit-width--MaxWidth`. |
|
|
765
|
+
| `.pf-m-info` | `.pf-c-form__group-label` | Modifies the form group label to contain form group label info. |
|
|
766
|
+
| `.pf-m-action` | `.pf-c-form__group` | Modifies form group margin-top. |
|
|
767
|
+
| `.pf-m-disabled` | `.pf-c-form__label` | Modifies form label to show disabled state. |
|
|
768
|
+
| `.pf-m-no-padding-top` | `.pf-c-form__group-label` | Removes top padding from the label element for labels adjacent to an element that isn't a form control. |
|
|
769
|
+
| `.pf-m-inline` | `.pf-c-form__group-control` | Modifies form group children to be inline (this is primarily for radio buttons and checkboxes). |
|
|
770
|
+
| `.pf-m-stack` | `.pf-c-form__group-control` | Modifies form group children to be stacked with space between children. |
|
|
771
|
+
| `.pf-m-expanded` | `.pf-c-form__field-group` | Modifies an expandable field group for the expanded state. |
|
|
772
|
+
| `--pf-c-form--m-limit-width--MaxWidth` | `.pf-c-form.pf-m-limit-width` | Sets a custom `max-width` for a width limited form. |
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Form control
|
|
3
3
|
section: components
|
|
4
|
+
subsection: forms
|
|
4
5
|
cssPrefix: pf-c-form-control
|
|
5
6
|
---import './FormControl.css'
|
|
6
7
|
|
|
@@ -498,26 +499,26 @@ cssPrefix: pf-c-form-control
|
|
|
498
499
|
|
|
499
500
|
### Accessibility
|
|
500
501
|
|
|
501
|
-
| Attribute
|
|
502
|
-
|
|
|
503
|
-
| `id`
|
|
504
|
-
| `aria-invalid="true"`
|
|
505
|
-
| `aria-label="descriptive text"` | `.pf-c-form-control`
|
|
506
|
-
| `aria-expanded="true"`
|
|
502
|
+
| Attribute | Applied to | Outcome |
|
|
503
|
+
| -- | -- | -- |
|
|
504
|
+
| `id` | `.pf-c-form-control` | Provides an `id` value that can be used with the `for` attribute on an associated `<label>` element to provide an accessible label for the form control element.
|
|
505
|
+
| `aria-invalid="true"` | `.pf-c-form-control` | Indicates that the form control is in the error state and applies error state styling. |
|
|
506
|
+
| `aria-label="descriptive text"` | `.pf-c-form-control` | Provides an accessible label for assistive technology. |
|
|
507
|
+
| `aria-expanded="true"` | `.pf-c-form-control.pf-m-expanded` | Indicates that clicking in the form control has toggled something else to be expanded. |
|
|
507
508
|
|
|
508
509
|
### Usage
|
|
509
510
|
|
|
510
|
-
| Class
|
|
511
|
-
|
|
|
512
|
-
| `.pf-c-form-control`
|
|
513
|
-
| `.pf-m-resize-vertical`
|
|
514
|
-
| `.pf-m-resize-horizontal` | `textarea.pf-m-form-control`
|
|
515
|
-
| `.pf-m-success`
|
|
516
|
-
| `.pf-m-warning`
|
|
517
|
-
| `.pf-m-icon-sprite`
|
|
518
|
-
| `.pf-m-icon`
|
|
519
|
-
| `.pf-m-calendar`
|
|
520
|
-
| `.pf-m-clock`
|
|
521
|
-
| `.pf-m-expanded`
|
|
522
|
-
| `.pf-m-placeholder`
|
|
523
|
-
| `.pf-m-plain`
|
|
511
|
+
| Class | Applied to | Outcome |
|
|
512
|
+
| -- | -- | -- |
|
|
513
|
+
| `.pf-c-form-control` | `<input>`,`<textarea>`, `<select>` | Initiates an input, textarea or select. For styling of checkboxes or radios see the [checkbox component](/components/checkbox) or [radio component](/components/radio). **Required** |
|
|
514
|
+
| `.pf-m-resize-vertical` | `textarea.pf-m-form-control` | Modifies a `textarea.pf-c-form-control` element so it can only be resized vertically along the y-axis. |
|
|
515
|
+
| `.pf-m-resize-horizontal` | `textarea.pf-m-form-control` | Modifies a `textarea.pf-c-form-control` element so it can only be resized horizontally along the x-axis. |
|
|
516
|
+
| `.pf-m-success` | `.pf-c-form-control` | Modifies a form control for the success state. |
|
|
517
|
+
| `.pf-m-warning` | `.pf-c-form-control` | Modifies a form control for the warning state. |
|
|
518
|
+
| `.pf-m-icon-sprite` | `.pf-c-form-control` | Modifies form control element to use an external SVG sprite instead of embedded data URIs for icons. For use with apps whose content security policies disallow the use of data URIs. |
|
|
519
|
+
| `.pf-m-icon` | `input.pf-c-form-control` | Modifies a form control text input to be able to specify a custom SVG background via `--pf-c-form-control--m-icon--BackgroundUrl`, and other optional vars for other background properties.
|
|
520
|
+
| `.pf-m-calendar` | `.pf-c-form-control.pf-m-icon` | Modifies a form control to support the calendar icon. |
|
|
521
|
+
| `.pf-m-clock` | `.pf-c-form-control.pf-m-icon` | Modifies a form control to support the clock icon. |
|
|
522
|
+
| `.pf-m-expanded` | `input.pf-c-form-control` | Modifies a form control for the expanded state. This is used when clicking in the text input toggles something open/closed. |
|
|
523
|
+
| `.pf-m-placeholder` | `select.pf-c-form-control` | Modifies a form select for placeholder styles. This modifier is set programatically based on the chosen option. |
|
|
524
|
+
| `.pf-m-plain` | `input[readonly].pf-c-form-control`, `textarea[readonly].pf-c-form-control` | Modifies an `<input>` or `<textarea>` with a `readonly` attribute to be presented as normal text. |
|