@patternfly/patternfly 6.0.0-alpha.97 → 6.0.0-alpha.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Card/card.css +1 -0
- package/components/Card/card.scss +1 -0
- package/components/Check/check.css +10 -3
- package/components/Check/check.scss +17 -4
- package/components/Masthead/masthead.css +17 -9
- package/components/Masthead/masthead.scss +18 -9
- package/components/MenuToggle/menu-toggle.css +20 -6
- package/components/MenuToggle/menu-toggle.scss +32 -6
- package/components/ModalBox/modal-box.css +11 -7
- package/components/ModalBox/modal-box.scss +27 -12
- package/components/Nav/nav.css +64 -110
- package/components/Nav/nav.scss +70 -143
- package/components/Page/page.css +9 -17
- package/components/Page/page.scss +10 -23
- package/components/Radio/radio.css +12 -5
- package/components/Radio/radio.scss +21 -6
- package/components/Table/table-grid.css +30 -35
- package/components/Table/table-grid.scss +44 -32
- package/components/Table/table-scrollable.css +14 -6
- package/components/Table/table-scrollable.scss +6 -1
- package/components/Table/table-tree-view.css +5 -5
- package/components/Table/table-tree-view.scss +14 -8
- package/components/Table/table.css +90 -254
- package/components/Table/table.scss +158 -347
- package/components/Toolbar/toolbar.css +66 -2
- package/components/Toolbar/toolbar.scss +21 -2
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +12 -12
- package/docs/components/Accordion/examples/Accordion.md +19 -19
- package/docs/components/ActionList/examples/ActionList.md +5 -5
- package/docs/components/Alert/examples/Alert.md +26 -26
- package/docs/components/AppLauncher/deprecated/application-launcher.md +31 -31
- package/docs/components/Avatar/examples/Avatar.md +8 -8
- package/docs/components/BackToTop/examples/BackToTop.md +3 -3
- package/docs/components/Backdrop/examples/Backdrop.md +3 -3
- package/docs/components/BackgroundImage/examples/BackgroundImage.md +4 -4
- package/docs/components/Badge/examples/Badge.md +6 -6
- package/docs/components/Banner/examples/Banner.md +17 -17
- package/docs/components/Brand/examples/Brand.css +3 -3
- package/docs/components/Brand/examples/Brand.md +7 -7
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +12 -12
- package/docs/components/Button/examples/Button.css +2 -2
- package/docs/components/Button/examples/Button.md +35 -35
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +29 -29
- package/docs/components/Card/examples/Card.md +30 -30
- package/docs/components/Check/examples/Check.md +12 -12
- package/docs/components/Chip/examples/Chip.md +21 -21
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +19 -19
- package/docs/components/CodeBlock/examples/CodeBlock.md +8 -8
- package/docs/components/CodeEditor/examples/CodeEditor.md +14 -14
- package/docs/components/Content/examples/Content.md +5 -5
- package/docs/components/ContextSelector/deprecated/context-selector.md +23 -23
- package/docs/components/DataList/examples/DataList.md +177 -112
- package/docs/components/DatePicker/examples/DatePicker.md +10 -10
- package/docs/components/DescriptionList/examples/DescriptionList.md +29 -29
- package/docs/components/Divider/examples/Divider.md +7 -7
- package/docs/components/DragDrop/examples/DragDrop.md +5 -5
- package/docs/components/Drawer/examples/Drawer.md +36 -36
- package/docs/components/Dropdown/deprecated/Dropdown.css +1 -1
- package/docs/components/Dropdown/deprecated/Dropdown.md +47 -47
- package/docs/components/DualListSelector/examples/DualListSelector.md +41 -41
- package/docs/components/EmptyState/examples/EmptyState.md +21 -21
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +18 -18
- package/docs/components/FileUpload/examples/FileUpload.md +8 -8
- package/docs/components/Form/examples/Form.md +52 -52
- package/docs/components/FormControl/examples/FormControl.md +22 -22
- package/docs/components/HelperText/examples/HelperText.md +11 -11
- package/docs/components/Hint/examples/Hint.md +6 -6
- package/docs/components/Icon/examples/Icon.md +13 -13
- package/docs/components/InlineEdit/examples/InlineEdit.md +54 -138
- package/docs/components/InputGroup/examples/InputGroup.md +10 -10
- package/docs/components/JumpLinks/examples/JumpLinks.md +19 -19
- package/docs/components/Label/examples/Label.css +4 -4
- package/docs/components/Label/examples/Label.md +45 -45
- package/docs/components/List/examples/List.md +6 -6
- package/docs/components/LogViewer/examples/LogViewer.css +2 -2
- package/docs/components/LogViewer/examples/LogViewer.md +35 -35
- package/docs/components/Login/examples/Login.md +21 -21
- package/docs/components/Masthead/examples/masthead.md +7 -7
- package/docs/components/Menu/examples/Menu.md +60 -60
- package/docs/components/MenuToggle/examples/MenuToggle.md +106 -22
- package/docs/components/ModalBox/examples/ModalBox.md +75 -34
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +21 -21
- package/docs/components/Nav/examples/Navigation.css +20 -3
- package/docs/components/Nav/examples/Navigation.md +44 -50
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +8 -8
- package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +36 -36
- package/docs/components/NumberInput/examples/NumberInput.md +13 -13
- package/docs/components/OptionsMenu/deprecated/options-menu.md +22 -22
- package/docs/components/OverflowMenu/examples/overflow-menu.md +20 -20
- package/docs/components/Page/deprecated/PageHeader.md +30 -30
- package/docs/components/Page/examples/Page.md +55 -54
- package/docs/components/Pagination/examples/Pagination.md +25 -25
- package/docs/components/Panel/examples/Panel.md +10 -10
- package/docs/components/Popover/examples/Popover.md +30 -30
- package/docs/components/Progress/examples/Progress.md +31 -31
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +17 -17
- package/docs/components/Radio/examples/Radio.md +9 -9
- package/docs/components/Select/deprecated/Select.md +110 -110
- package/docs/components/Sidebar/examples/Sidebar.md +16 -16
- package/docs/components/SimpleList/examples/SimpleList.md +9 -9
- package/docs/components/Skeleton/examples/Skeleton.md +14 -14
- package/docs/components/SkipToContent/examples/SkipToContent.md +4 -4
- package/docs/components/Slider/examples/Slider.md +33 -33
- package/docs/components/Spinner/examples/Spinner.md +14 -14
- package/docs/components/Switch/examples/Switch.md +14 -14
- package/docs/components/TabContent/examples/TabContent.md +10 -10
- package/docs/components/Table/examples/Table.md +5395 -15077
- package/docs/components/Tabs/examples/Tabs.md +39 -39
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +1 -1
- package/docs/components/Tile/examples/Tile.md +12 -12
- package/docs/components/Timestamp/examples/Timestamp.md +4 -4
- package/docs/components/Title/examples/Title.md +20 -20
- package/docs/components/ToggleGroup/examples/toggle-group.md +10 -10
- package/docs/components/Toolbar/examples/Toolbar.md +57 -57
- package/docs/components/Tooltip/examples/Tooltip.md +9 -9
- package/docs/components/TreeView/examples/TreeView.md +31 -31
- package/docs/components/Truncate/examples/Truncate.md +8 -8
- package/docs/components/Wizard/examples/Wizard.md +46 -46
- package/docs/demos/Banner/examples/Banner.md +1 -1
- package/docs/demos/Card/examples/Card.md +12 -19
- package/docs/demos/DataList/examples/DataList.md +179 -280
- package/docs/demos/DescriptionList/examples/DescriptionList.md +6 -0
- package/docs/demos/Masthead/examples/Masthead.md +4 -8
- package/docs/demos/Nav/examples/Nav.md +45 -149
- package/docs/demos/Page/examples/Page.md +3 -37
- package/docs/demos/Page/examples/Penta.md +119 -40
- package/docs/demos/Table/examples/Table.md +1531 -4970
- package/docs/demos/Tabs/examples/Tabs.md +118 -174
- package/docs/demos/Toolbar/examples/Toolbar.md +220 -600
- package/docs/layouts/Bullseye/examples/Bullseye.md +3 -3
- package/docs/layouts/Flex/examples/Flex.md +76 -76
- package/docs/layouts/Gallery/examples/Gallery.md +6 -6
- package/docs/layouts/Grid/examples/Grid.md +8 -8
- package/docs/layouts/Level/examples/Level.md +4 -4
- package/docs/layouts/Split/examples/Split.md +6 -6
- package/docs/layouts/Stack/examples/Stack.md +5 -5
- package/docs/utilities/Accessibility/examples/Accessibility.md +2 -2
- package/docs/utilities/Alignment/examples/Alignment.md +4 -4
- package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +10 -10
- package/docs/utilities/BoxShadow/examples/box-shadow.md +20 -20
- package/docs/utilities/Display/examples/Display.md +9 -9
- package/docs/utilities/Flex/examples/Flex.md +32 -32
- package/docs/utilities/Float/examples/Float.md +2 -2
- package/docs/utilities/Sizing/examples/Sizing.md +41 -41
- package/docs/utilities/Spacing/examples/Spacing.md +11 -11
- package/docs/utilities/Text/examples/Text.md +28 -28
- package/package.json +2 -1
- package/patternfly-no-globals.css +363 -465
- package/patternfly-theme-dark-unversioned.css +363 -465
- package/patternfly.css +363 -465
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/components/Table/themes/dark/table.scss +0 -16
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: 'Slider'
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-slider
|
|
5
5
|
---## Examples
|
|
6
6
|
|
|
7
7
|
### Discrete
|
|
8
8
|
|
|
9
9
|
```html
|
|
10
|
-
<div class="pf-v6-c-slider" style="--pf-
|
|
10
|
+
<div class="pf-v6-c-slider" style="--pf-v6-c-slider--value: 62.5%;">
|
|
11
11
|
<div class="pf-v6-c-slider__main">
|
|
12
12
|
<div class="pf-v6-c-slider__rail">
|
|
13
13
|
<div class="pf-v6-c-slider__rail-track"></div>
|
|
@@ -90,7 +90,7 @@ cssPrefix: pf-v5-c-slider
|
|
|
90
90
|
### Continuous
|
|
91
91
|
|
|
92
92
|
```html
|
|
93
|
-
<div class="pf-v6-c-slider" style="--pf-
|
|
93
|
+
<div class="pf-v6-c-slider" style="--pf-v6-c-slider--value: 50%;">
|
|
94
94
|
<div class="pf-v6-c-slider__main">
|
|
95
95
|
<div class="pf-v6-c-slider__rail">
|
|
96
96
|
<div class="pf-v6-c-slider__rail-track"></div>
|
|
@@ -107,7 +107,7 @@ cssPrefix: pf-v5-c-slider
|
|
|
107
107
|
</div>
|
|
108
108
|
</div>
|
|
109
109
|
|
|
110
|
-
<div class="pf-v6-c-slider" style="--pf-
|
|
110
|
+
<div class="pf-v6-c-slider" style="--pf-v6-c-slider--value: 50%;">
|
|
111
111
|
<div class="pf-v6-c-slider__main">
|
|
112
112
|
<div class="pf-v6-c-slider__rail">
|
|
113
113
|
<div class="pf-v6-c-slider__rail-track"></div>
|
|
@@ -147,7 +147,7 @@ cssPrefix: pf-v5-c-slider
|
|
|
147
147
|
```html
|
|
148
148
|
<div
|
|
149
149
|
class="pf-v6-c-slider"
|
|
150
|
-
style="--pf-
|
|
150
|
+
style="--pf-v6-c-slider--value: 62.5%; --pf-v6-c-slider__value--c-form-control--width-chars: 1;"
|
|
151
151
|
>
|
|
152
152
|
<div class="pf-v6-c-slider__main">
|
|
153
153
|
<div class="pf-v6-c-slider__rail">
|
|
@@ -233,7 +233,7 @@ cssPrefix: pf-v5-c-slider
|
|
|
233
233
|
|
|
234
234
|
<br />
|
|
235
235
|
|
|
236
|
-
<div class="pf-v6-c-slider" style="--pf-
|
|
236
|
+
<div class="pf-v6-c-slider" style="--pf-v6-c-slider--value: 50%;">
|
|
237
237
|
<div class="pf-v6-c-slider__main">
|
|
238
238
|
<div class="pf-v6-c-slider__rail">
|
|
239
239
|
<div class="pf-v6-c-slider__rail-track"></div>
|
|
@@ -299,7 +299,7 @@ cssPrefix: pf-v5-c-slider
|
|
|
299
299
|
|
|
300
300
|
<br />
|
|
301
301
|
|
|
302
|
-
<div class="pf-v6-c-slider" style="--pf-
|
|
302
|
+
<div class="pf-v6-c-slider" style="--pf-v6-c-slider--value: 50%;">
|
|
303
303
|
<div class="pf-v6-c-slider__main">
|
|
304
304
|
<div class="pf-v6-c-slider__rail">
|
|
305
305
|
<div class="pf-v6-c-slider__rail-track"></div>
|
|
@@ -333,7 +333,7 @@ cssPrefix: pf-v5-c-slider
|
|
|
333
333
|
### Thumb value input
|
|
334
334
|
|
|
335
335
|
```html
|
|
336
|
-
<div class="pf-v6-c-slider" style="--pf-
|
|
336
|
+
<div class="pf-v6-c-slider" style="--pf-v6-c-slider--value: 50%;">
|
|
337
337
|
<div class="pf-v6-c-slider__main">
|
|
338
338
|
<div class="pf-v6-c-slider__rail">
|
|
339
339
|
<div class="pf-v6-c-slider__rail-track"></div>
|
|
@@ -367,7 +367,7 @@ cssPrefix: pf-v5-c-slider
|
|
|
367
367
|
### Actions
|
|
368
368
|
|
|
369
369
|
```html
|
|
370
|
-
<div class="pf-v6-c-slider" style="--pf-
|
|
370
|
+
<div class="pf-v6-c-slider" style="--pf-v6-c-slider--value: 50%;">
|
|
371
371
|
<div class="pf-v6-c-slider__actions">
|
|
372
372
|
<button class="pf-v6-c-button pf-m-plain" type="button" aria-label="Minus">
|
|
373
373
|
<i class="fas fa-fw fa-minus" aria-hidden="true"></i>
|
|
@@ -397,7 +397,7 @@ cssPrefix: pf-v5-c-slider
|
|
|
397
397
|
<br />
|
|
398
398
|
<br />
|
|
399
399
|
|
|
400
|
-
<div class="pf-v6-c-slider" style="--pf-
|
|
400
|
+
<div class="pf-v6-c-slider" style="--pf-v6-c-slider--value: 50%;">
|
|
401
401
|
<div class="pf-v6-c-slider__main">
|
|
402
402
|
<div class="pf-v6-c-slider__rail">
|
|
403
403
|
<div class="pf-v6-c-slider__rail-track"></div>
|
|
@@ -439,7 +439,7 @@ cssPrefix: pf-v5-c-slider
|
|
|
439
439
|
<br />
|
|
440
440
|
<br />
|
|
441
441
|
|
|
442
|
-
<div class="pf-v6-c-slider" style="--pf-
|
|
442
|
+
<div class="pf-v6-c-slider" style="--pf-v6-c-slider--value: 50%;">
|
|
443
443
|
<div class="pf-v6-c-slider__main">
|
|
444
444
|
<div class="pf-v6-c-slider__rail">
|
|
445
445
|
<div class="pf-v6-c-slider__rail-track"></div>
|
|
@@ -480,7 +480,7 @@ cssPrefix: pf-v5-c-slider
|
|
|
480
480
|
```html
|
|
481
481
|
<div
|
|
482
482
|
class="pf-v6-c-slider pf-m-disabled"
|
|
483
|
-
style="--pf-
|
|
483
|
+
style="--pf-v6-c-slider--value: 62.5%;"
|
|
484
484
|
>
|
|
485
485
|
<div class="pf-v6-c-slider__main">
|
|
486
486
|
<div class="pf-v6-c-slider__rail">
|
|
@@ -562,7 +562,7 @@ cssPrefix: pf-v5-c-slider
|
|
|
562
562
|
<br />
|
|
563
563
|
<br />
|
|
564
564
|
|
|
565
|
-
<div class="pf-v6-c-slider pf-m-disabled" style="--pf-
|
|
565
|
+
<div class="pf-v6-c-slider pf-m-disabled" style="--pf-v6-c-slider--value: 50%;">
|
|
566
566
|
<div class="pf-v6-c-slider__main">
|
|
567
567
|
<div class="pf-v6-c-slider__rail">
|
|
568
568
|
<div class="pf-v6-c-slider__rail-track"></div>
|
|
@@ -639,28 +639,28 @@ cssPrefix: pf-v5-c-slider
|
|
|
639
639
|
|
|
640
640
|
| Attribute | Applied to | Outcome |
|
|
641
641
|
| -- | -- | -- |
|
|
642
|
-
| `role="slider"` | `.pf-
|
|
643
|
-
| `tabindex="0"` | `.pf-
|
|
644
|
-
| `aria-disabled="true"` | `.pf-
|
|
645
|
-
| `aria-valuemin="[value]"` | `.pf-
|
|
646
|
-
| `aria-valuemax="[value]"` | `.pf-
|
|
647
|
-
| `aria-valuenow="[value]"` | `.pf-
|
|
642
|
+
| `role="slider"` | `.pf-v6-c-slider__thumb` | Identifies the element as a slider. **Required** |
|
|
643
|
+
| `tabindex="0"` | `.pf-v6-c-slider__thumb` | Includes the slider thumb in the page tab sequence. **Note:** only for use with non-disabled slider. **Required** |
|
|
644
|
+
| `aria-disabled="true"` | `.pf-v6-c-slider.pf-m-disabled .pf-v6-c-slider__thumb` | Indicates that the slider thumb is disabled. **Required** |
|
|
645
|
+
| `aria-valuemin="[value]"` | `.pf-v6-c-slider__thumb` | Specifies the minimum value of the slider. **Required** |
|
|
646
|
+
| `aria-valuemax="[value]"` | `.pf-v6-c-slider__thumb` | Specifies the maximum value of the slider. **Required** |
|
|
647
|
+
| `aria-valuenow="[value]"` | `.pf-v6-c-slider__thumb` | Specifies the current value of the slider. **Required** |
|
|
648
648
|
|
|
649
649
|
### Usage
|
|
650
650
|
|
|
651
651
|
| Class | Applied to | Outcome |
|
|
652
652
|
| -- | -- | -- |
|
|
653
|
-
| `.pf-
|
|
654
|
-
| `.pf-
|
|
655
|
-
| `.pf-
|
|
656
|
-
| `.pf-
|
|
657
|
-
| `.pf-
|
|
658
|
-
| `.pf-
|
|
659
|
-
| `.pf-
|
|
660
|
-
| `.pf-
|
|
661
|
-
| `.pf-
|
|
662
|
-
| `.pf-
|
|
663
|
-
| `.pf-
|
|
664
|
-
| `.pf-m-disabled` | `.pf-
|
|
665
|
-
| `.pf-m-floating` | `.pf-
|
|
666
|
-
| `--pf-
|
|
653
|
+
| `.pf-v6-c-slider` | `<div>` | Initiates the slider component. **Required** |
|
|
654
|
+
| `.pf-v6-c-slider__main` | `<div>` | Initiates the slider main element. **Required** |
|
|
655
|
+
| `.pf-v6-c-slider__rail` | `<div>` | Initiates the slider rail. **Required** |
|
|
656
|
+
| `.pf-v6-c-slider__rail-track` | `<div>` | Initiates the slider rail track. **Required** |
|
|
657
|
+
| `.pf-v6-c-slider__steps` | `<div>` | Initiates the slider steps. |
|
|
658
|
+
| `.pf-v6-c-slider__step` | `<div>` | Initiates a slider step. |
|
|
659
|
+
| `.pf-v6-c-slider__step-tick` | `<div>` | Initiates a slider step tick. |
|
|
660
|
+
| `.pf-v6-c-slider__step-label` | `<div>` | Initiates a slider step label. |
|
|
661
|
+
| `.pf-v6-c-slider__thumb` | `<div>` | Initiates the slider thumb. **Required** |
|
|
662
|
+
| `.pf-v6-c-slider__value` | `<div>` | Initiates the slider value. |
|
|
663
|
+
| `.pf-v6-c-slider__actions` | `<div>` | Initiates the slider actions. |
|
|
664
|
+
| `.pf-m-disabled` | `.pf-v6-c-slider` | Modifies the slider for the disabled state. |
|
|
665
|
+
| `.pf-m-floating` | `.pf-v6-c-slider__thumb` | Modifies the slider value to float above the thumb. |
|
|
666
|
+
| `--pf-v6-c-slider--value` | `.pf-v6-c-slider` | Applies appropriate slider styles based on the current value. **Required** |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Spinner
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-spinner
|
|
5
5
|
---## Examples
|
|
6
6
|
|
|
7
7
|
### Basic
|
|
@@ -83,7 +83,7 @@ An inline spinner inherits its font-size, so its size will match the content aro
|
|
|
83
83
|
role="progressbar"
|
|
84
84
|
viewBox="0 0 100 100"
|
|
85
85
|
aria-label="Loading..."
|
|
86
|
-
style="--pf-
|
|
86
|
+
style="--pf-v6-c-spinner--diameter: 80px;"
|
|
87
87
|
>
|
|
88
88
|
<circle class="pf-v6-c-spinner__path" cx="50" cy="50" r="45" fill="none" />
|
|
89
89
|
</svg>
|
|
@@ -96,10 +96,10 @@ An inline spinner inherits its font-size, so its size will match the content aro
|
|
|
96
96
|
|
|
97
97
|
| Attribute | Applied to | Outcome |
|
|
98
98
|
| -- | -- | -- |
|
|
99
|
-
| `role="progressbar"` | `.pf-
|
|
100
|
-
| `aria-label="Loading..."` | `.pf-
|
|
101
|
-
| `aria-labelledby="[id of spinner label]"` | `.pf-
|
|
102
|
-
| `aria-describedby="[id of spinner description]"` | `.pf-
|
|
99
|
+
| `role="progressbar"` | `.pf-v6-c-spinner` | Indicates to assistive technologies that this is an indeterminate progress indicator. |
|
|
100
|
+
| `aria-label="Loading..."` | `.pf-v6-c-spinner` | Provides an accessible name for the spinner. **Note: one of `aria-label` or `aria-labelledby` is required.** |
|
|
101
|
+
| `aria-labelledby="[id of spinner label]"` | `.pf-v6-c-spinner` | Gives the spinner an accessible name by referring to the element that labels the spinner. |
|
|
102
|
+
| `aria-describedby="[id of spinner description]"` | `.pf-v6-c-spinner` | Gives the spinner an accessible description by referring to the element that describes the spinner. |
|
|
103
103
|
|
|
104
104
|
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.
|
|
105
105
|
|
|
@@ -109,16 +109,16 @@ Note: A [live region](https://developer.mozilla.org/en-US/docs/Web/Accessibility
|
|
|
109
109
|
|
|
110
110
|
| Class | Applied to | Outcome |
|
|
111
111
|
| -- | -- | -- |
|
|
112
|
-
| `.pf-
|
|
113
|
-
| `.pf-
|
|
114
|
-
| `--pf-
|
|
112
|
+
| `.pf-v6-c-spinner` | `<svg>` | Creates a spinner component. The default is an extra large spinner. **Required**|
|
|
113
|
+
| `.pf-v6-c-spinner__path` | `<circle>` | Creates a spinner circle component. **Required**|
|
|
114
|
+
| `--pf-v6-c-spinner--diameter` | `.pf-v6-c-spinner` | Modifies the value for `--pf-v6-c-spinner--diameter` declaration. |
|
|
115
115
|
|
|
116
116
|
### Modifiers
|
|
117
117
|
|
|
118
118
|
| Class | Applied to | Outcome |
|
|
119
119
|
| -- | -- | -- |
|
|
120
|
-
| `.pf-m-sm` | `.pf-
|
|
121
|
-
| `.pf-m-md` | `.pf-
|
|
122
|
-
| `.pf-m-lg` | `.pf-
|
|
123
|
-
| `.pf-m-xl` | `.pf-
|
|
124
|
-
| `.pf-m-inline` | `.pf-
|
|
120
|
+
| `.pf-m-sm` | `.pf-v6-c-spinner` | Creates a small spinner. |
|
|
121
|
+
| `.pf-m-md` | `.pf-v6-c-spinner` | Creates a medium spinner. |
|
|
122
|
+
| `.pf-m-lg` | `.pf-v6-c-spinner` | Creates a large spinner. |
|
|
123
|
+
| `.pf-m-xl` | `.pf-v6-c-spinner` | Creates an extra-large spinner. |
|
|
124
|
+
| `.pf-m-inline` | `.pf-v6-c-spinner` | Creates an inline spinner. |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Switch
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-switch
|
|
5
5
|
---## Examples
|
|
6
6
|
|
|
7
7
|
### Basic
|
|
@@ -313,23 +313,23 @@ Use checkbox if your user has to perform additional steps for changes to become
|
|
|
313
313
|
|
|
314
314
|
| Attribute | Applied to | Outcome |
|
|
315
315
|
| -- | -- | -- |
|
|
316
|
-
| `aria-labelledby="..."` or `aria-label="..."` | `.pf-
|
|
316
|
+
| `aria-labelledby="..."` or `aria-label="..."` | `.pf-v6-c-switch__input` | Indicates the action triggered by the switch. If an additional text label is included with the switch besides `.pf-v6-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-v6-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** |
|
|
317
317
|
| `for` | `<label>` | Each `<label>` must have a `for` attribute that matches its input id. **Required** |
|
|
318
318
|
| `id` | `<input type="checkbox">` | Each `<input>` must have an `id` attribute that matches its label's `for` value. **Required** |
|
|
319
|
-
| `id` | `.pf-
|
|
320
|
-
| `checked` | `.pf-
|
|
321
|
-
| `disabled` | `.pf-
|
|
322
|
-
| `aria-hidden="true"` | `.pf-
|
|
319
|
+
| `id` | `.pf-v6-c-switch__label` | Each `.pf-v6-c-switch__label` must have an `id` attribute that matches the `aria-labelledby` on `.pf-v6-c-switch__input`. |
|
|
320
|
+
| `checked` | `.pf-v6-c-switch__input` | Indicates that the input is checked |
|
|
321
|
+
| `disabled` | `.pf-v6-c-switch__input` | Indicates that the input is disabled |
|
|
322
|
+
| `aria-hidden="true"` | `.pf-v6-c-switch__label` | Hides the text from the screen reader. |
|
|
323
323
|
|
|
324
324
|
### Usage
|
|
325
325
|
|
|
326
326
|
| Class | Applied to | Outcome |
|
|
327
327
|
| -- | -- | -- |
|
|
328
|
-
| `.pf-
|
|
329
|
-
| `.pf-
|
|
330
|
-
| `.pf-
|
|
331
|
-
| `.pf-
|
|
332
|
-
| `.pf-
|
|
333
|
-
| `.pf-m-on` | `.pf-
|
|
334
|
-
| `.pf-m-off` | `.pf-
|
|
335
|
-
| `.pf-m-reverse` | `.pf-
|
|
328
|
+
| `.pf-v6-c-switch` | `<label>` | Initiates a switch. **Required** |
|
|
329
|
+
| `.pf-v6-c-switch__input` | `<input type="checkbox">` | Hide the checkbox inside the switch. **Required** |
|
|
330
|
+
| `.pf-v6-c-switch__toggle` | `<span>` | Initiates the toggle inside the switch. **Required** |
|
|
331
|
+
| `.pf-v6-c-switch__toggle-icon` | `<span>` | Initiates the switch toggle icon wrapper. **Required when the switch is used without a label** |
|
|
332
|
+
| `.pf-v6-c-switch__label` | `<span>` | Initiates a label inside the switch. |
|
|
333
|
+
| `.pf-m-on` | `.pf-v6-c-switch__label` | Modifies the switch label to display the on message. |
|
|
334
|
+
| `.pf-m-off` | `.pf-v6-c-switch__label` | Modifies the switch label to display the off message. |
|
|
335
|
+
| `.pf-m-reverse` | `.pf-v6-c-switch` | Positions the switch toggle to the right of the label. |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Tab content
|
|
3
3
|
section: components
|
|
4
|
-
cssPrefix: pf-
|
|
4
|
+
cssPrefix: pf-v6-c-tab-content
|
|
5
5
|
---## Examples
|
|
6
6
|
|
|
7
7
|
### Basic
|
|
@@ -137,17 +137,17 @@ Tab content should be used with the [tabs component](/components/tabs).
|
|
|
137
137
|
|
|
138
138
|
| Attribute | Applied to | Outcome |
|
|
139
139
|
| -- | -- | -- |
|
|
140
|
-
| `role="tabpanel"` | `.pf-
|
|
141
|
-
| `aria-labelledby=[ID of tab element]` | `.pf-
|
|
142
|
-
| `id=[ID of tab panel]` | `.pf-
|
|
143
|
-
| `hidden` | `.pf-
|
|
144
|
-
| `tabindex="0"` | `.pf-
|
|
140
|
+
| `role="tabpanel"` | `.pf-v6-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-v6-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-v6-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-v6-c-tab-content` | Indicates that the tab panel is not visible. **Required on all but the active tab panel**
|
|
144
|
+
| `tabindex="0"` | `.pf-v6-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
148
|
| Class | Applied to | Outcome |
|
|
149
149
|
| -- | -- | -- |
|
|
150
|
-
| `.pf-
|
|
151
|
-
| `.pf-
|
|
152
|
-
| `.pf-m-padding` | `.pf-
|
|
153
|
-
| `.pf-m-secondary` | `.pf-
|
|
150
|
+
| `.pf-v6-c-tab-content` | `<section>` | Initiates the tab content component. **Required** |
|
|
151
|
+
| `.pf-v6-c-tab-content__body` | `<div>` | Initiates the tab content body component. |
|
|
152
|
+
| `.pf-m-padding` | `.pf-v6-c-tab-content__body` | Modifies the tab content body component padding. |
|
|
153
|
+
| `.pf-m-secondary` | `.pf-v6-c-tab-content` | Modifies the tab content component for secondary styles. |
|