@patternfly/patternfly 6.0.0-alpha.97 → 6.0.0-alpha.99
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/components/Card/card.css +1 -0
- package/components/Card/card.scss +1 -0
- package/components/Check/check.css +10 -3
- package/components/Check/check.scss +17 -4
- package/components/Masthead/masthead.css +17 -9
- package/components/Masthead/masthead.scss +18 -9
- package/components/MenuToggle/menu-toggle.css +20 -6
- package/components/MenuToggle/menu-toggle.scss +32 -6
- package/components/ModalBox/modal-box.css +11 -7
- package/components/ModalBox/modal-box.scss +27 -12
- package/components/Nav/nav.css +64 -110
- package/components/Nav/nav.scss +70 -143
- package/components/Page/page.css +9 -17
- package/components/Page/page.scss +10 -23
- package/components/Radio/radio.css +12 -5
- package/components/Radio/radio.scss +21 -6
- package/components/Table/table-grid.css +30 -35
- package/components/Table/table-grid.scss +44 -32
- package/components/Table/table-scrollable.css +14 -6
- package/components/Table/table-scrollable.scss +6 -1
- package/components/Table/table-tree-view.css +5 -5
- package/components/Table/table-tree-view.scss +14 -8
- package/components/Table/table.css +90 -254
- package/components/Table/table.scss +158 -347
- package/components/Toolbar/toolbar.css +66 -2
- package/components/Toolbar/toolbar.scss +21 -2
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +12 -12
- package/docs/components/Accordion/examples/Accordion.md +19 -19
- package/docs/components/ActionList/examples/ActionList.md +5 -5
- package/docs/components/Alert/examples/Alert.md +26 -26
- package/docs/components/AppLauncher/deprecated/application-launcher.md +31 -31
- package/docs/components/Avatar/examples/Avatar.md +8 -8
- package/docs/components/BackToTop/examples/BackToTop.md +3 -3
- package/docs/components/Backdrop/examples/Backdrop.md +3 -3
- package/docs/components/BackgroundImage/examples/BackgroundImage.md +4 -4
- package/docs/components/Badge/examples/Badge.md +6 -6
- package/docs/components/Banner/examples/Banner.md +17 -17
- package/docs/components/Brand/examples/Brand.css +3 -3
- package/docs/components/Brand/examples/Brand.md +7 -7
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +12 -12
- package/docs/components/Button/examples/Button.css +2 -2
- package/docs/components/Button/examples/Button.md +35 -35
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +29 -29
- package/docs/components/Card/examples/Card.md +30 -30
- package/docs/components/Check/examples/Check.md +12 -12
- package/docs/components/Chip/examples/Chip.md +21 -21
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +19 -19
- package/docs/components/CodeBlock/examples/CodeBlock.md +8 -8
- package/docs/components/CodeEditor/examples/CodeEditor.md +14 -14
- package/docs/components/Content/examples/Content.md +5 -5
- package/docs/components/ContextSelector/deprecated/context-selector.md +23 -23
- package/docs/components/DataList/examples/DataList.md +177 -112
- package/docs/components/DatePicker/examples/DatePicker.md +10 -10
- package/docs/components/DescriptionList/examples/DescriptionList.md +29 -29
- package/docs/components/Divider/examples/Divider.md +7 -7
- package/docs/components/DragDrop/examples/DragDrop.md +5 -5
- package/docs/components/Drawer/examples/Drawer.md +36 -36
- package/docs/components/Dropdown/deprecated/Dropdown.css +1 -1
- package/docs/components/Dropdown/deprecated/Dropdown.md +47 -47
- package/docs/components/DualListSelector/examples/DualListSelector.md +41 -41
- package/docs/components/EmptyState/examples/EmptyState.md +21 -21
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +18 -18
- package/docs/components/FileUpload/examples/FileUpload.md +8 -8
- package/docs/components/Form/examples/Form.md +52 -52
- package/docs/components/FormControl/examples/FormControl.md +22 -22
- package/docs/components/HelperText/examples/HelperText.md +11 -11
- package/docs/components/Hint/examples/Hint.md +6 -6
- package/docs/components/Icon/examples/Icon.md +13 -13
- package/docs/components/InlineEdit/examples/InlineEdit.md +54 -138
- package/docs/components/InputGroup/examples/InputGroup.md +10 -10
- package/docs/components/JumpLinks/examples/JumpLinks.md +19 -19
- package/docs/components/Label/examples/Label.css +4 -4
- package/docs/components/Label/examples/Label.md +45 -45
- package/docs/components/List/examples/List.md +6 -6
- package/docs/components/LogViewer/examples/LogViewer.css +2 -2
- package/docs/components/LogViewer/examples/LogViewer.md +35 -35
- package/docs/components/Login/examples/Login.md +21 -21
- package/docs/components/Masthead/examples/masthead.md +7 -7
- package/docs/components/Menu/examples/Menu.md +60 -60
- package/docs/components/MenuToggle/examples/MenuToggle.md +106 -22
- package/docs/components/ModalBox/examples/ModalBox.md +75 -34
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +21 -21
- package/docs/components/Nav/examples/Navigation.css +20 -3
- package/docs/components/Nav/examples/Navigation.md +44 -50
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +8 -8
- package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +36 -36
- package/docs/components/NumberInput/examples/NumberInput.md +13 -13
- package/docs/components/OptionsMenu/deprecated/options-menu.md +22 -22
- package/docs/components/OverflowMenu/examples/overflow-menu.md +20 -20
- package/docs/components/Page/deprecated/PageHeader.md +30 -30
- package/docs/components/Page/examples/Page.md +55 -54
- package/docs/components/Pagination/examples/Pagination.md +25 -25
- package/docs/components/Panel/examples/Panel.md +10 -10
- package/docs/components/Popover/examples/Popover.md +30 -30
- package/docs/components/Progress/examples/Progress.md +31 -31
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +17 -17
- package/docs/components/Radio/examples/Radio.md +9 -9
- package/docs/components/Select/deprecated/Select.md +110 -110
- package/docs/components/Sidebar/examples/Sidebar.md +16 -16
- package/docs/components/SimpleList/examples/SimpleList.md +9 -9
- package/docs/components/Skeleton/examples/Skeleton.md +14 -14
- package/docs/components/SkipToContent/examples/SkipToContent.md +4 -4
- package/docs/components/Slider/examples/Slider.md +33 -33
- package/docs/components/Spinner/examples/Spinner.md +14 -14
- package/docs/components/Switch/examples/Switch.md +14 -14
- package/docs/components/TabContent/examples/TabContent.md +10 -10
- package/docs/components/Table/examples/Table.md +5395 -15077
- package/docs/components/Tabs/examples/Tabs.md +39 -39
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +1 -1
- package/docs/components/Tile/examples/Tile.md +12 -12
- package/docs/components/Timestamp/examples/Timestamp.md +4 -4
- package/docs/components/Title/examples/Title.md +20 -20
- package/docs/components/ToggleGroup/examples/toggle-group.md +10 -10
- package/docs/components/Toolbar/examples/Toolbar.md +57 -57
- package/docs/components/Tooltip/examples/Tooltip.md +9 -9
- package/docs/components/TreeView/examples/TreeView.md +31 -31
- package/docs/components/Truncate/examples/Truncate.md +8 -8
- package/docs/components/Wizard/examples/Wizard.md +46 -46
- package/docs/demos/Banner/examples/Banner.md +1 -1
- package/docs/demos/Card/examples/Card.md +12 -19
- package/docs/demos/DataList/examples/DataList.md +179 -280
- package/docs/demos/DescriptionList/examples/DescriptionList.md +6 -0
- package/docs/demos/Masthead/examples/Masthead.md +4 -8
- package/docs/demos/Nav/examples/Nav.md +45 -149
- package/docs/demos/Page/examples/Page.md +3 -37
- package/docs/demos/Page/examples/Penta.md +119 -40
- package/docs/demos/Table/examples/Table.md +1531 -4970
- package/docs/demos/Tabs/examples/Tabs.md +118 -174
- package/docs/demos/Toolbar/examples/Toolbar.md +220 -600
- package/docs/layouts/Bullseye/examples/Bullseye.md +3 -3
- package/docs/layouts/Flex/examples/Flex.md +76 -76
- package/docs/layouts/Gallery/examples/Gallery.md +6 -6
- package/docs/layouts/Grid/examples/Grid.md +8 -8
- package/docs/layouts/Level/examples/Level.md +4 -4
- package/docs/layouts/Split/examples/Split.md +6 -6
- package/docs/layouts/Stack/examples/Stack.md +5 -5
- package/docs/utilities/Accessibility/examples/Accessibility.md +2 -2
- package/docs/utilities/Alignment/examples/Alignment.md +4 -4
- package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +10 -10
- package/docs/utilities/BoxShadow/examples/box-shadow.md +20 -20
- package/docs/utilities/Display/examples/Display.md +9 -9
- package/docs/utilities/Flex/examples/Flex.md +32 -32
- package/docs/utilities/Float/examples/Float.md +2 -2
- package/docs/utilities/Sizing/examples/Sizing.md +41 -41
- package/docs/utilities/Spacing/examples/Spacing.md +11 -11
- package/docs/utilities/Text/examples/Text.md +28 -28
- package/package.json +2 -1
- package/patternfly-no-globals.css +363 -465
- package/patternfly-theme-dark-unversioned.css +363 -465
- package/patternfly.css +363 -465
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/components/Table/themes/dark/table.scss +0 -16
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Expandable section
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-expandable-section
|
|
5
5
|
---## Examples
|
|
6
6
|
|
|
7
7
|
### Hidden
|
|
@@ -210,25 +210,25 @@ cssPrefix: pf-v5-c-expandable-section
|
|
|
210
210
|
|
|
211
211
|
| Attribute | Applied to | Outcome |
|
|
212
212
|
| -- | -- | -- |
|
|
213
|
-
| `aria-expanded="true"` | `.pf-
|
|
214
|
-
| `aria-expanded="false"` | `.pf-
|
|
215
|
-
| `hidden` | `.pf-
|
|
216
|
-
| `aria-hidden="true"` | `.pf-
|
|
217
|
-
| `aria-controls="[id of content element]"` | `.pf-
|
|
218
|
-
| `id` | `.pf-
|
|
213
|
+
| `aria-expanded="true"` | `.pf-v6-c-expandable-section__toggle` | Indicates that the expandable section content is visible. **Required** |
|
|
214
|
+
| `aria-expanded="false"` | `.pf-v6-c-expandable-section__toggle` | Indicates the the expandable section content is hidden. **Required** |
|
|
215
|
+
| `hidden` | `.pf-v6-c-expandable-section__content` | Indicates that the expandable section content element is hidden. Use with `aria-expanded="false"` **Required** |
|
|
216
|
+
| `aria-hidden="true"` | `.pf-v6-c-expandable-section__toggle-icon` | Hides the icon from screen readers. **Required** |
|
|
217
|
+
| `aria-controls="[id of content element]"` | `.pf-v6-c-expandable-section.pf-m-detached .pf-v6-c-expandable-section__toggle` | Identifies the element controlled by the toggle button. **Required** |
|
|
218
|
+
| `id` | `.pf-v6-c-expandable-section.pf-m-detached .pf-v6-c-expandable-section__content` | Gives the content an `id` for use with `aria-controls` on `.pf-v6-c-expandable-section__toggle`. **Required** |
|
|
219
219
|
|
|
220
220
|
### Usage
|
|
221
221
|
|
|
222
222
|
| Class | Applied to | Outcome |
|
|
223
223
|
| -- | -- | -- |
|
|
224
|
-
| `.pf-
|
|
225
|
-
| `.pf-
|
|
226
|
-
| `.pf-
|
|
227
|
-
| `.pf-
|
|
228
|
-
| `.pf-
|
|
229
|
-
| `.pf-m-expanded` | `.pf-
|
|
230
|
-
| `.pf-m-display-lg` | `.pf-
|
|
231
|
-
| `.pf-m-indented` | `.pf-
|
|
232
|
-
| `.pf-m-truncate` | `.pf-
|
|
233
|
-
| `.pf-m-expand-top` | `.pf-
|
|
234
|
-
| `--pf-
|
|
224
|
+
| `.pf-v6-c-expandable-section` | `<div>` | Initiates the expandable section component. **Required** |
|
|
225
|
+
| `.pf-v6-c-expandable-section__toggle` | `<button>` | Initiates the expandable section toggle. **Required** |
|
|
226
|
+
| `.pf-v6-c-expandable-section__toggle-text` | `<span>` | Initiates the expandable toggle text. **Required** |
|
|
227
|
+
| `.pf-v6-c-expandable-section__toggle-icon` | `<span>` | Initiates the expandable toggle icon. **Required** |
|
|
228
|
+
| `.pf-v6-c-expandable-section__content` | `<div>` | Initiates the expandable section content. **Required** |
|
|
229
|
+
| `.pf-m-expanded` | `.pf-v6-c-expandable-section` | Modifies the component for the expanded state. |
|
|
230
|
+
| `.pf-m-display-lg` | `.pf-v6-c-expandable-section` | Modifies the styling of the component to have large display styling. |
|
|
231
|
+
| `.pf-m-indented` | `.pf-v6-c-expandable-section` | Indicates that the expandable section content is indented and is aligned with the start of the title text to provide visual hierarchy. |
|
|
232
|
+
| `.pf-m-truncate` | `.pf-v6-c-expandable-section` | Indicates that the expandable section content is truncated by default, and not truncated when expanded. |
|
|
233
|
+
| `.pf-m-expand-top` | `.pf-v6-c-expandable-section__toggle-icon` | Modifies the toggle icon to point up when expanded. |
|
|
234
|
+
| `--pf-v6-c-expandable-section--m-truncate__content--LineClamp` | `.pf-v6-c-expandable-section.pf-m-truncate` | Modifies the number of lines to show before truncating. |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
id: Simple file upload
|
|
3
3
|
section: components
|
|
4
4
|
subsection: file-upload
|
|
5
|
-
cssPrefix: pf-
|
|
5
|
+
cssPrefix: pf-v6-c-file-upload
|
|
6
6
|
---## Examples
|
|
7
7
|
|
|
8
8
|
### Basic file upload
|
|
@@ -381,10 +381,10 @@ cssPrefix: pf-v5-c-file-upload
|
|
|
381
381
|
|
|
382
382
|
| Class | Applied to | Outcome |
|
|
383
383
|
| -- | -- | -- |
|
|
384
|
-
| `.pf-
|
|
385
|
-
| `.pf-
|
|
386
|
-
| `.pf-
|
|
387
|
-
| `.pf-
|
|
388
|
-
| `.pf-
|
|
389
|
-
| `.pf-m-drag-hover` | `.pf-
|
|
390
|
-
| `.pf-m-loading` | `.pf-
|
|
384
|
+
| `.pf-v6-c-file-upload` | `<div>`, `<form>` | Initiates the file upload component. **Required**. |
|
|
385
|
+
| `.pf-v6-c-file-upload__file-select` | `<div>` | Initiates the file select element. **Required** |
|
|
386
|
+
| `.pf-v6-c-file-upload__file-details` | `<div>` | Initiates the file details element. **Required** |
|
|
387
|
+
| `.pf-v6-c-file-upload__file-details-spinner` | `<div>` | Initiates the file details element. **Required** |
|
|
388
|
+
| `.pf-v6-c-file-upload__helper-text` | `<div>` | Initiates a container for [helper text](/components/helper-text) |
|
|
389
|
+
| `.pf-m-drag-hover` | `.pf-v6-c-file-upload` | Modifies file upload for when an element is dragged or dropped inside of its container. |
|
|
390
|
+
| `.pf-m-loading` | `.pf-v6-c-file-upload` | Modifies file upload for the loading state. |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
id: Form
|
|
3
3
|
section: components
|
|
4
4
|
subsection: forms
|
|
5
|
-
cssPrefix: pf-
|
|
5
|
+
cssPrefix: pf-v6-c-form
|
|
6
6
|
---## Examples
|
|
7
7
|
|
|
8
8
|
### Vertically aligned labels
|
|
@@ -805,7 +805,7 @@ cssPrefix: pf-v5-c-form
|
|
|
805
805
|
|
|
806
806
|
## Documentation
|
|
807
807
|
|
|
808
|
-
To avoid the form label's required indicator or help tooltip icon from wrapping separately from the form label text, all whitespace characters between the last word of the label text, the required indicator (`.pf-
|
|
808
|
+
To avoid the form label's required indicator or help tooltip icon from wrapping separately from the form label text, all whitespace characters between the last word of the label text, the required indicator (`.pf-v6-c-form__label-required`), and help tooltip icon (`.pf-v6-c-form__label-help`) must be removed, and ` ` characters added in between to maintain spacing. Also the help tooltip icon's `.pf-v6-c-form__label-required` element must be a `<span>` instead of a `<button>` due to layout limitations of the `<button>` element imposed by user agent styles.
|
|
809
809
|
|
|
810
810
|
### Accessibility
|
|
811
811
|
|
|
@@ -814,59 +814,59 @@ To avoid the form label's required indicator or help tooltip icon from wrapping
|
|
|
814
814
|
| `for` | `<label>` | Each `<label>` must have a `for` attribute that matches its form field id. **Required** |
|
|
815
815
|
| `id` | `<input type="radio/checkbox/text">`, `<select>`, `<textarea>` | Each `<form>` field must have an `id` attribute that matches its label's `for` value. **Required** |
|
|
816
816
|
| `required` | `<input>`, `<select>`, `<textarea>` | Required fields must include these attributes. |
|
|
817
|
-
| `aria-describedby="{helper_text_id}"` | `<input>`, `<select>`, `<textarea>` | Form fields with related `.pf-
|
|
817
|
+
| `aria-describedby="{helper_text_id}"` | `<input>`, `<select>`, `<textarea>` | Form fields with related `.pf-v6-c-helper-text` require this attribute. Usage `<input aria-describedby="{helper_text_id}">`. |
|
|
818
818
|
| `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. |
|
|
819
|
-
| `aria-hidden="true"` | `.pf-
|
|
820
|
-
| `role="group"` | `.pf-
|
|
821
|
-
| `role="radiogroup"` | `.pf-
|
|
822
|
-
| `role="button"` | `.pf-
|
|
823
|
-
| `id` | `.pf-
|
|
824
|
-
| `id` | `.pf-
|
|
825
|
-
| `id` | `.pf-
|
|
826
|
-
| `aria-labelledby="{label id}"` | `.pf-
|
|
827
|
-
| `aria-label` | `.pf-
|
|
828
|
-
| `aria-labelledby="{title id} {toggle button id}"` | `.pf-
|
|
829
|
-
| `aria-expanded="true/false"` | `.pf-
|
|
830
|
-
| `id="{form_label_id}"` | `.pf-
|
|
831
|
-
| `aria-label="{descriptive text}" aria-describedby="{form_label_id}"` | `.pf-
|
|
819
|
+
| `aria-hidden="true"` | `.pf-v6-c-form__label-required` | Hides the required indicator from assistive technologies. |
|
|
820
|
+
| `role="group"` | `.pf-v6-c-form__group`, `.pf-v6-c-form__section`, `.pf-v6-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.** |
|
|
821
|
+
| `role="radiogroup"` | `.pf-v6-c-form__group` | Provides group role for radio input groups. **Required for radio input groups** |
|
|
822
|
+
| `role="button"` | `.pf-v6-c-form__group-label-help` | Provides button role for group label help spans. **Required for group label help.** |
|
|
823
|
+
| `id` | `.pf-v6-c-form__group-label` | Generates an `id` for use in the `aria-labelledby` attribute in a checkbox or radio form group. |
|
|
824
|
+
| `id` | `.pf-v6-c-form__field-group-title-text` | Generates an `id` for use in the `aria-labelledby` attribute in an expandable field group's toggle button. |
|
|
825
|
+
| `id` | `.pf-v6-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. |
|
|
826
|
+
| `aria-labelledby="{label id}"` | `.pf-v6-c-form__group`, `.pf-v6-c-form__section`, `.pf-v6-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.** |
|
|
827
|
+
| `aria-label` | `.pf-v6-c-form__field-group-toggle-button > button` | Provides an accessible label for the field group toggle button. |
|
|
828
|
+
| `aria-labelledby="{title id} {toggle button id}"` | `.pf-v6-c-form__field-group-toggle-button > button` | Provides an accessible label for the field group toggle button. |
|
|
829
|
+
| `aria-expanded="true/false"` | `.pf-v6-c-form__field-group-toggle-button > button` | Indicates whether the field group body is visible or hidden. |
|
|
830
|
+
| `id="{form_label_id}"` | `.pf-v6-c-form__label` | Generates an `id` for use in the `aria-describedby` attribute in a `.pf-v6-c-form__group-label-help`. |
|
|
831
|
+
| `aria-label="{descriptive text}" aria-describedby="{form_label_id}"` | `.pf-v6-c-form__group-label-help` | Provides an accessible label on a button that provides additional information for a form element. |
|
|
832
832
|
|
|
833
833
|
### Usage
|
|
834
834
|
|
|
835
835
|
| Class | Applied to | Outcome |
|
|
836
836
|
| -- | -- | -- |
|
|
837
|
-
| `.pf-
|
|
838
|
-
| `.pf-
|
|
839
|
-
| `.pf-
|
|
840
|
-
| `.pf-
|
|
841
|
-
| `.pf-
|
|
842
|
-
| `.pf-
|
|
843
|
-
| `.pf-
|
|
844
|
-
| `.pf-
|
|
845
|
-
| `.pf-
|
|
846
|
-
| `.pf-
|
|
847
|
-
| `.pf-
|
|
848
|
-
| `.pf-
|
|
849
|
-
| `.pf-
|
|
850
|
-
| `.pf-
|
|
851
|
-
| `.pf-
|
|
852
|
-
| `.pf-
|
|
853
|
-
| `.pf-
|
|
854
|
-
| `.pf-
|
|
855
|
-
| `.pf-
|
|
856
|
-
| `.pf-
|
|
857
|
-
| `.pf-
|
|
858
|
-
| `.pf-
|
|
859
|
-
| `.pf-
|
|
860
|
-
| `.pf-
|
|
861
|
-
| `.pf-
|
|
862
|
-
| `.pf-
|
|
863
|
-
| `.pf-m-horizontal{-on-[xs, sm, md, lg, xl, 2xl]}` | `.pf-
|
|
864
|
-
| `.pf-m-limit-width` | `.pf-
|
|
865
|
-
| `.pf-m-info` | `.pf-
|
|
866
|
-
| `.pf-m-action` | `.pf-
|
|
867
|
-
| `.pf-m-disabled` | `.pf-
|
|
868
|
-
| `.pf-m-no-padding-top` | `.pf-
|
|
869
|
-
| `.pf-m-inline` | `.pf-
|
|
870
|
-
| `.pf-m-stack` | `.pf-
|
|
871
|
-
| `.pf-m-expanded` | `.pf-
|
|
872
|
-
| `--pf-
|
|
837
|
+
| `.pf-v6-c-form` | `<form>` | Initiates a standard form. **Required** |
|
|
838
|
+
| `.pf-v6-c-form__section` | `<div>, <section>` | Initiates a form section. |
|
|
839
|
+
| `.pf-v6-c-form__section-title` | `<h1>`,`<h2>`,`<h3>`,`<h4>`,`<h5>`,`<h6>`, `<div>` | Initiates a form section title. |
|
|
840
|
+
| `.pf-v6-c-form__group` | `<div>` | Initiates a form group. |
|
|
841
|
+
| `.pf-v6-c-form__group-label` | `<div>` | Initiates a form group label. |
|
|
842
|
+
| `.pf-v6-c-form__label` | `<label>`, `<span>` | Initiates a form label. **Required** |
|
|
843
|
+
| `.pf-v6-c-form__label-text` | `<span>` | Initiates a form label text. **Required** |
|
|
844
|
+
| `.pf-v6-c-form__label-required` | `<span>` | Initiates a form label required indicator. |
|
|
845
|
+
| `.pf-v6-c-form__group-label-main` | `<div>` | Initiates a form group label main container. |
|
|
846
|
+
| `.pf-v6-c-form__group-label-info` | `<div>` | Initiates a form group info label. |
|
|
847
|
+
| `.pf-v6-c-form__group-label-help` | `<span>` | Initiates field level help. |
|
|
848
|
+
| `.pf-v6-c-form__group-control` | `<div>` | Initiates a form group control section. |
|
|
849
|
+
| `.pf-v6-c-form__actions` | `<div>` | Iniates a row of actions. |
|
|
850
|
+
| `.pf-v6-c-form__helper-text` | `<p>`, `<div>` | Initiates a form helper text block. |
|
|
851
|
+
| `.pf-v6-c-form__alert` | `<div>` | Initiates the form alert container for inline alerts. |
|
|
852
|
+
| `.pf-v6-c-form__field-group` | `<div>` | Initiates a form field group. |
|
|
853
|
+
| `.pf-v6-c-form__field-group-toggle` | `<div>` | Initiates the form field group toggle. |
|
|
854
|
+
| `.pf-v6-c-form__field-group-toggle-button` | `<div>` | Initiates the form field group toggle button. |
|
|
855
|
+
| `.pf-v6-c-form__field-group-toggle-icon` | `<span>` | Initiates the form field group toggle icon. |
|
|
856
|
+
| `.pf-v6-c-form__field-group-header` | `<div>` | Initiates the form field group header. |
|
|
857
|
+
| `.pf-v6-c-form__field-group-header-main` | `<div>` | Initiates the form field group main section. |
|
|
858
|
+
| `.pf-v6-c-form__field-group-header-title` | `<div>` | Initiates the form field group title. |
|
|
859
|
+
| `.pf-v6-c-form__field-group-header-title-text` | `<div>` | Initiates the form field group title text. |
|
|
860
|
+
| `.pf-v6-c-form__field-group-header-description` | `<div>` | Initiates the form field group description. |
|
|
861
|
+
| `.pf-v6-c-form__field-group-header-actions` | `<div>` | Initiates the form field group actions container. |
|
|
862
|
+
| `.pf-v6-c-form__field-group-body` | `<div>` | Initiates the form field group body. |
|
|
863
|
+
| `.pf-m-horizontal{-on-[xs, sm, md, lg, xl, 2xl]}` | `.pf-v6-c-form` | Modifies the form for a horizontal layout at an optional breakpoint. The default breakpoint is `-md`. |
|
|
864
|
+
| `.pf-m-limit-width` | `.pf-v6-c-form` | Limits the overall max-width of the form. Configurable by defining `--pf-v6-c-form--m-limit-width--MaxWidth`. |
|
|
865
|
+
| `.pf-m-info` | `.pf-v6-c-form__group-label` | Modifies the form group label to contain form group label info. |
|
|
866
|
+
| `.pf-m-action` | `.pf-v6-c-form__group` | Modifies form group margin-top. |
|
|
867
|
+
| `.pf-m-disabled` | `.pf-v6-c-form__label` | Modifies form label to show disabled state. |
|
|
868
|
+
| `.pf-m-no-padding-top` | `.pf-v6-c-form__group-label` | Removes top padding from the label element for labels adjacent to an element that isn't a form control. |
|
|
869
|
+
| `.pf-m-inline` | `.pf-v6-c-form__group-control` | Modifies form group children to be inline (this is primarily for radio buttons and checkboxes). |
|
|
870
|
+
| `.pf-m-stack` | `.pf-v6-c-form__group-control` | Modifies form group children to be stacked with space between children. |
|
|
871
|
+
| `.pf-m-expanded` | `.pf-v6-c-form__field-group` | Modifies an expandable field group for the expanded state. |
|
|
872
|
+
| `--pf-v6-c-form--m-limit-width--MaxWidth` | `.pf-v6-c-form.pf-m-limit-width` | Sets a custom `max-width` for a width limited form. |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
id: Form control
|
|
3
3
|
section: components
|
|
4
4
|
subsection: forms
|
|
5
|
-
cssPrefix: pf-
|
|
5
|
+
cssPrefix: pf-v6-c-form-control
|
|
6
6
|
---## Examples
|
|
7
7
|
|
|
8
8
|
### Input
|
|
@@ -461,29 +461,29 @@ cssPrefix: pf-v5-c-form-control
|
|
|
461
461
|
|
|
462
462
|
| Attribute | Applied to | Outcome |
|
|
463
463
|
| -- | -- | -- |
|
|
464
|
-
| `id` | `.pf-
|
|
465
|
-
| `aria-invalid="true"` | `.pf-
|
|
466
|
-
| `aria-label="descriptive text"` | `.pf-
|
|
467
|
-
| `aria-expanded="true"` | `.pf-
|
|
464
|
+
| `id` | `.pf-v6-c-form-control > input`,`.pf-v6-c-form-control > select`, or `.pf-v6-c-form-control > textarea` | 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.
|
|
465
|
+
| `aria-invalid="true"` | `.pf-v6-c-form-control > input`,`.pf-v6-c-form-control > select`, or `.pf-v6-c-form-control > textarea` | Indicates that the form control is in the error state and applies error state styling. Use with `.pf-m-error` on the `.pf-v6-c-form-control` to ensure correct styling. |
|
|
466
|
+
| `aria-label="descriptive text"` | `.pf-v6-c-form-control > input`,`.pf-v6-c-form-control > select`, or `.pf-v6-c-form-control > textarea` | Provides an accessible label for assistive technology. |
|
|
467
|
+
| `aria-expanded="true"` | `.pf-v6-c-form-control > input` | Indicates that clicking in the form control has toggled something else to be expanded. Use with `.pf-m-expanded` on the `.pf-v6-c-form-control` to ensure correct styling. |
|
|
468
468
|
|
|
469
469
|
### Usage
|
|
470
470
|
|
|
471
471
|
| Class | Applied to | Outcome |
|
|
472
472
|
| -- | -- | -- |
|
|
473
|
-
| `.pf-
|
|
474
|
-
| `.pf-
|
|
475
|
-
| `.pf-
|
|
476
|
-
| `.pf-
|
|
477
|
-
| `.pf-m-resize-vertical` | `.pf-
|
|
478
|
-
| `.pf-m-resize-horizontal` | `.pf-
|
|
479
|
-
| `.pf-m-resize-both` | `.pf-
|
|
480
|
-
| `.pf-m-icon` | `.pf-
|
|
481
|
-
| `.pf-m-readonly` | `.pf-
|
|
482
|
-
| `.pf-m-disabled` | `.pf-
|
|
483
|
-
| `.pf-m-success` | `.pf-
|
|
484
|
-
| `.pf-m-warning` | `.pf-
|
|
485
|
-
| `.pf-m-error` | `.pf-
|
|
486
|
-
| `.pf-m-expanded` | `.pf-
|
|
487
|
-
| `.pf-m-placeholder` | `.pf-
|
|
488
|
-
| `.pf-m-plain` | `.pf-
|
|
489
|
-
| `.pf-m-status`| `.pf-
|
|
473
|
+
| `.pf-v6-c-form-control` | `<span>` | Initiates a container for an input, text area or select. For styling of checkboxes or radios see the [checkbox component](/components/forms/checkbox) or [radio component](/components/forms/radio). **Required** |
|
|
474
|
+
| `.pf-v6-c-form-control__utilities` | `<span>` | Initiates a container for elements like icons to be associated with the form control. |
|
|
475
|
+
| `.pf-v6-c-form-control__icon` | `<span>` | Creates a container for an icon associated with a form control. |
|
|
476
|
+
| `.pf-v6-c-form-control__toggle-icon` | `<span>` | Initiates a toggle icon for a form select. |
|
|
477
|
+
| `.pf-m-resize-vertical` | `.pf-v6-c-form-control` | Modifies a form control element containing a text area so it can only be resized vertically. |
|
|
478
|
+
| `.pf-m-resize-horizontal` | `.pf-v6-c-form-control` | Modifies a form control element containing a text area so it can only be resized horizontally. |
|
|
479
|
+
| `.pf-m-resize-both` | `.pf-v6-c-form-control` | Modifies a `.pf-v6-c-form-control` element containing a text area so it resizes in both directions. |
|
|
480
|
+
| `.pf-m-icon` | `.pf-v6-c-form-control` | Modifies a form control to allow for an icon. |
|
|
481
|
+
| `.pf-m-readonly` | `.pf-v6-c-form-control` | Modifies a form control for a readonly input, text area, or select.|
|
|
482
|
+
| `.pf-m-disabled` | `.pf-v6-c-form-control` | Modifies a form control for a disabled input, text area, or select.|
|
|
483
|
+
| `.pf-m-success` | `.pf-v6-c-form-control` | Modifies a form control for the success state. |
|
|
484
|
+
| `.pf-m-warning` | `.pf-v6-c-form-control` | Modifies a form control for the warning state. |
|
|
485
|
+
| `.pf-m-error` | `.pf-v6-c-form-control` | Modifies a form control for the error (invalid) state. |
|
|
486
|
+
| `.pf-m-expanded` | `.pf-v6-c-form-control` | Modifies a form control for the expanded state. This is used when clicking in the text input toggles something open/closed. |
|
|
487
|
+
| `.pf-m-placeholder` | `.pf-v6-c-form-control` | Modifies a form select for placeholder styles. This modifier is set programatically based on the chosen option. |
|
|
488
|
+
| `.pf-m-plain` | `.pf-v6-c-form-control` | Modifies a form control containing an `<input>` or `<textarea>` with a `readonly` attribute to be presented as normal text. |
|
|
489
|
+
| `.pf-m-status`| `.pf-v6-c-form-control__icon` | Modifies a form control icon to show status. |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: 'Helper text'
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-helper-text
|
|
5
5
|
---## Examples
|
|
6
6
|
|
|
7
7
|
### Static
|
|
@@ -188,13 +188,13 @@ cssPrefix: pf-v5-c-helper-text
|
|
|
188
188
|
|
|
189
189
|
| Class | Applied to | Outcome |
|
|
190
190
|
| -- | -- | -- |
|
|
191
|
-
| `.pf-
|
|
192
|
-
| `.pf-
|
|
193
|
-
| `.pf-
|
|
194
|
-
| `.pf-
|
|
195
|
-
| `.pf-m-dynamic` | `.pf-
|
|
196
|
-
| `.pf-m-indeterminate` | `.pf-
|
|
197
|
-
| `.pf-m-warning` | `.pf-
|
|
198
|
-
| `.pf-m-success` | `.pf-
|
|
199
|
-
| `.pf-m-error` | `.pf-
|
|
200
|
-
| `.pf-m-hidden` | `.pf-
|
|
191
|
+
| `.pf-v6-c-helper-text` | `<div>`, `<ul>` | Initiates the helper text component. **Required** |
|
|
192
|
+
| `.pf-v6-c-helper-text__item` | `<div>`, `<li>` | Initiates a helper text item. **Required** |
|
|
193
|
+
| `.pf-v6-c-helper-text__item-icon` | `<span>` | Initiates a helper text item icon. **Required when used in `.pf-v6-c-helper-text__item.pf-m-dynamic`** |
|
|
194
|
+
| `.pf-v6-c-helper-text__item-text` | `<span>` | Initiates a helper text item text. **Required** |
|
|
195
|
+
| `.pf-m-dynamic` | `.pf-v6-c-helper-text__item` | Modifies a helper text item to be dynamic. For use when the item changes state as the form field the text is associated with is updated. |
|
|
196
|
+
| `.pf-m-indeterminate` | `.pf-v6-c-helper-text__item` | Modifies a helper text item for indeterminate state styles. |
|
|
197
|
+
| `.pf-m-warning` | `.pf-v6-c-helper-text__item` | Modifies a helper text item for warning state styles. |
|
|
198
|
+
| `.pf-m-success` | `.pf-v6-c-helper-text__item` | Modifies a helper text item for success state styles. |
|
|
199
|
+
| `.pf-m-error` | `.pf-v6-c-helper-text__item` | Modifies a helper text item for error state styles. |
|
|
200
|
+
| `.pf-m-hidden` | `.pf-v6-c-helper-text` | Hides helper text. |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: 'Hint'
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-hint
|
|
5
5
|
---## Examples
|
|
6
6
|
|
|
7
7
|
### Hint with title
|
|
@@ -228,8 +228,8 @@ cssPrefix: pf-v5-c-hint
|
|
|
228
228
|
|
|
229
229
|
| Class | Applied to | Outcome |
|
|
230
230
|
| -- | -- | -- |
|
|
231
|
-
| `.pf-
|
|
232
|
-
| `.pf-
|
|
233
|
-
| `.pf-
|
|
234
|
-
| `.pf-
|
|
235
|
-
| `.pf-
|
|
231
|
+
| `.pf-v6-c-hint` | `<div>` | Initiates the hint component. **Required** |
|
|
232
|
+
| `.pf-v6-c-hint__title` | `<div>` | Initiates the hint title element. |
|
|
233
|
+
| `.pf-v6-c-hint__body` | `<div>` | Initiates the hint body element. |
|
|
234
|
+
| `.pf-v6-c-hint__footer` | `<div>` | Initiates the hint footer element. |
|
|
235
|
+
| `.pf-v6-c-hint__actions` | `<div>` | Initiates the hint actions element. |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: 'Icon'
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-icon
|
|
5
5
|
---## Examples
|
|
6
6
|
|
|
7
7
|
### Basic
|
|
@@ -311,15 +311,15 @@ Refer to the [icons](/design-foundations/icons) page for information about the P
|
|
|
311
311
|
|
|
312
312
|
| Class | Applied to | Outcome |
|
|
313
313
|
| -- | -- | -- |
|
|
314
|
-
| `.pf-
|
|
315
|
-
| `.pf-
|
|
316
|
-
| `.pf-
|
|
317
|
-
| `.pf-m-inline` | `.pf-
|
|
318
|
-
| `.pf-m-[sm,md,lg,xl,2xl,3xl]` | `.pf-
|
|
319
|
-
| `.pf-m-body-[sm,default,lg]` | `.pf-
|
|
320
|
-
| `.pf-m-heading-[sm,md,lg,xl,2xl,3xl]` | `.pf-
|
|
321
|
-
| `.pf-m-[sm,md,lg,xl,2xl,3xl]` | `.pf-
|
|
322
|
-
| `.pf-m-body-[sm,default,lg]` | `.pf-
|
|
323
|
-
| `.pf-m-heading-[sm,md,lg,xl,2xl,3xl]` | `.pf-
|
|
324
|
-
| `.pf-m-in-progress` | `.pf-
|
|
325
|
-
| `.pf-m-danger`, `.pf-m-warning`, `.pf-m-success`, `.pf-m-info`, `.pf-m-custom` | `.pf-
|
|
314
|
+
| `.pf-v6-c-icon` | `<span>`, `<div>` | Initiates an icon component. **Required** |
|
|
315
|
+
| `.pf-v6-c-icon__content` | `<span>`, `<div>` | Initiates the icon content. **Required** |
|
|
316
|
+
| `.pf-v6-c-icon__progress` | `<span>`, `<div>` | Initiates a container for a progress spinner. |
|
|
317
|
+
| `.pf-m-inline` | `.pf-v6-c-icon` | Displays the icon inline with text, and allows the icon to inherit the size and color of the parent. |
|
|
318
|
+
| `.pf-m-[sm,md,lg,xl,2xl,3xl]` | `.pf-v6-c-icon` | Modifies the icon container to be small, medium, large, extra large, double extra large, or triple extra large. |
|
|
319
|
+
| `.pf-m-body-[sm,default,lg]` | `.pf-v6-c-icon` | Modifies the icon container to be a size matching small, default, or large body text. |
|
|
320
|
+
| `.pf-m-heading-[sm,md,lg,xl,2xl,3xl]` | `.pf-v6-c-icon` | Modifies the icon container to be a size matching small, medium, large, extra large, double extra large, or triple extra large (h6-h1) heading text. |
|
|
321
|
+
| `.pf-m-[sm,md,lg,xl,2xl,3xl]` | `.pf-v6-c-icon__content`, `pf-v6-c-icon__progress` | Modifies the icon content or progress element to be small, medium, large, or extra large. |
|
|
322
|
+
| `.pf-m-body-[sm,default,lg]` | `.pf-v6-c-icon__content` | Modifies the icon content or progress element to be a size matching small, default, or large body text. |
|
|
323
|
+
| `.pf-m-heading-[sm,md,lg,xl,2xl,3xl]` | `.pf-v6-c-icon__content` | Modifies the icon content or progress element to be a size matching small, medium, large, extra large, double extra large, or triple extra large (h6-h1) heading text. |
|
|
324
|
+
| `.pf-m-in-progress` | `.pf-v6-c-icon` | Shows the progress element in place of the icon content. |
|
|
325
|
+
| `.pf-m-danger`, `.pf-m-warning`, `.pf-m-success`, `.pf-m-info`, `.pf-m-custom` | `.pf-v6-c-icon__content` | Modifies the icon content to use a status color. |
|