@patternfly/patternfly 5.0.0-alpha.3 → 5.0.0-alpha.31
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/RELEASE-NOTES.md +17 -0
- package/assets/icons/iconUnicodes.json +1 -0
- package/assets/pficon/pficon.scss +6 -0
- package/assets/pficon/pficon.woff +0 -0
- 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/_fonts.scss +22 -22
- package/base/_globals.scss +1 -1
- package/base/_icons.scss +1 -28
- package/base/_svg-icons.scss +6 -0
- package/base/_variables.scss +1 -1
- package/base/patternfly-common.css +0 -10
- package/base/patternfly-fonts.css +17 -17
- package/base/patternfly-icons.css +6 -20
- package/base/patternfly-pf-icons.css +5 -1
- package/base/themes/dark/_globals.scss +1 -1
- package/base/themes/dark/_variables.scss +1 -1
- package/components/AboutModalBox/about-modal-box.css +7 -7
- package/components/AboutModalBox/about-modal-box.scss +7 -7
- package/components/Accordion/accordion.css +2 -0
- package/components/Accordion/accordion.scss +2 -0
- package/components/Alert/alert.css +3 -3
- package/components/Alert/alert.scss +3 -3
- 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/Banner/banner.css +14 -14
- 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 +20 -21
- package/components/Card/card.scss +22 -26
- 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 +5 -1
- package/components/ContextSelector/context-selector.scss +6 -2
- package/components/DataList/data-list-grid.css +7 -7
- package/components/DataList/data-list-grid.scss +1 -1
- package/components/DataList/data-list.css +12 -11
- package/components/DataList/data-list.scss +5 -4
- 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 +12 -10
- package/components/Dropdown/dropdown.scss +2 -0
- 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 +12 -12
- package/components/Form/form.scss +7 -7
- package/components/FormControl/form-control.css +2 -5
- package/components/FormControl/themes/dark/form-control.scss +2 -6
- package/components/Hint/hint.css +2 -2
- package/components/Hint/hint.scss +2 -2
- package/components/Label/label.css +43 -30
- package/components/Label/label.scss +49 -34
- package/components/LabelGroup/label-group.css +26 -22
- package/components/LabelGroup/label-group.scss +31 -26
- package/components/Login/login.css +11 -11
- package/components/Login/login.scss +10 -10
- package/components/Masthead/masthead.css +4 -4
- 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 +9 -8
- package/components/ModalBox/modal-box.scss +11 -11
- 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 +3 -3
- package/components/NotificationDrawer/notification-drawer.scss +3 -3
- package/components/Page/page.css +71 -71
- package/components/Page/page.scss +12 -12
- package/components/Pagination/pagination.css +2 -2
- package/components/Popover/popover.css +25 -31
- package/components/Popover/popover.scss +27 -32
- package/components/Popover/themes/dark/popover.scss +2 -8
- 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 -4
- package/components/Spinner/spinner.scss +4 -4
- 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 +7 -2
- package/components/Table/table.scss +9 -2
- 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 -1
- package/components/Wizard/wizard.scss +20 -2
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +13 -13
- 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 +19 -19
- package/docs/components/AlertGroup/examples/AlertGroup.md +12 -12
- package/docs/components/AppLauncher/examples/application-launcher.md +51 -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 +4 -4
- 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 +35 -35
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +32 -32
- package/docs/components/Card/examples/Card.md +139 -64
- package/docs/components/Check/examples/Check.md +15 -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 +86 -80
- package/docs/components/DataList/examples/DataList.md +187 -148
- package/docs/components/DatePicker/examples/DatePicker.md +10 -10
- 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 +123 -99
- 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 +8 -8
- package/docs/components/Form/examples/Form.md +64 -64
- package/docs/components/FormControl/examples/FormControl.md +20 -20
- package/docs/components/HelperText/examples/HelperText.md +12 -12
- package/docs/components/Hint/examples/Hint.md +7 -7
- package/docs/components/Icon/examples/Icon.md +10 -10
- package/docs/components/InlineEdit/examples/InlineEdit.md +29 -27
- package/docs/components/InputGroup/examples/InputGroup.md +10 -10
- 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 -73
- package/docs/components/Login/examples/Login.md +32 -32
- package/docs/components/Masthead/examples/masthead.md +9 -9
- package/docs/components/Menu/examples/Menu.md +82 -80
- package/docs/components/MenuToggle/examples/MenuToggle.md +28 -28
- package/docs/components/ModalBox/examples/ModalBox.md +106 -85
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +25 -25
- 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 +44 -44
- package/docs/components/NumberInput/examples/NumberInput.md +12 -12
- package/docs/components/OptionsMenu/examples/options-menu.md +27 -28
- package/docs/components/OverflowMenu/examples/overflow-menu.md +25 -25
- package/docs/components/Page/examples/Page.md +54 -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 +201 -144
- package/docs/components/Progress/examples/Progress.md +31 -60
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +45 -38
- package/docs/components/Radio/examples/Radio.md +11 -11
- package/docs/components/SearchInput/examples/SearchInput.md +34 -34
- package/docs/components/Select/examples/Select.md +367 -313
- 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 +24 -24
- package/docs/components/Spinner/examples/Spinner.md +24 -24
- 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 +3163 -1712
- package/docs/components/Tabs/examples/Tabs.md +149 -149
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +362 -280
- package/docs/components/Tile/examples/Tile.md +15 -15
- 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 +466 -373
- 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 -4
- package/docs/components/Wizard/examples/Wizard.md +119 -127
- package/docs/demos/AboutModal/examples/AboutModal.md +4 -4
- package/docs/demos/Alert/examples/Alert.md +13 -13
- package/docs/demos/BackToTop/examples/BackToTop.md +4 -4
- package/docs/demos/Banner/examples/Banner.md +8 -9
- package/docs/demos/Card/examples/Card.md +219 -156
- package/docs/demos/CardView/examples/CardView.md +56 -29
- package/docs/demos/ContextSelector/examples/ContextSelector.md +18 -18
- package/docs/demos/Dashboard/examples/Dashboard.md +51 -35
- package/docs/demos/DataList/examples/DataList.md +158 -109
- 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 +28 -22
- package/docs/demos/HelperText/examples/HelperText.md +8 -9
- package/docs/demos/JumpLinks/examples/JumpLinks.md +28 -28
- package/docs/demos/Masthead/examples/Masthead.md +29 -32
- 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 +40 -28
- package/docs/demos/Page/examples/Page.md +37 -37
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +32 -33
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +74 -64
- package/docs/demos/Skeleton/examples/Skeleton.md +4 -4
- package/docs/demos/Table/examples/Table.md +2454 -467
- package/docs/demos/Tabs/examples/Tabs.md +141 -90
- package/docs/demos/Toolbar/examples/Toolbar.md +1808 -174
- 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 +4 -4
- package/docs/utilities/Alignment/examples/Alignment.md +6 -6
- package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +12 -12
- package/docs/utilities/BoxShadow/examples/box-shadow.md +22 -22
- package/docs/utilities/Display/examples/Display.md +11 -11
- package/docs/utilities/Flex/examples/Flex.md +34 -34
- package/docs/utilities/Float/examples/Float.md +4 -4
- package/docs/utilities/Sizing/examples/Sizing.md +50 -50
- package/docs/utilities/Spacing/examples/Spacing.md +34 -34
- package/docs/utilities/Text/examples/Text.md +27 -27
- 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 +59 -65
- package/patternfly-base-no-reset.css +23 -47
- package/patternfly-base.css +23 -47
- package/patternfly-no-reset.css +781 -656
- package/patternfly.css +781 -656
- 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/scss-variables.scss +1 -1
- package/sass-utilities/themes/dark/scss-variables.scss +1 -1
- package/utilities/Spacing/spacing.scss +2 -2
- 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
|
@@ -1597,38 +1597,38 @@ cssPrefix: pf-c-calendar-month
|
|
|
1597
1597
|
|
|
1598
1598
|
### Accessibility
|
|
1599
1599
|
|
|
1600
|
-
| Attribute
|
|
1601
|
-
|
|
|
1602
|
-
| `aria-hidden="true"`
|
|
1603
|
-
| `aria-hidden="true"`
|
|
1604
|
-
| `.pf-screen-reader`
|
|
1605
|
-
| `aria-label="[Prev/Next] month"`
|
|
1606
|
-
| `disabled`
|
|
1607
|
-
| `aria-label="[date] [month] [year]"` | `.pf-c-calendar-month__date`
|
|
1600
|
+
| Attribute | Applied to | Outcome |
|
|
1601
|
+
| -- | -- | -- |
|
|
1602
|
+
| `aria-hidden="true"` | `.pf-c-calendar-month__header-nav-control > button > [icon]` | Hides the nav control icon from assistive technologies. **Required** |
|
|
1603
|
+
| `aria-hidden="true"` | `.pf-c-calendar-month__day > span` | Hides the visual day of the month label from assistive technologies. **Required** |
|
|
1604
|
+
| `.pf-screen-reader` | `.pf-c-calendar-month__day > span` | Hides the full day of the month text visually. **Required** |
|
|
1605
|
+
| `aria-label="[Prev/Next] month"` | `.pf-c-calendar-month__header-nav-control` | Provides an accessible label for the nav controls. **Required** |
|
|
1606
|
+
| `disabled` | `.pf-c-calendar-month__date` | Indicates that a date is selected. **Required when the parent is `.pf-c-calendar-month__dates-cell.pf-m-disabled`** |
|
|
1607
|
+
| `aria-label="[date] [month] [year]"` | `.pf-c-calendar-month__date` | Provides an accessible label for the date button. **Required** |
|
|
1608
1608
|
|
|
1609
1609
|
### Usage
|
|
1610
1610
|
|
|
1611
|
-
| Class
|
|
1612
|
-
|
|
|
1613
|
-
| `.pf-c-calendar-month`
|
|
1614
|
-
| `.pf-c-calendar-month__header`
|
|
1615
|
-
| `.pf-c-calendar-month__header-nav-control` | `<div>`
|
|
1616
|
-
| `.pf-c-calendar-month__header-month`
|
|
1617
|
-
| `.pf-c-calendar-month__header-year`
|
|
1618
|
-
| `.pf-c-calendar-month__calendar`
|
|
1619
|
-
| `.pf-c-calendar-month__days`
|
|
1620
|
-
| `.pf-c-calendar-month__days-row`
|
|
1621
|
-
| `.pf-c-calendar-month__day`
|
|
1622
|
-
| `.pf-c-calendar-month__dates`
|
|
1623
|
-
| `.pf-c-calendar-month__dates-row`
|
|
1624
|
-
| `.pf-c-calendar-month__dates-cell`
|
|
1625
|
-
| `.pf-c-calendar-month__date`
|
|
1626
|
-
| `.pf-m-prev-month`
|
|
1627
|
-
| `.pf-m-next-month`
|
|
1628
|
-
| `.pf-m-current`
|
|
1629
|
-
| `.pf-m-selected`
|
|
1630
|
-
| `.pf-m-start-range`
|
|
1631
|
-
| `.pf-m-in-range`
|
|
1632
|
-
| `.pf-m-end-range`
|
|
1633
|
-
| `.pf-m-adjacent-month`
|
|
1634
|
-
| `.pf-m-disabled`
|
|
1611
|
+
| Class | Applied to | Outcome |
|
|
1612
|
+
| -- | -- | -- |
|
|
1613
|
+
| `.pf-c-calendar-month` | `<div>` | Initiates the calendar month component. **Required** |
|
|
1614
|
+
| `.pf-c-calendar-month__header` | `<div>` | Initiates the calendar month header. **Required** |
|
|
1615
|
+
| `.pf-c-calendar-month__header-nav-control` | `<div>` | Initiates a nav control for navigating by month. **Required** |
|
|
1616
|
+
| `.pf-c-calendar-month__header-month` | `<div>` | Initiates the month select. **Required** |
|
|
1617
|
+
| `.pf-c-calendar-month__header-year` | `<div>` | Initiates the year input. **Required** |
|
|
1618
|
+
| `.pf-c-calendar-month__calendar` | `<table>` | Initiates the calendar. **Required** |
|
|
1619
|
+
| `.pf-c-calendar-month__days` | `<thead>` | Initiates the calendar days section. **Required** |
|
|
1620
|
+
| `.pf-c-calendar-month__days-row` | `<tr>` | Initiates the calendar days row. **Required** |
|
|
1621
|
+
| `.pf-c-calendar-month__day` | `<th>` | Initiates a calendar day. **Required** |
|
|
1622
|
+
| `.pf-c-calendar-month__dates` | `<tbody>` | Initiates the calendar dates section. **Required** |
|
|
1623
|
+
| `.pf-c-calendar-month__dates-row` | `<tr>` | Initiates a calendar dates row. **Required** |
|
|
1624
|
+
| `.pf-c-calendar-month__dates-cell` | `<td>` | Initiates a calendar date cell. **Required** |
|
|
1625
|
+
| `.pf-c-calendar-month__date` | `<button>` | Initiates a calendar date. **Required** |
|
|
1626
|
+
| `.pf-m-prev-month` | `.pf-c-calendar-month__header-nav-control` | Indicates a nav control is the previous month. **Required** |
|
|
1627
|
+
| `.pf-m-next-month` | `.pf-c-calendar-month__header-nav-control` | Indicates a nav control is the next month. **Required** |
|
|
1628
|
+
| `.pf-m-current` | `.pf-c-calendar-month__dates-cell` | Indicates a date is the current day. **Required** |
|
|
1629
|
+
| `.pf-m-selected` | `.pf-c-calendar-month__dates-cell` | Indicates a date is selected. |
|
|
1630
|
+
| `.pf-m-start-range` | `.pf-c-calendar-month__dates-cell` | Indicates a date is the start of a range. |
|
|
1631
|
+
| `.pf-m-in-range` | `.pf-c-calendar-month__dates-cell` | Indicates a date is in a range. |
|
|
1632
|
+
| `.pf-m-end-range` | `.pf-c-calendar-month__dates-cell` | Indicates a date is the end of a range. |
|
|
1633
|
+
| `.pf-m-adjacent-month` | `.pf-c-calendar-month__dates-cell` | Indicates a date is in an adjacent month. |
|
|
1634
|
+
| `.pf-m-disabled` | `.pf-c-calendar-month__dates-cell` | Indicates a date is disabled and unavailable. |
|
|
@@ -10,7 +10,9 @@ cssPrefix: pf-c-card
|
|
|
10
10
|
|
|
11
11
|
```html
|
|
12
12
|
<div class="pf-c-card" id="card-basic-example">
|
|
13
|
-
<div class="pf-c-card__title">
|
|
13
|
+
<div class="pf-c-card__title">
|
|
14
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
15
|
+
</div>
|
|
14
16
|
<div class="pf-c-card__body">Body</div>
|
|
15
17
|
<div class="pf-c-card__footer">Footer</div>
|
|
16
18
|
</div>
|
|
@@ -79,7 +81,12 @@ cssPrefix: pf-c-card
|
|
|
79
81
|
</div>
|
|
80
82
|
</div>
|
|
81
83
|
</div>
|
|
82
|
-
<div class="pf-c-card__title"
|
|
84
|
+
<div class="pf-c-card__title">
|
|
85
|
+
<h2
|
|
86
|
+
class="pf-c-card__title-text"
|
|
87
|
+
id="card-action-example-1-check-label"
|
|
88
|
+
>Title</h2>
|
|
89
|
+
</div>
|
|
83
90
|
<div class="pf-c-card__body">Body</div>
|
|
84
91
|
<div class="pf-c-card__footer">Footer</div>
|
|
85
92
|
</div>
|
|
@@ -144,10 +151,14 @@ cssPrefix: pf-c-card
|
|
|
144
151
|
/>
|
|
145
152
|
</div>
|
|
146
153
|
</div>
|
|
147
|
-
<div
|
|
148
|
-
class="pf-c-card__title"
|
|
149
|
-
|
|
150
|
-
|
|
154
|
+
<div class="pf-c-card__header-main">
|
|
155
|
+
<div class="pf-c-card__title">
|
|
156
|
+
<h2
|
|
157
|
+
class="pf-c-card__title-text"
|
|
158
|
+
id="card-action-example-2-check-label"
|
|
159
|
+
>This is a really really really really really really really really really really long title</h2>
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
151
162
|
</div>
|
|
152
163
|
<div class="pf-c-card__body">Body</div>
|
|
153
164
|
<div class="pf-c-card__footer">Footer</div>
|
|
@@ -230,10 +241,12 @@ cssPrefix: pf-c-card
|
|
|
230
241
|
<div class="pf-c-card__actions pf-m-no-offset">
|
|
231
242
|
<button class="pf-c-button pf-m-primary" type="button">Action</button>
|
|
232
243
|
</div>
|
|
233
|
-
<
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
244
|
+
<div class="pf-c-card__header-main">
|
|
245
|
+
<h1
|
|
246
|
+
class="pf-c-title pf-m-2xl"
|
|
247
|
+
id="card-action-no-offset-check-label"
|
|
248
|
+
>This is a card title</h1>
|
|
249
|
+
</div>
|
|
237
250
|
</div>
|
|
238
251
|
<div class="pf-c-card__body">Body</div>
|
|
239
252
|
<div class="pf-c-card__footer">Footer</div>
|
|
@@ -250,7 +263,9 @@ cssPrefix: pf-c-card
|
|
|
250
263
|
<img src="/assets/images/pf_logo.svg" width="300px" alt="Logo" />
|
|
251
264
|
</div>
|
|
252
265
|
</div>
|
|
253
|
-
<div class="pf-c-card__title">
|
|
266
|
+
<div class="pf-c-card__title">
|
|
267
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
268
|
+
</div>
|
|
254
269
|
<div class="pf-c-card__body">Body</div>
|
|
255
270
|
<div class="pf-c-card__footer">Footer</div>
|
|
256
271
|
</div>
|
|
@@ -261,7 +276,9 @@ cssPrefix: pf-c-card
|
|
|
261
276
|
|
|
262
277
|
```html
|
|
263
278
|
<div class="pf-c-card" id="card-no-footer-example">
|
|
264
|
-
<div class="pf-c-card__title">
|
|
279
|
+
<div class="pf-c-card__title">
|
|
280
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
281
|
+
</div>
|
|
265
282
|
<div class="pf-c-card__body">This card has no footer</div>
|
|
266
283
|
</div>
|
|
267
284
|
|
|
@@ -290,7 +307,9 @@ cssPrefix: pf-c-card
|
|
|
290
307
|
|
|
291
308
|
```html
|
|
292
309
|
<div class="pf-c-card" id="card-multiple-body-example">
|
|
293
|
-
<div class="pf-c-card__title">
|
|
310
|
+
<div class="pf-c-card__title">
|
|
311
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
312
|
+
</div>
|
|
294
313
|
<div class="pf-c-card__body">Body</div>
|
|
295
314
|
<div class="pf-c-card__body">Body</div>
|
|
296
315
|
<div class="pf-c-card__body">Body</div>
|
|
@@ -303,7 +322,9 @@ cssPrefix: pf-c-card
|
|
|
303
322
|
|
|
304
323
|
```html
|
|
305
324
|
<div class="pf-c-card" id="card-body-fill-example">
|
|
306
|
-
<div class="pf-c-card__title">
|
|
325
|
+
<div class="pf-c-card__title">
|
|
326
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
327
|
+
</div>
|
|
307
328
|
<div class="pf-c-card__body pf-m-no-fill">Body pf-m-no-fill</div>
|
|
308
329
|
<div class="pf-c-card__body pf-m-no-fill">Body pf-m-no-fill</div>
|
|
309
330
|
<div class="pf-c-card__body">Body</div>
|
|
@@ -316,7 +337,9 @@ cssPrefix: pf-c-card
|
|
|
316
337
|
|
|
317
338
|
```html
|
|
318
339
|
<div class="pf-c-card pf-m-compact" id="card-compact-example">
|
|
319
|
-
<div class="pf-c-card__title">
|
|
340
|
+
<div class="pf-c-card__title">
|
|
341
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
342
|
+
</div>
|
|
320
343
|
<div class="pf-c-card__body">Body</div>
|
|
321
344
|
<div class="pf-c-card__footer">Footer</div>
|
|
322
345
|
</div>
|
|
@@ -327,7 +350,9 @@ cssPrefix: pf-c-card
|
|
|
327
350
|
|
|
328
351
|
```html
|
|
329
352
|
<div class="pf-c-card pf-m-display-lg" id="card-display-lg-example">
|
|
330
|
-
<div class="pf-c-card__title">
|
|
353
|
+
<div class="pf-c-card__title">
|
|
354
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
355
|
+
</div>
|
|
331
356
|
<div class="pf-c-card__body">Body</div>
|
|
332
357
|
<div class="pf-c-card__footer">Footer</div>
|
|
333
358
|
</div>
|
|
@@ -338,7 +363,9 @@ cssPrefix: pf-c-card
|
|
|
338
363
|
|
|
339
364
|
```html
|
|
340
365
|
<div class="pf-c-card pf-m-hoverable-raised" id="card-hoverable-example">
|
|
341
|
-
<div class="pf-c-card__title">
|
|
366
|
+
<div class="pf-c-card__title">
|
|
367
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
368
|
+
</div>
|
|
342
369
|
<div class="pf-c-card__body">Body</div>
|
|
343
370
|
<div class="pf-c-card__footer">Footer</div>
|
|
344
371
|
</div>
|
|
@@ -353,7 +380,9 @@ cssPrefix: pf-c-card
|
|
|
353
380
|
tabindex="0"
|
|
354
381
|
id="card-selectable-example"
|
|
355
382
|
>
|
|
356
|
-
<div class="pf-c-card__title">
|
|
383
|
+
<div class="pf-c-card__title">
|
|
384
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
385
|
+
</div>
|
|
357
386
|
<div class="pf-c-card__body">Body</div>
|
|
358
387
|
<div class="pf-c-card__footer">Footer</div>
|
|
359
388
|
</div>
|
|
@@ -368,7 +397,9 @@ cssPrefix: pf-c-card
|
|
|
368
397
|
tabindex="0"
|
|
369
398
|
id="card-selected-example"
|
|
370
399
|
>
|
|
371
|
-
<div class="pf-c-card__title">
|
|
400
|
+
<div class="pf-c-card__title">
|
|
401
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
402
|
+
</div>
|
|
372
403
|
<div class="pf-c-card__body">Body</div>
|
|
373
404
|
<div class="pf-c-card__footer">Footer</div>
|
|
374
405
|
</div>
|
|
@@ -389,7 +420,9 @@ cssPrefix: pf-c-card
|
|
|
389
420
|
tabindex="0"
|
|
390
421
|
id="card-selectable-with-input-example"
|
|
391
422
|
>
|
|
392
|
-
<div class="pf-c-card__title">
|
|
423
|
+
<div class="pf-c-card__title">
|
|
424
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
425
|
+
</div>
|
|
393
426
|
<div class="pf-c-card__body">Body</div>
|
|
394
427
|
<div class="pf-c-card__footer">Footer</div>
|
|
395
428
|
</div>
|
|
@@ -403,7 +436,9 @@ cssPrefix: pf-c-card
|
|
|
403
436
|
class="pf-c-card pf-m-non-selectable-raised"
|
|
404
437
|
id="card-non-selectable-example"
|
|
405
438
|
>
|
|
406
|
-
<div class="pf-c-card__title">
|
|
439
|
+
<div class="pf-c-card__title">
|
|
440
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
441
|
+
</div>
|
|
407
442
|
<div class="pf-c-card__body">Body</div>
|
|
408
443
|
<div class="pf-c-card__footer">Footer</div>
|
|
409
444
|
</div>
|
|
@@ -414,7 +449,9 @@ cssPrefix: pf-c-card
|
|
|
414
449
|
|
|
415
450
|
```html
|
|
416
451
|
<div class="pf-c-card pf-m-hoverable" id="card-hoverable-legacy-example">
|
|
417
|
-
<div class="pf-c-card__title">
|
|
452
|
+
<div class="pf-c-card__title">
|
|
453
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
454
|
+
</div>
|
|
418
455
|
<div class="pf-c-card__body">Body</div>
|
|
419
456
|
<div class="pf-c-card__footer">Footer</div>
|
|
420
457
|
</div>
|
|
@@ -429,7 +466,9 @@ cssPrefix: pf-c-card
|
|
|
429
466
|
tabindex="0"
|
|
430
467
|
id="card-selectable-legacy-example"
|
|
431
468
|
>
|
|
432
|
-
<div class="pf-c-card__title">
|
|
469
|
+
<div class="pf-c-card__title">
|
|
470
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
471
|
+
</div>
|
|
433
472
|
<div class="pf-c-card__body">Body</div>
|
|
434
473
|
<div class="pf-c-card__footer">Footer</div>
|
|
435
474
|
</div>
|
|
@@ -444,7 +483,9 @@ cssPrefix: pf-c-card
|
|
|
444
483
|
tabindex="0"
|
|
445
484
|
id="card-selected-legacy-example"
|
|
446
485
|
>
|
|
447
|
-
<div class="pf-c-card__title">
|
|
486
|
+
<div class="pf-c-card__title">
|
|
487
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
488
|
+
</div>
|
|
448
489
|
<div class="pf-c-card__body">Body</div>
|
|
449
490
|
<div class="pf-c-card__footer">Footer</div>
|
|
450
491
|
</div>
|
|
@@ -455,7 +496,9 @@ cssPrefix: pf-c-card
|
|
|
455
496
|
|
|
456
497
|
```html
|
|
457
498
|
<div class="pf-c-card pf-m-flat" id="card-flat-example">
|
|
458
|
-
<div class="pf-c-card__title">
|
|
499
|
+
<div class="pf-c-card__title">
|
|
500
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
501
|
+
</div>
|
|
459
502
|
<div class="pf-c-card__body">Body</div>
|
|
460
503
|
<div class="pf-c-card__footer">Footer</div>
|
|
461
504
|
</div>
|
|
@@ -466,7 +509,9 @@ cssPrefix: pf-c-card
|
|
|
466
509
|
|
|
467
510
|
```html
|
|
468
511
|
<div class="pf-c-card pf-m-rounded" id="card-rounded-example">
|
|
469
|
-
<div class="pf-c-card__title">
|
|
512
|
+
<div class="pf-c-card__title">
|
|
513
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
514
|
+
</div>
|
|
470
515
|
<div class="pf-c-card__body">Body</div>
|
|
471
516
|
<div class="pf-c-card__footer">Footer</div>
|
|
472
517
|
</div>
|
|
@@ -477,7 +522,9 @@ cssPrefix: pf-c-card
|
|
|
477
522
|
|
|
478
523
|
```html
|
|
479
524
|
<div class="pf-c-card pf-m-plain" id="card-plain-example">
|
|
480
|
-
<div class="pf-c-card__title">
|
|
525
|
+
<div class="pf-c-card__title">
|
|
526
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
527
|
+
</div>
|
|
481
528
|
<div class="pf-c-card__body">Body</div>
|
|
482
529
|
<div class="pf-c-card__footer">Footer</div>
|
|
483
530
|
</div>
|
|
@@ -555,7 +602,14 @@ cssPrefix: pf-c-card
|
|
|
555
602
|
/>
|
|
556
603
|
</div>
|
|
557
604
|
</div>
|
|
558
|
-
<div class="pf-c-
|
|
605
|
+
<div class="pf-c-card__header-main">
|
|
606
|
+
<div class="pf-c-card__title">
|
|
607
|
+
<h2
|
|
608
|
+
class="pf-c-card__title-text"
|
|
609
|
+
id="card-expandable-example-title"
|
|
610
|
+
>Title</h2>
|
|
611
|
+
</div>
|
|
612
|
+
</div>
|
|
559
613
|
</div>
|
|
560
614
|
</div>
|
|
561
615
|
|
|
@@ -579,11 +633,13 @@ cssPrefix: pf-c-card
|
|
|
579
633
|
</span>
|
|
580
634
|
</button>
|
|
581
635
|
</div>
|
|
582
|
-
<
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
636
|
+
<div class="pf-c-card__header-main">
|
|
637
|
+
<img
|
|
638
|
+
src="/assets/images/pf-logo-small.svg"
|
|
639
|
+
alt="PatternFly logo"
|
|
640
|
+
width="27px"
|
|
641
|
+
/>
|
|
642
|
+
</div>
|
|
587
643
|
<div class="pf-c-card__actions">
|
|
588
644
|
<div class="pf-c-dropdown">
|
|
589
645
|
<button
|
|
@@ -713,7 +769,9 @@ cssPrefix: pf-c-card
|
|
|
713
769
|
/>
|
|
714
770
|
</div>
|
|
715
771
|
</div>
|
|
716
|
-
<div class="pf-c-
|
|
772
|
+
<div class="pf-c-card__header-main">
|
|
773
|
+
<h2 class="pf-c-card__title-text" id="card-expanded-example-title">Title</h2>
|
|
774
|
+
</div>
|
|
717
775
|
</div>
|
|
718
776
|
<div class="pf-c-card__expandable-content">
|
|
719
777
|
<div class="pf-c-card__body">Body</div>
|
|
@@ -781,7 +839,14 @@ cssPrefix: pf-c-card
|
|
|
781
839
|
/>
|
|
782
840
|
</div>
|
|
783
841
|
</div>
|
|
784
|
-
<div class="pf-c-
|
|
842
|
+
<div class="pf-c-card__header-main">
|
|
843
|
+
<div class="pf-c-card__title">
|
|
844
|
+
<h2
|
|
845
|
+
class="pf-c-card__title-text"
|
|
846
|
+
id="card-full-height-example-title""
|
|
847
|
+
>Title</h2>
|
|
848
|
+
</div>
|
|
849
|
+
</div>
|
|
785
850
|
</div>
|
|
786
851
|
<div class="pf-c-card__body">Body</div>
|
|
787
852
|
<div class="pf-c-card__footer">Footer</div>
|
|
@@ -847,7 +912,14 @@ cssPrefix: pf-c-card
|
|
|
847
912
|
/>
|
|
848
913
|
</div>
|
|
849
914
|
</div>
|
|
850
|
-
<div class="pf-c-
|
|
915
|
+
<div class="pf-c-card__header-main">
|
|
916
|
+
<div class="pf-c-card__title">
|
|
917
|
+
<h2
|
|
918
|
+
class="pf-c-card__title-text"
|
|
919
|
+
id="card-toggle-on-right-example-title"
|
|
920
|
+
>Title</h2>
|
|
921
|
+
</div>
|
|
922
|
+
</div>
|
|
851
923
|
<div class="pf-c-card__header-toggle">
|
|
852
924
|
<button
|
|
853
925
|
class="pf-c-button pf-m-plain"
|
|
@@ -870,7 +942,9 @@ cssPrefix: pf-c-card
|
|
|
870
942
|
|
|
871
943
|
```html
|
|
872
944
|
<div class="pf-c-card">
|
|
873
|
-
<div class="pf-c-card__title">
|
|
945
|
+
<div class="pf-c-card__title">
|
|
946
|
+
<h2 class="pf-c-card__title-text">Title</h2>
|
|
947
|
+
</div>
|
|
874
948
|
<hr class="pf-c-divider" />
|
|
875
949
|
<div class="pf-c-card__body">Body</div>
|
|
876
950
|
<hr class="pf-c-divider" />
|
|
@@ -889,30 +963,31 @@ A card is a generic rectangular container that can be used to build other compon
|
|
|
889
963
|
|
|
890
964
|
### Usage
|
|
891
965
|
|
|
892
|
-
| Class
|
|
893
|
-
|
|
|
894
|
-
| `.pf-c-card`
|
|
895
|
-
| `.pf-c-card__title`
|
|
896
|
-
| `.pf-c-
|
|
897
|
-
| `.pf-c-
|
|
898
|
-
| `.pf-c-
|
|
899
|
-
| `.pf-c-card__header
|
|
900
|
-
| `.pf-c-card__header-toggle
|
|
901
|
-
| `.pf-c-
|
|
902
|
-
| `.pf-c-
|
|
903
|
-
| `.pf-c-
|
|
904
|
-
| `.pf-c-
|
|
905
|
-
| `.pf-
|
|
906
|
-
| `.pf-m-
|
|
907
|
-
| `.pf-m-
|
|
908
|
-
| `.pf-m-
|
|
909
|
-
| `.pf-m-
|
|
910
|
-
| `.pf-m-
|
|
911
|
-
| `.pf-m-
|
|
912
|
-
| `.pf-m-
|
|
913
|
-
| `.pf-m-
|
|
914
|
-
| `.pf-m-
|
|
915
|
-
| `.pf-m-
|
|
916
|
-
| `.pf-m-
|
|
917
|
-
| `.pf-m-
|
|
918
|
-
| `.pf-m-
|
|
966
|
+
| Class | Applied | Outcome |
|
|
967
|
+
| ---- | ---- | ---- |
|
|
968
|
+
| `.pf-c-card` | `<div>` | Creates a card component. **Required** |
|
|
969
|
+
| `.pf-c-card__title` | `<div>` | Creates a card title container. |
|
|
970
|
+
| `.pf-c-card__title-text` | `<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>`, `<div>` | Creates a card title text element. |
|
|
971
|
+
| `.pf-c-card__body` | `<div>` | Creates the body of a card. By default, the body element fills the available space in the card. You can use multiple `.pf-c-card__body` elements. |
|
|
972
|
+
| `.pf-c-card__footer` | `<div>` | Creates the footer of a card. |
|
|
973
|
+
| `.pf-c-card__header` | `<div>` | Creates the header of the card where images, actions, and/or the card title can go. |
|
|
974
|
+
| `.pf-c-card__header-toggle` | `<div>` | Creates the expandable card toggle. |
|
|
975
|
+
| `.pf-c-card__header-toggle-icon` | `<span>` | Creates the expandable card toggle icon. |
|
|
976
|
+
| `.pf-c-card__actions` | `<div>` | Creates an actions element to be used in the card header. |
|
|
977
|
+
| `.pf-c-card__header-main` | `<div>` | Creates a wrapper element to be used in the card header when using an image, logo, or text. **Required if `.pf-c-card__header` has content outside of a card header toggle or card header actions** |
|
|
978
|
+
| `.pf-c-card__expandable-content` | `<div>` | Creates the expandable card's expandable content. |
|
|
979
|
+
| `.pf-c-card__sr-input` | `<input>` | Creates an input which, when focused, makes a following `.pf-c-card` appear focused. |
|
|
980
|
+
| `.pf-m-compact` | `.pf-c-card` | Creates a compact variation of the card component that involves smaller font sizes and spacing. This variation is for use on dashboards and where a smaller card is preferred. |
|
|
981
|
+
| `.pf-m-display-lg` | `.pf-c-card` | Creates a large variation of the card component that involves larger font sizes and spacing. This variation is for marketing use cases. |
|
|
982
|
+
| `.pf-m-no-fill` | `.pf-c-card__body` | Sets a `.pf-c-card__body` to not fill the available space in `.pf-c-card`. `.pf-m-no-fill` can be added to multiple card bodies. |
|
|
983
|
+
| `.pf-m-hoverable-raised` | `.pf-c-card` | Modifies the card to include hover styles on `:hover`. |
|
|
984
|
+
| `.pf-m-selectable-raised` | `.pf-c-card` | Modifies a selectable card so that it is selectable. |
|
|
985
|
+
| `.pf-m-selected-raised` | `.pf-c-card.pf-m-selectable-raised` | Modifies a selectable card for the selected state. |
|
|
986
|
+
| `.pf-m-non-selectable-raised` | `.pf-c-card` | Modifies a selectable card so that it is not selectable. |
|
|
987
|
+
| `.pf-m-flat` | `.pf-c-card` | Modifies the card to have a border instead of a shadow. `.pf-m-flat` is for use in layouts where cards are against a white background. |
|
|
988
|
+
| `.pf-m-rounded` | `.pf-c-card` | Modifies the card to have rounded corners. |
|
|
989
|
+
| `.pf-m-plain` | `.pf-c-card` | Modifies the card to have no box shadow and no background color. |
|
|
990
|
+
| `.pf-m-expanded` | `.pf-c-card` | Modifies the card for the expanded state. |
|
|
991
|
+
| `.pf-m-toggle-right` | `.pf-c-card__header` | Modifies the expandable card header toggle to be positioned at flex-end. |
|
|
992
|
+
| `.pf-m-full-height` | `.pf-c-card` | Modifies the card to full height of its parent. |
|
|
993
|
+
| `.pf-m-no-offset` | `.pf-c-card__actions` | Removes the negative vertical margins on the actions element intended to align the action content with the card title. |
|
|
@@ -97,22 +97,18 @@ cssPrefix: pf-c-check
|
|
|
97
97
|
type="checkbox"
|
|
98
98
|
id="check-disabled"
|
|
99
99
|
name="check-disabled"
|
|
100
|
-
disabled
|
|
101
100
|
/>
|
|
102
101
|
|
|
103
|
-
<label
|
|
104
|
-
class="pf-c-check__label pf-m-disabled"
|
|
105
|
-
for="check-disabled"
|
|
106
|
-
>Check disabled</label>
|
|
102
|
+
<label class="pf-c-check__label" for="check-disabled">Check disabled</label>
|
|
107
103
|
</div>
|
|
108
104
|
<div class="pf-c-check">
|
|
109
105
|
<input
|
|
110
106
|
class="pf-c-check__input"
|
|
111
107
|
type="checkbox"
|
|
108
|
+
disabled
|
|
112
109
|
id="check-disabled-2"
|
|
113
110
|
name="check-disabled-2"
|
|
114
111
|
checked
|
|
115
|
-
disabled
|
|
116
112
|
/>
|
|
117
113
|
|
|
118
114
|
<label
|
|
@@ -213,20 +209,20 @@ If you extend this component or modify the styles of this component, then make s
|
|
|
213
209
|
|
|
214
210
|
### Accessibility
|
|
215
211
|
|
|
216
|
-
| Attribute
|
|
217
|
-
|
|
|
212
|
+
| Attribute | Applied to | Outcome |
|
|
213
|
+
| -- | -- | -- |
|
|
218
214
|
| `disabled` | `.pf-c-check__input` | Indicates that the element is unavailable and removes it from keyboard focus. **Required when input is disabled** |
|
|
219
|
-
| `required` | `.pf-c-check__input` | Indicates that the element is required.
|
|
215
|
+
| `required` | `.pf-c-check__input` | Indicates that the element is required. |
|
|
220
216
|
|
|
221
217
|
### Usage
|
|
222
218
|
|
|
223
|
-
| Class
|
|
224
|
-
|
|
|
225
|
-
| `.pf-c-check`
|
|
226
|
-
| `.pf-c-check__input`
|
|
227
|
-
| `.pf-c-check__label`
|
|
228
|
-
| `.pf-c-check__label-required` | `<span>`
|
|
229
|
-
| `.pf-c-check__description`
|
|
230
|
-
| `.pf-c-check__body`
|
|
231
|
-
| `.pf-m-standalone`
|
|
232
|
-
| `.pf-m-disabled`
|
|
219
|
+
| Class | Applied to | Outcome |
|
|
220
|
+
| -- | -- | -- |
|
|
221
|
+
| `.pf-c-check` | `<div>`, `<label>` | Initiates the check component. **Required** |
|
|
222
|
+
| `.pf-c-check__input` | `<input type="checkbox">` | Initiates a check input. **Required** |
|
|
223
|
+
| `.pf-c-check__label` | `<label>`, `<span>` | Initiates a label. **Required** |
|
|
224
|
+
| `.pf-c-check__label-required` | `<span>` | Initiates a required indicator. |
|
|
225
|
+
| `.pf-c-check__description` | `<span>` | Initiates a check description. |
|
|
226
|
+
| `.pf-c-check__body` | `<span>` | Initiates a check body. |
|
|
227
|
+
| `.pf-m-standalone` | `.pf-c-check` | Modifies the check component for use with a standalone `<input type="checkbox">`. **Required when there is no label** |
|
|
228
|
+
| `.pf-m-disabled` | `.pf-c-check__label` | Modifies the check component for the disabled state. **Required when input is disabled** |
|