@patternfly/patternfly 5.0.0-alpha.2 → 5.0.0-alpha.21
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/Table/table.css +4 -0
- package/components/Table/table.scss +4 -0
- 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 +528 -336
- package/patternfly.css +528 -336
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/scss-variables.scss +0 -1
|
@@ -267,7 +267,7 @@ cssPrefix: pf-c-slider
|
|
|
267
267
|
value="50"
|
|
268
268
|
aria-label="Slider value input"
|
|
269
269
|
/>
|
|
270
|
-
<span class="pf-c-input-group__text
|
|
270
|
+
<span class="pf-c-input-group__text">%</span>
|
|
271
271
|
</div>
|
|
272
272
|
</div>
|
|
273
273
|
</div>
|
|
@@ -297,7 +297,7 @@ cssPrefix: pf-c-slider
|
|
|
297
297
|
value="50"
|
|
298
298
|
aria-label="Slider value input"
|
|
299
299
|
/>
|
|
300
|
-
<span class="pf-c-input-group__text
|
|
300
|
+
<span class="pf-c-input-group__text">%</span>
|
|
301
301
|
</div>
|
|
302
302
|
</div>
|
|
303
303
|
</div>
|
|
@@ -329,7 +329,7 @@ cssPrefix: pf-c-slider
|
|
|
329
329
|
value="50"
|
|
330
330
|
aria-label="Slider value input"
|
|
331
331
|
/>
|
|
332
|
-
<span class="pf-c-input-group__text
|
|
332
|
+
<span class="pf-c-input-group__text">%</span>
|
|
333
333
|
</div>
|
|
334
334
|
</div>
|
|
335
335
|
</div>
|
|
@@ -393,7 +393,7 @@ cssPrefix: pf-c-slider
|
|
|
393
393
|
value="50"
|
|
394
394
|
aria-label="Slider value input"
|
|
395
395
|
/>
|
|
396
|
-
<span class="pf-c-input-group__text pf-m-
|
|
396
|
+
<span class="pf-c-input-group__text pf-m-disabled">%</span>
|
|
397
397
|
</div>
|
|
398
398
|
</div>
|
|
399
399
|
</div>
|
|
@@ -429,7 +429,7 @@ cssPrefix: pf-c-slider
|
|
|
429
429
|
value="50"
|
|
430
430
|
aria-label="Slider value input"
|
|
431
431
|
/>
|
|
432
|
-
<span class="pf-c-input-group__text
|
|
432
|
+
<span class="pf-c-input-group__text">%</span>
|
|
433
433
|
</div>
|
|
434
434
|
</div>
|
|
435
435
|
</div>
|
|
@@ -570,7 +570,7 @@ cssPrefix: pf-c-slider
|
|
|
570
570
|
value="50"
|
|
571
571
|
aria-label="Slider value input"
|
|
572
572
|
/>
|
|
573
|
-
<span class="pf-c-input-group__text pf-m-
|
|
573
|
+
<span class="pf-c-input-group__text pf-m-disabled">%</span>
|
|
574
574
|
</div>
|
|
575
575
|
</div>
|
|
576
576
|
</div>
|
|
@@ -581,30 +581,30 @@ cssPrefix: pf-c-slider
|
|
|
581
581
|
|
|
582
582
|
### Accessibility
|
|
583
583
|
|
|
584
|
-
| Attribute
|
|
585
|
-
|
|
|
586
|
-
| `role="slider"`
|
|
587
|
-
| `tabindex="0"`
|
|
588
|
-
| `aria-disabled="true"`
|
|
589
|
-
| `aria-valuemin="[value]"` | `.pf-c-slider__thumb`
|
|
590
|
-
| `aria-valuemax="[value]"` | `.pf-c-slider__thumb`
|
|
591
|
-
| `aria-valuenow="[value]"` | `.pf-c-slider__thumb`
|
|
584
|
+
| Attribute | Applied to | Outcome |
|
|
585
|
+
| -- | -- | -- |
|
|
586
|
+
| `role="slider"` | `.pf-c-slider__thumb` | Identifies the element as a slider. **Required** |
|
|
587
|
+
| `tabindex="0"` | `.pf-c-slider__thumb` | Includes the slider thumb in the page tab sequence. **Note:** only for use with non-disabled slider. **Required** |
|
|
588
|
+
| `aria-disabled="true"` | `.pf-c-slider.pf-m-disabled .pf-c-slider__thumb` | Indicates that the slider thumb is disabled. **Required** |
|
|
589
|
+
| `aria-valuemin="[value]"` | `.pf-c-slider__thumb` | Specifies the minimum value of the slider. **Required** |
|
|
590
|
+
| `aria-valuemax="[value]"` | `.pf-c-slider__thumb` | Specifies the maximum value of the slider. **Required** |
|
|
591
|
+
| `aria-valuenow="[value]"` | `.pf-c-slider__thumb` | Specifies the current value of the slider. **Required** |
|
|
592
592
|
|
|
593
593
|
### Usage
|
|
594
594
|
|
|
595
|
-
| Class
|
|
596
|
-
|
|
|
597
|
-
| `.pf-c-slider`
|
|
598
|
-
| `.pf-c-slider__main`
|
|
599
|
-
| `.pf-c-slider__rail`
|
|
600
|
-
| `.pf-c-slider__rail-track` | `<div>`
|
|
601
|
-
| `.pf-c-slider__steps`
|
|
602
|
-
| `.pf-c-slider__step`
|
|
603
|
-
| `.pf-c-slider__step-tick`
|
|
604
|
-
| `.pf-c-slider__step-label` | `<div>`
|
|
605
|
-
| `.pf-c-slider__thumb`
|
|
606
|
-
| `.pf-c-slider__value`
|
|
607
|
-
| `.pf-c-slider__actions`
|
|
608
|
-
| `.pf-m-disabled`
|
|
609
|
-
| `.pf-m-floating`
|
|
610
|
-
| `--pf-c-slider--value`
|
|
595
|
+
| Class | Applied to | Outcome |
|
|
596
|
+
| -- | -- | -- |
|
|
597
|
+
| `.pf-c-slider` | `<div>` | Initiates the slider component. **Required** |
|
|
598
|
+
| `.pf-c-slider__main` | `<div>` | Initiates the slider main element. **Required** |
|
|
599
|
+
| `.pf-c-slider__rail` | `<div>` | Initiates the slider rail. **Required** |
|
|
600
|
+
| `.pf-c-slider__rail-track` | `<div>` | Initiates the slider rail track. **Required** |
|
|
601
|
+
| `.pf-c-slider__steps` | `<div>` | Initiates the slider steps. |
|
|
602
|
+
| `.pf-c-slider__step` | `<div>` | Initiates a slider step. |
|
|
603
|
+
| `.pf-c-slider__step-tick` | `<div>` | Initiates a slider step tick. |
|
|
604
|
+
| `.pf-c-slider__step-label` | `<div>` | Initiates a slider step label. |
|
|
605
|
+
| `.pf-c-slider__thumb` | `<div>` | Initiates the slider thumb. **Required** |
|
|
606
|
+
| `.pf-c-slider__value` | `<div>` | Initiates the slider value. |
|
|
607
|
+
| `.pf-c-slider__actions` | `<div>` | Initiates the slider actions. |
|
|
608
|
+
| `.pf-m-disabled` | `.pf-c-slider` | Modifies the slider for the disabled state. |
|
|
609
|
+
| `.pf-m-floating` | `.pf-c-slider__thumb` | Modifies the slider value to float above the thumb. |
|
|
610
|
+
| `--pf-c-slider--value` | `.pf-c-slider` | Applies appropriate slider styles based on the current value. **Required** |
|
|
@@ -134,12 +134,12 @@ An inline spinner inherits its font-size, so its size will match the content aro
|
|
|
134
134
|
|
|
135
135
|
### Accessibility
|
|
136
136
|
|
|
137
|
-
| Attribute
|
|
138
|
-
|
|
|
139
|
-
| `role="progressbar"`
|
|
140
|
-
| `aria-label="Loading..."`
|
|
141
|
-
| `aria-labelledby="[id of spinner label]"`
|
|
142
|
-
| `aria-describedby="[id of spinner description]"` | `.pf-c-spinner` | Gives the spinner an accessible description by referring to the element that describes the spinner.
|
|
137
|
+
| Attribute | Applied to | Outcome |
|
|
138
|
+
| -- | -- | -- |
|
|
139
|
+
| `role="progressbar"` | `.pf-c-spinner` | Indicates to assistive technologies that this is an indeterminate progress indicator. |
|
|
140
|
+
| `aria-label="Loading..."` | `.pf-c-spinner` | Provides an accessible name for the spinner. **Note: one of `aria-label` or `aria-labelledby` is required.** |
|
|
141
|
+
| `aria-labelledby="[id of spinner label]"` | `.pf-c-spinner` | Gives the spinner an accessible name by referring to the element that labels the spinner. |
|
|
142
|
+
| `aria-describedby="[id of spinner description]"` | `.pf-c-spinner` | Gives the spinner an accessible description by referring to the element that describes the spinner. |
|
|
143
143
|
|
|
144
144
|
Note: If the spinner is showing that loading of a particular region of a page is in process, the author should use `aria-describedby` to point to the status, and set the `aria-busy` attribute to `true` on the region until it is finished loading.
|
|
145
145
|
|
|
@@ -147,27 +147,27 @@ Note: A [live region](https://developer.mozilla.org/en-US/docs/Web/Accessibility
|
|
|
147
147
|
|
|
148
148
|
### Usage
|
|
149
149
|
|
|
150
|
-
| Class
|
|
151
|
-
|
|
|
152
|
-
| `.pf-c-spinner`
|
|
153
|
-
| `.pf-c-spinner__path`
|
|
154
|
-
| `--pf-c-spinner--diameter` | `.pf-c-spinner` | Modifies the value for `--pf-c-spinner--diameter` declaration.
|
|
150
|
+
| Class | Applied to | Outcome |
|
|
151
|
+
| -- | -- | -- |
|
|
152
|
+
| `.pf-c-spinner` | `<svg>` | Creates a spinner component. The default is an extra large spinner. **Required**|
|
|
153
|
+
| `.pf-c-spinner__path` | `<circle>` | Creates a spinner circle component. **Required**|
|
|
154
|
+
| `--pf-c-spinner--diameter` | `.pf-c-spinner` | Modifies the value for `--pf-c-spinner--diameter` declaration. |
|
|
155
155
|
|
|
156
156
|
### Usage (legacy)
|
|
157
157
|
|
|
158
|
-
| Class
|
|
159
|
-
|
|
|
160
|
-
| `.pf-c-spinner`
|
|
161
|
-
| `.pf-c-spinner__clipper`
|
|
162
|
-
| `.pf-c-spinner__lead-ball` | `<span>`
|
|
163
|
-
| `.pf-c-spinner__tail-ball` | `<span>`
|
|
158
|
+
| Class | Applied to | Outcome |
|
|
159
|
+
| -- | -- | -- |
|
|
160
|
+
| `.pf-c-spinner` | `<span>` | Creates a spinner component. The default is an extra large spinner. **Required**|
|
|
161
|
+
| `.pf-c-spinner__clipper` | `<span>` | Creates the spinning line. **Required**|
|
|
162
|
+
| `.pf-c-spinner__lead-ball` | `<span>` | Rounds out the beginning of the spinning line. **Required**|
|
|
163
|
+
| `.pf-c-spinner__tail-ball` | `<span>` | Rounds out the end of the spinning line. **Required**|
|
|
164
164
|
|
|
165
165
|
### Modifiers
|
|
166
166
|
|
|
167
|
-
| Class
|
|
168
|
-
|
|
|
169
|
-
| `.pf-m-sm`
|
|
170
|
-
| `.pf-m-md`
|
|
171
|
-
| `.pf-m-lg`
|
|
172
|
-
| `.pf-m-xl`
|
|
173
|
-
| `.pf-m-inline` | `.pf-c-spinner` |
|
|
167
|
+
| Class | Applied to | Outcome |
|
|
168
|
+
| -- | -- | -- |
|
|
169
|
+
| `.pf-m-sm` | `.pf-c-spinner` | Creates a small spinner. |
|
|
170
|
+
| `.pf-m-md` | `.pf-c-spinner` | Creates a medium spinner. |
|
|
171
|
+
| `.pf-m-lg` | `.pf-c-spinner` | Creates a large spinner. |
|
|
172
|
+
| `.pf-m-xl` | `.pf-c-spinner` | Creates an extra-large spinner. |
|
|
173
|
+
| `.pf-m-inline` | `.pf-c-spinner` | Creates an inline spinner. |
|
|
@@ -275,25 +275,25 @@ Use checkbox if your user has to perform additional steps for changes to become
|
|
|
275
275
|
|
|
276
276
|
### Accessibility
|
|
277
277
|
|
|
278
|
-
| Attribute
|
|
279
|
-
|
|
|
280
|
-
| `aria-labelledby="..."` or `aria-label="..."` | `.pf-c-switch__input`
|
|
281
|
-
| `for`
|
|
282
|
-
| `id`
|
|
283
|
-
| `id`
|
|
284
|
-
| `checked`
|
|
285
|
-
| `disabled`
|
|
286
|
-
| `aria-hidden="true"`
|
|
278
|
+
| Attribute | Applied to | Outcome |
|
|
279
|
+
| -- | -- | -- |
|
|
280
|
+
| `aria-labelledby="..."` or `aria-label="..."` | `.pf-c-switch__input` | Indicates the action triggered by the switch. If an additional text label is included with the switch besides `.pf-c-switch__label.pf-m-on`, then `aria-labelledby` can reference the `id` of this text, or this text can be used as the value for `aria-label`. If the text included for `.pf-c-switch__label.pf-m-on` provides additional meaning to the primary label that's referenced, then it can also be represented as part of the `aria-labelledby` or `aria-label` attribute. **Required** |
|
|
281
|
+
| `for` | `<label>` | Each `<label>` must have a `for` attribute that matches its input id. **Required** |
|
|
282
|
+
| `id` | `<input type="checkbox">` | Each `<input>` must have an `id` attribute that matches its label's `for` value. **Required** |
|
|
283
|
+
| `id` | `.pf-c-switch__label` | Each `.pf-c-switch__label` must have an `id` attribute that matches the `aria-labelledby` on `.pf-c-switch__input`. |
|
|
284
|
+
| `checked` | `.pf-c-switch__input` | Indicates that the input is checked |
|
|
285
|
+
| `disabled` | `.pf-c-switch__input` | Indicates that the input is disabled |
|
|
286
|
+
| `aria-hidden="true"` | `.pf-c-switch__label` | Hides the text from the screen reader. |
|
|
287
287
|
|
|
288
288
|
### Usage
|
|
289
289
|
|
|
290
|
-
| Class
|
|
291
|
-
|
|
|
292
|
-
| `.pf-c-switch`
|
|
293
|
-
| `.pf-c-switch__input`
|
|
294
|
-
| `.pf-c-switch__toggle`
|
|
295
|
-
| `.pf-c-switch__toggle-icon` | `<span>`
|
|
296
|
-
| `.pf-c-switch__label`
|
|
297
|
-
| `.pf-m-on`
|
|
298
|
-
| `.pf-m-off`
|
|
299
|
-
| `.pf-m-reverse`
|
|
290
|
+
| Class | Applied to | Outcome |
|
|
291
|
+
| -- | -- | -- |
|
|
292
|
+
| `.pf-c-switch` | `<label>` | Initiates a switch. **Required** |
|
|
293
|
+
| `.pf-c-switch__input` | `<input type="checkbox">` | Hide the checkbox inside the switch. **Required** |
|
|
294
|
+
| `.pf-c-switch__toggle` | `<span>` | Initiates the toggle inside the switch. **Required** |
|
|
295
|
+
| `.pf-c-switch__toggle-icon` | `<span>` | Initiates the switch toggle icon wrapper. **Required when the switch is used without a label** |
|
|
296
|
+
| `.pf-c-switch__label` | `<span>` | Initiates a label inside the switch. |
|
|
297
|
+
| `.pf-m-on` | `.pf-c-switch__label` | Modifies the switch label to display the on message. |
|
|
298
|
+
| `.pf-m-off` | `.pf-c-switch__label` | Modifies the switch label to display the off message. |
|
|
299
|
+
| `.pf-m-reverse` | `.pf-c-switch` | Positions the switch toggle to the right of the label. |
|
|
@@ -135,19 +135,19 @@ Tab content should be used with the [tabs component](/components/tabs).
|
|
|
135
135
|
|
|
136
136
|
### Accessibility
|
|
137
137
|
|
|
138
|
-
| Attribute
|
|
139
|
-
|
|
|
140
|
-
| `role="tabpanel"`
|
|
141
|
-
| `aria-labelledby=[ID of tab element]` | `.pf-c-tab-content` | Provides an accessible name for the tab panel by referring to the tab element that controls it. **Required**
|
|
142
|
-
| `id=[ID of tab panel]`
|
|
143
|
-
| `hidden`
|
|
144
|
-
| `tabindex="0"`
|
|
138
|
+
| Attribute | Applied to | Outcome |
|
|
139
|
+
| -- | -- | -- |
|
|
140
|
+
| `role="tabpanel"` | `.pf-c-tab-content` | Indicates that the element serves as a container for a set of tabs. **Required** |
|
|
141
|
+
| `aria-labelledby=[ID of tab element]` | `.pf-c-tab-content` | Provides an accessible name for the tab panel by referring to the tab element that controls it. **Required**
|
|
142
|
+
| `id=[ID of tab panel]` | `.pf-c-tab-content` | Provides an ID for the tab panel, and should be used as the value of `aria-controls` on the tab element that controls the panel. **Required**
|
|
143
|
+
| `hidden` | `.pf-c-tab-content` | Indicates that the tab panel is not visible. **Required on all but the active tab panel**
|
|
144
|
+
| `tabindex="0"` | `.pf-c-tab-content` | Puts the tab panel in the page tab sequence and facilitates movement to panel content for assistive technology users. **Required**
|
|
145
145
|
|
|
146
146
|
### Usage
|
|
147
147
|
|
|
148
|
-
| Class
|
|
149
|
-
|
|
|
150
|
-
| `.pf-c-tab-content`
|
|
151
|
-
| `.pf-c-tab-content__body` | `<div>`
|
|
152
|
-
| `.pf-m-padding`
|
|
153
|
-
| `.pf-m-light-300`
|
|
148
|
+
| Class | Applied to | Outcome |
|
|
149
|
+
| -- | -- | -- |
|
|
150
|
+
| `.pf-c-tab-content` | `<section>` | Initiates the tab content component. **Required** |
|
|
151
|
+
| `.pf-c-tab-content__body` | `<div>` | Initiates the tab content body component. |
|
|
152
|
+
| `.pf-m-padding` | `.pf-c-tab-content__body` | Modifies the tab content body component padding. |
|
|
153
|
+
| `.pf-m-light-300` | `.pf-c-tab-content` | Modifies the tab content component background color. |
|