@patternfly/patternfly 5.0.0-alpha.2 → 5.0.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/RELEASE-NOTES.md +47 -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/_chart-globals.scss +0 -4
- package/base/_common.scss +0 -22
- package/base/patternfly-common.css +0 -10
- package/base/patternfly-icons.css +5 -1
- package/base/patternfly-pf-icons.css +5 -1
- package/components/Accordion/accordion.css +2 -0
- package/components/Accordion/accordion.scss +2 -0
- package/components/AppLauncher/app-launcher.css +2 -0
- package/components/AppLauncher/app-launcher.scss +2 -0
- package/components/Breadcrumb/breadcrumb.css +2 -0
- package/components/Breadcrumb/breadcrumb.scss +2 -0
- package/components/CalendarMonth/calendar-month.css +1 -1
- package/components/CalendarMonth/calendar-month.scss +1 -1
- package/components/Card/card.css +9 -12
- package/components/Card/card.scss +11 -17
- package/components/ChipGroup/chip-group.css +27 -17
- package/components/ChipGroup/chip-group.scss +36 -22
- package/components/Content/content.css +6 -0
- package/components/Content/content.scss +8 -0
- package/components/ContextSelector/context-selector.css +5 -1
- package/components/ContextSelector/context-selector.scss +6 -2
- package/components/DataList/data-list.css +2 -1
- package/components/DataList/data-list.scss +2 -1
- package/components/Drawer/drawer.css +13 -14
- package/components/Drawer/drawer.scss +0 -1
- package/components/Dropdown/dropdown.css +27 -10
- package/components/Dropdown/dropdown.scss +22 -0
- 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/FormControl/form-control.css +1 -1
- package/components/FormControl/themes/dark/form-control.scss +1 -1
- package/components/InputGroup/input-group.css +14 -0
- package/components/InputGroup/input-group.scss +9 -0
- package/components/InputGroup/themes/dark/input-group.scss +8 -0
- package/components/Label/label.css +2 -0
- package/components/Label/label.scss +2 -0
- package/components/LabelGroup/label-group.css +26 -22
- package/components/LabelGroup/label-group.scss +31 -26
- package/components/Login/login.css +1 -1
- package/components/Menu/menu.css +7 -0
- package/components/Menu/menu.scss +8 -0
- package/components/MenuToggle/menu-toggle.css +2 -0
- package/components/MenuToggle/menu-toggle.scss +2 -0
- package/components/ModalBox/modal-box.css +9 -8
- package/components/ModalBox/modal-box.scss +11 -11
- package/components/Page/page.css +60 -60
- package/components/Pagination/pagination.css +122 -2
- package/components/Pagination/pagination.scss +24 -1
- package/components/Popover/popover.css +2 -7
- package/components/Popover/themes/dark/popover.scss +2 -8
- package/components/Progress/progress.css +5 -2
- package/components/Progress/progress.scss +5 -2
- package/components/SearchInput/search-input.css +2 -0
- package/components/SearchInput/search-input.scss +2 -0
- package/components/Slider/slider.css +0 -7
- package/components/Slider/slider.scss +0 -9
- package/components/Table/table-grid.css +28 -28
- package/components/Table/table-tree-view.css +4 -4
- package/components/Tabs/tabs.css +0 -4
- package/components/Tabs/tabs.scss +0 -7
- package/components/TextInputGroup/text-input-group.css +4 -2
- package/components/TextInputGroup/text-input-group.scss +4 -3
- package/components/Toolbar/toolbar.css +65 -37
- package/components/Toolbar/toolbar.scss +37 -3
- 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 +2 -0
- package/components/Wizard/wizard.scss +2 -0
- 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 +61 -44
- package/docs/components/Check/examples/Check.md +15 -19
- package/docs/components/Chip/examples/Chip.md +13 -13
- package/docs/components/ChipGroup/examples/ChipGroup.md +15 -344
- 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 +311 -71
- 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 +24 -24
- package/docs/components/InputGroup/examples/InputGroup.md +10 -9
- package/docs/components/JumpLinks/examples/JumpLinks.md +35 -35
- package/docs/components/Label/examples/Label.md +31 -31
- package/docs/components/LabelGroup/examples/LabelGroup.md +24 -36
- package/docs/components/List/examples/List.md +18 -18
- package/docs/components/LogViewer/examples/LogViewer.md +69 -69
- 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 +129 -30
- package/docs/components/Panel/examples/Panel.md +10 -10
- package/docs/components/Popover/examples/Popover.md +34 -34
- 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 +143 -143
- package/docs/components/Sidebar/examples/Sidebar.md +14 -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 +30 -30
- 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.md +1272 -855
- package/docs/components/Tabs/examples/Tabs.md +149 -149
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +19 -19
- 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 +165 -144
- 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 +63 -70
- 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 +10 -11
- package/docs/demos/Card/examples/Card.md +151 -116
- package/docs/demos/CardView/examples/CardView.md +16 -15
- package/docs/demos/ContextSelector/examples/ContextSelector.md +18 -18
- package/docs/demos/Dashboard/examples/Dashboard.md +10 -9
- package/docs/demos/DataList/examples/DataList.md +160 -111
- package/docs/demos/DescriptionList/examples/DescriptionList.md +12 -13
- package/docs/demos/Drawer/examples/Drawer.md +20 -20
- 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 +32 -35
- package/docs/demos/Modal/examples/Modal.md +54 -66
- package/docs/demos/Nav/examples/Nav.md +720 -767
- 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 +53 -49
- package/docs/demos/Skeleton/examples/Skeleton.md +4 -4
- package/docs/demos/Table/examples/Table.md +522 -378
- package/docs/demos/Tabs/examples/Tabs.md +120 -601
- package/docs/demos/Toolbar/examples/Toolbar.md +1781 -171
- package/docs/demos/Wizard/examples/Wizard.md +229 -225
- 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/Grid/grid.css +5 -5
- package/package.json +59 -64
- package/patternfly-base-no-reset.css +5 -11
- package/patternfly-base.css +5 -11
- package/patternfly-no-reset.css +524 -336
- package/patternfly.css +524 -336
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/scss-variables.scss +0 -1
|
@@ -32,8 +32,8 @@ Always add a modifier class. Never use the class `.pf-c-badge` on its own.
|
|
|
32
32
|
|
|
33
33
|
### Usage
|
|
34
34
|
|
|
35
|
-
| Class
|
|
36
|
-
|
|
|
37
|
-
| `.pf-c-badge`
|
|
38
|
-
| `.pf-m-read`
|
|
39
|
-
| `.pf-m-unread` | `.pf-c-badge` | Applies unread badge styling.
|
|
35
|
+
| Class | Applied to | Outcome |
|
|
36
|
+
| -- | -- | -- |
|
|
37
|
+
| `.pf-c-badge` | `<span>` | Initiates a badge. **Always use with a modifier class.** |
|
|
38
|
+
| `.pf-m-read` | `.pf-c-badge` | Applies read badge styling. |
|
|
39
|
+
| `.pf-m-unread` | `.pf-c-badge` | Applies unread badge styling. |
|
|
@@ -151,11 +151,11 @@ Add a modifier class to the default banner to change the presentation: `.pf-m-bl
|
|
|
151
151
|
|
|
152
152
|
### Usage
|
|
153
153
|
|
|
154
|
-
| Class
|
|
155
|
-
|
|
|
156
|
-
| `.pf-c-banner` | `<div>`
|
|
157
|
-
| `.pf-m-blue`
|
|
158
|
-
| `.pf-m-red`
|
|
159
|
-
| `.pf-m-green`
|
|
160
|
-
| `.pf-m-gold`
|
|
161
|
-
| `.pf-m-sticky` | `.pf-c-banner` |
|
|
154
|
+
| Class | Applied to | Outcome |
|
|
155
|
+
| -- | -- | -- |
|
|
156
|
+
| `.pf-c-banner` | `<div>` | Initiates a banner. **Required** |
|
|
157
|
+
| `.pf-m-blue` | `.pf-c-banner` | Modifies banner for blue styling. |
|
|
158
|
+
| `.pf-m-red` | `.pf-c-banner` | Modifies banner for red styling. |
|
|
159
|
+
| `.pf-m-green` | `.pf-c-banner` | Modifies banner for green styling. |
|
|
160
|
+
| `.pf-m-gold` | `.pf-c-banner` | Modifies banner for gold styling. |
|
|
161
|
+
| `.pf-m-sticky` | `.pf-c-banner` | Modifies banner to be sticky to the top of its container. |
|
|
@@ -50,15 +50,15 @@ Simple brand component.
|
|
|
50
50
|
|
|
51
51
|
### Accessibility
|
|
52
52
|
|
|
53
|
-
| Attribute | Applied to
|
|
54
|
-
|
|
|
55
|
-
| `alt`
|
|
53
|
+
| Attribute | Applied to | Outcome |
|
|
54
|
+
| -- | -- | -- |
|
|
55
|
+
| `alt` | `.pf-c-brand` | The alt attribute specifies an alternate text for an image, if the image cannot be displayed. **Required** |
|
|
56
56
|
|
|
57
57
|
### Usage
|
|
58
58
|
|
|
59
|
-
| Class
|
|
60
|
-
|
|
|
61
|
-
| `.pf-c-brand`
|
|
62
|
-
| `.pf-m-picture`
|
|
63
|
-
| `--pf-c-brand--Width{-on-[breakpoint]}: {width}`
|
|
64
|
-
| `--pf-c-brand--Height{-on-[breakpoint]}: {height}` | `.pf-c-brand`
|
|
59
|
+
| Class | Applied to | Outcome |
|
|
60
|
+
| -- | -- | -- |
|
|
61
|
+
| `.pf-c-brand` | `<img>, <picture>` | Initiates a brand image. **Required** |
|
|
62
|
+
| `.pf-m-picture` | `.pf-c-brand` | Modifies a brand image to a picture. |
|
|
63
|
+
| `--pf-c-brand--Width{-on-[breakpoint]}: {width}` | `.pf-c-brand` | Modifies the width value of a picture on optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
64
|
+
| `--pf-c-brand--Height{-on-[breakpoint]}: {height}` | `.pf-c-brand` | Modifies the height value of a picture on optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
@@ -10,7 +10,7 @@ cssPrefix: pf-c-breadcrumb
|
|
|
10
10
|
|
|
11
11
|
```html
|
|
12
12
|
<nav class="pf-c-breadcrumb" aria-label="breadcrumb">
|
|
13
|
-
<ol class="pf-c-breadcrumb__list">
|
|
13
|
+
<ol class="pf-c-breadcrumb__list" role="list">
|
|
14
14
|
<li class="pf-c-breadcrumb__item">
|
|
15
15
|
<span class="pf-c-breadcrumb__item-divider">
|
|
16
16
|
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
@@ -48,7 +48,7 @@ cssPrefix: pf-c-breadcrumb
|
|
|
48
48
|
|
|
49
49
|
```html
|
|
50
50
|
<nav class="pf-c-breadcrumb" aria-label="breadcrumb">
|
|
51
|
-
<ol class="pf-c-breadcrumb__list">
|
|
51
|
+
<ol class="pf-c-breadcrumb__list" role="list">
|
|
52
52
|
<li class="pf-c-breadcrumb__item">
|
|
53
53
|
<span class="pf-c-breadcrumb__item-divider">
|
|
54
54
|
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
@@ -98,7 +98,7 @@ cssPrefix: pf-c-breadcrumb
|
|
|
98
98
|
|
|
99
99
|
```html
|
|
100
100
|
<nav class="pf-c-breadcrumb" aria-label="breadcrumb">
|
|
101
|
-
<ol class="pf-c-breadcrumb__list">
|
|
101
|
+
<ol class="pf-c-breadcrumb__list" role="list">
|
|
102
102
|
<li class="pf-c-breadcrumb__item">
|
|
103
103
|
<span class="pf-c-breadcrumb__item-divider">
|
|
104
104
|
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
@@ -144,7 +144,7 @@ cssPrefix: pf-c-breadcrumb
|
|
|
144
144
|
|
|
145
145
|
```html
|
|
146
146
|
<nav class="pf-c-breadcrumb" aria-label="breadcrumb">
|
|
147
|
-
<ol class="pf-c-breadcrumb__list">
|
|
147
|
+
<ol class="pf-c-breadcrumb__list" role="list">
|
|
148
148
|
<li class="pf-c-breadcrumb__item">
|
|
149
149
|
<span class="pf-c-breadcrumb__item-divider">
|
|
150
150
|
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
@@ -235,7 +235,7 @@ cssPrefix: pf-c-breadcrumb
|
|
|
235
235
|
|
|
236
236
|
```html
|
|
237
237
|
<nav class="pf-c-breadcrumb" aria-label="breadcrumb">
|
|
238
|
-
<ol class="pf-c-breadcrumb__list">
|
|
238
|
+
<ol class="pf-c-breadcrumb__list" role="list">
|
|
239
239
|
<li class="pf-c-breadcrumb__item">
|
|
240
240
|
<span class="pf-c-breadcrumb__item-divider">
|
|
241
241
|
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
@@ -275,26 +275,26 @@ cssPrefix: pf-c-breadcrumb
|
|
|
275
275
|
|
|
276
276
|
A breadcrumb is a list of links to display a user's navigational hierarchy. The last item of the breadcrumb list indicates the current page's location.
|
|
277
277
|
|
|
278
|
-
|
|
278
|
+
* `.pf-c-breadcrumb__list` is the default breadcrumb navigation. It provides links to previous navigation pages and also shows the current page's location.
|
|
279
279
|
|
|
280
280
|
In the event that a page does not have a traditional `<h1>` page title, a heading can be included in the breadcrumbs and an optional link within.
|
|
281
281
|
|
|
282
282
|
### Accessibility
|
|
283
283
|
|
|
284
|
-
| Attribute
|
|
285
|
-
|
|
|
286
|
-
| `aria-label="[landmark description]"` | `.pf-c-breadcrumb`
|
|
287
|
-
| `aria-label="[link name]"`
|
|
288
|
-
| `aria-current="page"`
|
|
284
|
+
| Attribute | Applied to | Outcome |
|
|
285
|
+
| -- | -- | -- |
|
|
286
|
+
| `aria-label="[landmark description]"` | `.pf-c-breadcrumb` | Describes `<nav>` landmark. |
|
|
287
|
+
| `aria-label="[link name]"` | `.pf-c-breadcrumb__link` | If link has no text (icon), add an aria-label. |
|
|
288
|
+
| `aria-current="page"` | `.pf-c-breadcrumb__item`, `.pf-c-breadcrumb__link` | Indicates the current page within a set of pages. |
|
|
289
289
|
|
|
290
290
|
### Usage
|
|
291
291
|
|
|
292
|
-
| Class
|
|
293
|
-
|
|
|
294
|
-
| `.pf-c-breadcrumb`
|
|
295
|
-
| `.pf-c-breadcrumb__list`
|
|
296
|
-
| `.pf-c-breadcrumb__item`
|
|
297
|
-
| `.pf-c-breadcrumb__item-divider` | `<span>`
|
|
298
|
-
| `.pf-c-breadcrumb__link`
|
|
299
|
-
| `.pf-c-breadcrumb__title`
|
|
300
|
-
| `.pf-m-current`
|
|
292
|
+
| Class | Applied to | Outcome |
|
|
293
|
+
| -- | -- | -- |
|
|
294
|
+
| `.pf-c-breadcrumb` | `<nav>` | Initiates a primary breadcrumb element. **Required** |
|
|
295
|
+
| `.pf-c-breadcrumb__list` | `<ol>` | Initiates default breadcrumb ordered list. |
|
|
296
|
+
| `.pf-c-breadcrumb__item` | `<li>` | Initiates default breadcrumb list item. |
|
|
297
|
+
| `.pf-c-breadcrumb__item-divider` | `<span>` | Initiates default breadcrumb list item divider. |
|
|
298
|
+
| `.pf-c-breadcrumb__link` | `<a>`, `<button>` | Initiates default breadcrumb list link. |
|
|
299
|
+
| `.pf-c-breadcrumb__title` | `<h1>` | Initiates breadcrumb header. |
|
|
300
|
+
| `.pf-m-current` | `.pf-c-breadcrumb__link` | Modifies to display the list item as the current item. |
|
|
@@ -479,41 +479,41 @@ Semantic buttons and links are important for usability as well as accessibility.
|
|
|
479
479
|
|
|
480
480
|
### Accessibility
|
|
481
481
|
|
|
482
|
-
| Attribute
|
|
483
|
-
|
|
|
484
|
-
| `aria-pressed="true or false"`
|
|
485
|
-
| `aria-label="[button label text]"` | `.pf-c-button.pf-m-plain`
|
|
486
|
-
| `aria-label="[descriptive text]"`
|
|
487
|
-
| `disabled`
|
|
488
|
-
| `aria-disabled="true"`
|
|
489
|
-
| `aria-disabled="true"`
|
|
490
|
-
| `aria-expanded="true"`
|
|
491
|
-
| `tabindex="-1"`
|
|
492
|
-
| `tabindex="0"`
|
|
482
|
+
| Attribute | Applied to | Outcome |
|
|
483
|
+
| -- | -- | -- |
|
|
484
|
+
| `aria-pressed="true or false"` | `.pf-c-button` | Indicates that the button is a toggle. When set to "true", `pf-m-active` should also be set so that the button displays in an active state. **Required when button is a toggle** |
|
|
485
|
+
| `aria-label="[button label text]"` | `.pf-c-button.pf-m-plain` | Provides an accessible name for the button when an icon is used instead of text. **Required when icon is used with no supporting text** |
|
|
486
|
+
| `aria-label="[descriptive text]"` | `a.pf-c-button`, `span.pf-c-button.pf-m-link.pf-m-inline` | The button component's text should adequately describe its purpose. If it does not, `aria-label` can provide more detailed interaction information. |
|
|
487
|
+
| `disabled` | `button.pf-c-button` | When a button element is used, indicates that it is unavailable and removes it from keyboard focus. **Required when button is disabled** |
|
|
488
|
+
| `aria-disabled="true"` | `button.pf-c-button` | When a button element is used, indicates that it is unavailable but does not prevent keyboard or hover interactions. Used when a disabled button provides interactive elements like a tooltip. |
|
|
489
|
+
| `aria-disabled="true"` | `a.pf-c-button.pf-m-disabled`, `span.pf-c-button.pf-m-link.pf-m-inline.pf-m-disabled` | When a non-button element is used, indicates that it is unavailable. **Required when element is disabled** |
|
|
490
|
+
| `aria-expanded="true"` | `.pf-c-button.pf-m-expanded` | Indicates that the expanded content element is visible. **Required** |
|
|
491
|
+
| `tabindex="-1"` | `a.pf-c-button.pf-m-disabled`, `span.pf-c-button.pf-m-link.pf-m-inline.pf-m-disabled` | When a non-button element is used, removes it from keyboard focus. **Required when element is disabled** |
|
|
492
|
+
| `tabindex="0"` | `span.pf-c-button.pf-m-link.pf-m-inline` | Inserts the span into the tab order of the page so that it is focusable. **Required when the element is a span** |
|
|
493
493
|
|
|
494
494
|
### Usage
|
|
495
495
|
|
|
496
|
-
| Class
|
|
497
|
-
|
|
|
498
|
-
| `.pf-c-button`
|
|
499
|
-
| `.pf-c-button__icon`
|
|
500
|
-
| `.pf-c-button__progress` | `<span>`
|
|
501
|
-
| `.pf-c-button__count`
|
|
502
|
-
| `.pf-m-primary`
|
|
503
|
-
| `.pf-m-secondary`
|
|
504
|
-
| `.pf-m-tertiary`
|
|
505
|
-
| `.pf-m-danger`
|
|
506
|
-
| `.pf-m-link`
|
|
507
|
-
| `.pf-m-plain`
|
|
508
|
-
| `.pf-m-inline`
|
|
509
|
-
| `.pf-m-block`
|
|
510
|
-
| `.pf-m-control`
|
|
511
|
-
| `.pf-m-expanded`
|
|
512
|
-
| `.pf-m-start`
|
|
513
|
-
| `.pf-m-end`
|
|
514
|
-
| `.pf-m-active`
|
|
515
|
-
| `.pf-m-small`
|
|
516
|
-
| `.pf-m-aria-disabled`
|
|
517
|
-
| `.pf-m-display-lg`
|
|
518
|
-
| `.pf-m-progress`
|
|
519
|
-
| `.pf-m-in-progress`
|
|
496
|
+
| Class | Applied to | Outcome |
|
|
497
|
+
| -- | -- | -- |
|
|
498
|
+
| `.pf-c-button` | `<button>` | Initiates a button. Always use it with a modifier class. **Required** |
|
|
499
|
+
| `.pf-c-button__icon` | `<span>` | Initiates a button icon. |
|
|
500
|
+
| `.pf-c-button__progress` | `<span>` | Initiates a button progress container. |
|
|
501
|
+
| `.pf-c-button__count` | `<span>` | Initiates a button count container. **Note:** Count should only be used on link buttons.|
|
|
502
|
+
| `.pf-m-primary` | `.pf-c-button` | Modifies for primary styles. |
|
|
503
|
+
| `.pf-m-secondary` | `.pf-c-button` | Modifies for secondary styles. |
|
|
504
|
+
| `.pf-m-tertiary` | `.pf-c-button` | Modifies for tertiary styles. |
|
|
505
|
+
| `.pf-m-danger` | `.pf-c-button` | Modifies for danger styles. |
|
|
506
|
+
| `.pf-m-link` | `.pf-c-button` | Modifies for link styles. This button has no background or border and is styled as a link. This button would commonly appear in a form and may include an icon. |
|
|
507
|
+
| `.pf-m-plain` | `.pf-c-button` | Modifies for icon styles. This button has no background or border, uses a standard text color, and is used for `.pf-m-plain` icon buttons such as close, expand, kebab, etc. |
|
|
508
|
+
| `.pf-m-inline` | `.pf-c-button.pf-m-link` | Modifies for inline styles. This button is presented similar to a normal link and has no padding and is displayed inline with other inline content. When used as a `<span>`, the text will flow inline with text around it. |
|
|
509
|
+
| `.pf-m-block` | `.pf-c-button` | Creates a block level button. |
|
|
510
|
+
| `.pf-m-control` | `.pf-c-button` | Modifies for control styles. **Note:** This modifier should only be used when using buttons in the Input Group or Clipboard Copy components. |
|
|
511
|
+
| `.pf-m-expanded` | `.pf-c-button.pf-m-control` | Modifies a control button for the expanded state. |
|
|
512
|
+
| `.pf-m-start` | `.pf-c-button__icon` | Applies right spacing to an icon inside of a button when the icon comes before text. |
|
|
513
|
+
| `.pf-m-end` | `.pf-c-button__icon` | Applies left spacing to an icon inside of a button when the icon comes after text. |
|
|
514
|
+
| `.pf-m-active` | `.pf-c-button` | Forces display of the active state of the button. This modifier should be used when `aria-pressed` is set to true so that the button displays in an active state. |
|
|
515
|
+
| `.pf-m-small` | `.pf-c-button` | Modifies the button so that it has small font size. |
|
|
516
|
+
| `.pf-m-aria-disabled` | `.pf-c-button` | Modifies a button to be visually disabled, yet is still focusable. |
|
|
517
|
+
| `.pf-m-display-lg` | `.pf-c-button`, `pf-c-button.pf-m-link` | Modifies the button and link button for large display styling. For example, use this modifier to achieve "call to action" styles. |
|
|
518
|
+
| `.pf-m-progress` | `.pf-c-button` | Indicates that the button supports the progress state. **Note:** Not used with the plain variation. |
|
|
519
|
+
| `.pf-m-in-progress` | `.pf-c-button` | Indicates that the button is in the in progress state. |
|
|
@@ -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. |
|
|
@@ -144,10 +144,12 @@ cssPrefix: pf-c-card
|
|
|
144
144
|
/>
|
|
145
145
|
</div>
|
|
146
146
|
</div>
|
|
147
|
-
<div
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
<div class="pf-c-card__header-main">
|
|
148
|
+
<div
|
|
149
|
+
class="pf-c-card__title"
|
|
150
|
+
id="card-action-example-2-check-label"
|
|
151
|
+
>This is a really really really really really really really really really really long title</div>
|
|
152
|
+
</div>
|
|
151
153
|
</div>
|
|
152
154
|
<div class="pf-c-card__body">Body</div>
|
|
153
155
|
<div class="pf-c-card__footer">Footer</div>
|
|
@@ -230,10 +232,12 @@ cssPrefix: pf-c-card
|
|
|
230
232
|
<div class="pf-c-card__actions pf-m-no-offset">
|
|
231
233
|
<button class="pf-c-button pf-m-primary" type="button">Action</button>
|
|
232
234
|
</div>
|
|
233
|
-
<
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
235
|
+
<div class="pf-c-card__header-main">
|
|
236
|
+
<h1
|
|
237
|
+
class="pf-c-title pf-m-2xl"
|
|
238
|
+
id="card-action-no-offset-check-label"
|
|
239
|
+
>This is a card title</h1>
|
|
240
|
+
</div>
|
|
237
241
|
</div>
|
|
238
242
|
<div class="pf-c-card__body">Body</div>
|
|
239
243
|
<div class="pf-c-card__footer">Footer</div>
|
|
@@ -555,7 +559,9 @@ cssPrefix: pf-c-card
|
|
|
555
559
|
/>
|
|
556
560
|
</div>
|
|
557
561
|
</div>
|
|
558
|
-
<div class="pf-c-
|
|
562
|
+
<div class="pf-c-card__header-main">
|
|
563
|
+
<div class="pf-c-card__title" id="card-expandable-example-title">Title</div>
|
|
564
|
+
</div>
|
|
559
565
|
</div>
|
|
560
566
|
</div>
|
|
561
567
|
|
|
@@ -579,11 +585,13 @@ cssPrefix: pf-c-card
|
|
|
579
585
|
</span>
|
|
580
586
|
</button>
|
|
581
587
|
</div>
|
|
582
|
-
<
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
588
|
+
<div class="pf-c-card__header-main">
|
|
589
|
+
<img
|
|
590
|
+
src="/assets/images/pf-logo-small.svg"
|
|
591
|
+
alt="PatternFly logo"
|
|
592
|
+
width="27px"
|
|
593
|
+
/>
|
|
594
|
+
</div>
|
|
587
595
|
<div class="pf-c-card__actions">
|
|
588
596
|
<div class="pf-c-dropdown">
|
|
589
597
|
<button
|
|
@@ -713,7 +721,9 @@ cssPrefix: pf-c-card
|
|
|
713
721
|
/>
|
|
714
722
|
</div>
|
|
715
723
|
</div>
|
|
716
|
-
<div class="pf-c-
|
|
724
|
+
<div class="pf-c-card__header-main">
|
|
725
|
+
<div class="pf-c-card__title" id="card-expanded-example-title">Title</div>
|
|
726
|
+
</div>
|
|
717
727
|
</div>
|
|
718
728
|
<div class="pf-c-card__expandable-content">
|
|
719
729
|
<div class="pf-c-card__body">Body</div>
|
|
@@ -781,7 +791,9 @@ cssPrefix: pf-c-card
|
|
|
781
791
|
/>
|
|
782
792
|
</div>
|
|
783
793
|
</div>
|
|
784
|
-
<div class="pf-c-
|
|
794
|
+
<div class="pf-c-card__header-main">
|
|
795
|
+
<div class="pf-c-card__title" id="card-full-height-example-title">Title</div>
|
|
796
|
+
</div>
|
|
785
797
|
</div>
|
|
786
798
|
<div class="pf-c-card__body">Body</div>
|
|
787
799
|
<div class="pf-c-card__footer">Footer</div>
|
|
@@ -847,7 +859,12 @@ cssPrefix: pf-c-card
|
|
|
847
859
|
/>
|
|
848
860
|
</div>
|
|
849
861
|
</div>
|
|
850
|
-
<div class="pf-c-
|
|
862
|
+
<div class="pf-c-card__header-main">
|
|
863
|
+
<div
|
|
864
|
+
class="pf-c-card__title"
|
|
865
|
+
id="card-toggle-on-right-example-title"
|
|
866
|
+
>Title</div>
|
|
867
|
+
</div>
|
|
851
868
|
<div class="pf-c-card__header-toggle">
|
|
852
869
|
<button
|
|
853
870
|
class="pf-c-button pf-m-plain"
|
|
@@ -889,30 +906,30 @@ A card is a generic rectangular container that can be used to build other compon
|
|
|
889
906
|
|
|
890
907
|
### Usage
|
|
891
908
|
|
|
892
|
-
| Class
|
|
893
|
-
|
|
|
894
|
-
| `.pf-c-card`
|
|
895
|
-
| `.pf-c-card__title`
|
|
896
|
-
| `.pf-c-card__body`
|
|
897
|
-
| `.pf-c-card__footer`
|
|
898
|
-
| `.pf-c-card__header`
|
|
899
|
-
| `.pf-c-card__header-toggle`
|
|
900
|
-
| `.pf-c-card__header-toggle-icon` | `<span>`
|
|
901
|
-
| `.pf-c-card__actions`
|
|
902
|
-
| `.pf-c-card__header-main`
|
|
903
|
-
| `.pf-c-card__expandable-content` | `<div>`
|
|
904
|
-
| `.pf-c-card__sr-input`
|
|
905
|
-
| `.pf-m-compact`
|
|
906
|
-
| `.pf-m-display-lg`
|
|
907
|
-
| `.pf-m-no-fill`
|
|
908
|
-
| `.pf-m-hoverable-raised`
|
|
909
|
-
| `.pf-m-selectable-raised`
|
|
910
|
-
| `.pf-m-selected-raised`
|
|
911
|
-
| `.pf-m-non-selectable-raised`
|
|
912
|
-
| `.pf-m-flat`
|
|
913
|
-
| `.pf-m-rounded`
|
|
914
|
-
| `.pf-m-plain`
|
|
915
|
-
| `.pf-m-expanded`
|
|
916
|
-
| `.pf-m-toggle-right`
|
|
917
|
-
| `.pf-m-full-height`
|
|
918
|
-
| `.pf-m-no-offset`
|
|
909
|
+
| Class | Applied | Outcome |
|
|
910
|
+
| ---- | ---- | ---- |
|
|
911
|
+
| `.pf-c-card` | `<div>` | Creates a card component. **Required** |
|
|
912
|
+
| `.pf-c-card__title` | `<div>` | Creates the title of a card. |
|
|
913
|
+
| `.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. |
|
|
914
|
+
| `.pf-c-card__footer` | `<div>` | Creates the footer of a card. |
|
|
915
|
+
| `.pf-c-card__header` | `<div>` | Creates the header of the card where images, actions, and/or the card title can go. |
|
|
916
|
+
| `.pf-c-card__header-toggle` | `<div>` | Creates the expandable card toggle. |
|
|
917
|
+
| `.pf-c-card__header-toggle-icon` | `<span>` | Creates the expandable card toggle icon. |
|
|
918
|
+
| `.pf-c-card__actions` | `<div>` | Creates an actions element to be used in the card header. |
|
|
919
|
+
| `.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** |
|
|
920
|
+
| `.pf-c-card__expandable-content` | `<div>` | Creates the expandable card's expandable content. |
|
|
921
|
+
| `.pf-c-card__sr-input` | `<input>` | Creates an input which, when focused, makes a following `.pf-c-card` appear focused. |
|
|
922
|
+
| `.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. |
|
|
923
|
+
| `.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. |
|
|
924
|
+
| `.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. |
|
|
925
|
+
| `.pf-m-hoverable-raised` | `.pf-c-card` | Modifies the card to include hover styles on `:hover`. |
|
|
926
|
+
| `.pf-m-selectable-raised` | `.pf-c-card` | Modifies a selectable card so that it is selectable. |
|
|
927
|
+
| `.pf-m-selected-raised` | `.pf-c-card.pf-m-selectable-raised` | Modifies a selectable card for the selected state. |
|
|
928
|
+
| `.pf-m-non-selectable-raised` | `.pf-c-card` | Modifies a selectable card so that it is not selectable. |
|
|
929
|
+
| `.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. |
|
|
930
|
+
| `.pf-m-rounded` | `.pf-c-card` | Modifies the card to have rounded corners. |
|
|
931
|
+
| `.pf-m-plain` | `.pf-c-card` | Modifies the card to have no box shadow and no background color. |
|
|
932
|
+
| `.pf-m-expanded` | `.pf-c-card` | Modifies the card for the expanded state. |
|
|
933
|
+
| `.pf-m-toggle-right` | `.pf-c-card__header` | Modifies the expandable card header toggle to be positioned at flex-end. |
|
|
934
|
+
| `.pf-m-full-height` | `.pf-c-card` | Modifies the card to full height of its parent. |
|
|
935
|
+
| `.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** |
|
|
@@ -80,20 +80,20 @@ A Chip is used to display items that have been filtered or selected from a large
|
|
|
80
80
|
|
|
81
81
|
## Accessibility
|
|
82
82
|
|
|
83
|
-
| Attribute
|
|
84
|
-
|
|
|
85
|
-
| `aria-label="[button label text]"`
|
|
83
|
+
| Attribute | Applied to | Outcome |
|
|
84
|
+
| -- | -- | -- |
|
|
85
|
+
| `aria-label="[button label text]"` | `.pf-c-button` | Provides an accessible name for the button when an icon is used instead of text. Required when an icon is used with no supporting text. |
|
|
86
86
|
| `aria-labelledby="[id value of .pf-c-button]"` | `.pf-c-button` | Gives the button an accessible name by referring to the element that provides the position of the button within a list. Required when the button is being removed. |
|
|
87
|
-
| `aria-hidden="true"`
|
|
87
|
+
| `aria-hidden="true"` | `<i>` | Hides the icon from assistive technologies. |
|
|
88
88
|
|
|
89
89
|
## Usage
|
|
90
90
|
|
|
91
|
-
| Class
|
|
92
|
-
|
|
|
93
|
-
| `.pf-c-chip`
|
|
94
|
-
| `.pf-c-chip__text` | `<span>`
|
|
95
|
-
| `.pf-c-chip__icon` | `<span>`
|
|
96
|
-
| `.pf-c-button`
|
|
97
|
-
| `.pf-c-badge`
|
|
98
|
-
| `.pf-m-overflow`
|
|
99
|
-
| `.pf-m-draggable`
|
|
91
|
+
| Class | Applied to | Outcome |
|
|
92
|
+
| -- | -- | -- |
|
|
93
|
+
| `.pf-c-chip` | `<div>`, `<button>`, | Initiates the chip component. Use a `<button>` with overflow chips **Required** |
|
|
94
|
+
| `.pf-c-chip__text` | `<span>` | Initiates the text inside of the chip. **Required** |
|
|
95
|
+
| `.pf-c-chip__icon` | `<span>` | Initiates the icon inside of the chip. |
|
|
96
|
+
| `.pf-c-button` | `.pf-c-chip <button>` | Initiates the button used to remove the chip. |
|
|
97
|
+
| `.pf-c-badge` | `<span>` | Initiates the badge inside the chip. |
|
|
98
|
+
| `.pf-m-overflow` | `button.pf-c-chip` | Applies styling of the overflow chip. |
|
|
99
|
+
| `.pf-m-draggable` | `.pf-c-chip` | Modifies the chip to be in the draggable state. |
|