@patternfly/patternfly 6.0.0-alpha.7 → 6.0.0-alpha.8
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 +13 -3
- package/assets/icons/iconUnicodes.json +1 -0
- package/assets/pficon/pf-v5-pficon.woff2 +0 -0
- package/assets/pficon/pficon.scss +6 -129
- package/base/_common.scss +21 -0
- package/base/_globals.scss +1 -1
- package/base/_variables.scss +7 -0
- package/base/patternfly-common.css +16 -2
- package/base/patternfly-globals.css +1 -1
- package/base/patternfly-icons.css +5 -1
- package/base/patternfly-pf-icons.css +5 -1
- package/base/patternfly-variables.css +16 -0
- package/base/tokens/_tokens-font.scss +16 -14
- package/components/AboutModalBox/about-modal-box.css +23 -12
- package/components/AboutModalBox/about-modal-box.scss +25 -12
- package/components/Accordion/accordion.css +33 -20
- package/components/Accordion/accordion.scss +32 -20
- package/components/ActionList/action-list.css +2 -2
- package/components/ActionList/action-list.scss +2 -2
- package/components/Alert/alert-group.css +7 -4
- package/components/Alert/alert-group.scss +7 -4
- package/components/Alert/alert.css +19 -13
- package/components/Alert/alert.scss +18 -13
- package/components/AppLauncher/app-launcher.css +32 -23
- package/components/AppLauncher/app-launcher.scss +32 -23
- package/components/BackToTop/back-to-top.css +2 -2
- package/components/BackToTop/back-to-top.scss +2 -2
- package/components/Backdrop/backdrop.css +2 -2
- package/components/Backdrop/backdrop.scss +2 -2
- package/components/BackgroundImage/background-image.css +6 -3
- package/components/BackgroundImage/background-image.scss +8 -3
- package/components/Badge/badge.css +2 -2
- package/components/Badge/badge.scss +2 -2
- package/components/Banner/banner.css +5 -5
- package/components/Banner/banner.scss +5 -2
- package/components/Breadcrumb/breadcrumb.css +9 -3
- package/components/Breadcrumb/breadcrumb.scss +8 -3
- package/components/Button/button.css +33 -21
- package/components/Button/button.scss +35 -23
- package/components/Button/themes/dark/button.scss +1 -1
- package/components/CalendarMonth/calendar-month.css +25 -15
- package/components/CalendarMonth/calendar-month.scss +23 -15
- package/components/Card/card.css +25 -17
- package/components/Card/card.scss +24 -17
- package/components/Check/check.css +2 -2
- package/components/Check/check.scss +2 -2
- package/components/Chip/chip-group.css +6 -6
- package/components/Chip/chip-group.scss +6 -6
- package/components/Chip/chip.css +16 -9
- package/components/Chip/chip.scss +17 -9
- package/components/ClipboardCopy/clipboard-copy.css +19 -10
- package/components/ClipboardCopy/clipboard-copy.scss +16 -8
- package/components/ClipboardCopy/themes/dark/clipboard-copy.scss +2 -2
- package/components/CodeBlock/code-block.css +6 -3
- package/components/CodeBlock/code-block.scss +6 -3
- package/components/CodeEditor/code-editor.css +31 -22
- package/components/CodeEditor/code-editor.scss +30 -21
- package/components/CodeEditor/themes/dark/code-editor.scss +1 -1
- package/components/Content/content.css +33 -30
- package/components/Content/content.scss +33 -30
- package/components/ContextSelector/context-selector.css +41 -26
- package/components/ContextSelector/context-selector.scss +40 -25
- package/components/ContextSelector/themes/dark/context-selector.scss +1 -1
- package/components/DataList/data-list-grid.css +21 -21
- package/components/DataList/data-list-grid.scss +3 -3
- package/components/DataList/data-list.css +69 -56
- package/components/DataList/data-list.scss +47 -35
- package/components/DatePicker/date-picker.css +8 -8
- package/components/DatePicker/date-picker.scss +8 -8
- package/components/DescriptionList/description-list.css +8 -5
- package/components/DescriptionList/description-list.scss +8 -5
- package/components/DragDrop/drag-drop.css +8 -8
- package/components/DragDrop/drag-drop.scss +8 -8
- package/components/Drawer/drawer.css +120 -61
- package/components/Drawer/drawer.scss +92 -43
- package/components/Dropdown/dropdown.css +75 -66
- package/components/Dropdown/dropdown.scss +65 -56
- package/components/DualListSelector/dual-list-selector.css +29 -15
- package/components/DualListSelector/dual-list-selector.scss +30 -15
- package/components/EmptyState/empty-state.css +7 -4
- package/components/EmptyState/empty-state.scss +7 -4
- package/components/ExpandableSection/expandable-section.css +17 -10
- package/components/ExpandableSection/expandable-section.scss +15 -10
- package/components/FileUpload/file-upload.css +9 -15
- package/components/FileUpload/file-upload.scss +9 -15
- package/components/Form/form.css +53 -50
- package/components/Form/form.scss +46 -44
- package/components/FormControl/form-control.css +18 -9
- package/components/FormControl/form-control.scss +18 -9
- package/components/HelperText/helper-text.css +1 -1
- package/components/HelperText/helper-text.scss +1 -1
- package/components/Hint/hint.css +9 -6
- package/components/Hint/hint.scss +9 -6
- package/components/Icon/icon.css +1 -1
- package/components/Icon/icon.scss +1 -1
- package/components/InlineEdit/inline-edit.css +4 -4
- package/components/InlineEdit/inline-edit.scss +4 -4
- package/components/InputGroup/input-group.css +12 -6
- package/components/InputGroup/input-group.scss +11 -5
- package/components/InputGroup/themes/dark/input-group.scss +1 -1
- package/components/JumpLinks/jump-links.css +27 -24
- package/components/JumpLinks/jump-links.scss +26 -24
- package/components/Label/label-group.css +13 -10
- package/components/Label/label-group.scss +13 -10
- package/components/Label/label.css +9 -9
- package/components/Label/label.scss +9 -9
- package/components/List/list.css +9 -9
- package/components/List/list.scss +9 -9
- package/components/LogViewer/log-viewer.css +14 -14
- package/components/LogViewer/log-viewer.scss +14 -14
- package/components/Login/login.css +36 -27
- package/components/Login/login.scss +36 -27
- package/components/Masthead/masthead.css +19 -22
- package/components/Masthead/masthead.scss +19 -22
- package/components/Menu/menu.css +79 -65
- package/components/Menu/menu.scss +80 -68
- package/components/MenuToggle/menu-toggle.css +33 -27
- package/components/MenuToggle/menu-toggle.scss +33 -27
- package/components/ModalBox/modal-box.css +19 -19
- package/components/ModalBox/modal-box.scss +20 -20
- package/components/MultipleFileUpload/multiple-file-upload.css +11 -8
- package/components/MultipleFileUpload/multiple-file-upload.scss +11 -8
- package/components/Nav/nav.css +120 -93
- package/components/Nav/nav.scss +120 -93
- package/components/Nav/themes/dark/nav.scss +2 -2
- package/components/NotificationBadge/notification-badge.css +13 -7
- package/components/NotificationBadge/notification-badge.scss +13 -7
- package/components/NotificationDrawer/notification-drawer.css +32 -19
- package/components/NotificationDrawer/notification-drawer.scss +30 -19
- package/components/NumberInput/number-input.css +2 -2
- package/components/NumberInput/number-input.scss +2 -2
- package/components/OptionsMenu/options-menu.css +43 -31
- package/components/OptionsMenu/options-menu.scss +43 -31
- package/components/OverflowMenu/overflow-menu.css +2 -2
- package/components/OverflowMenu/overflow-menu.scss +2 -2
- package/components/Page/page.css +135 -77
- package/components/Page/page.scss +81 -52
- package/components/Page/themes/dark/page.scss +1 -1
- package/components/Pagination/pagination.css +27 -17
- package/components/Pagination/pagination.scss +25 -17
- package/components/Panel/panel.css +13 -7
- package/components/Panel/panel.scss +13 -7
- package/components/Popover/popover.css +72 -40
- package/components/Popover/popover.scss +95 -75
- package/components/Progress/progress.css +9 -7
- package/components/Progress/progress.scss +12 -7
- package/components/ProgressStepper/progress-stepper.css +26 -20
- package/components/ProgressStepper/progress-stepper.scss +25 -19
- package/components/Radio/radio.css +3 -3
- package/components/Radio/radio.scss +3 -3
- package/components/Select/select.css +56 -47
- package/components/Select/select.scss +56 -47
- package/components/Sidebar/sidebar.css +11 -5
- package/components/Sidebar/sidebar.scss +11 -5
- package/components/SimpleList/simple-list.css +10 -4
- package/components/SimpleList/simple-list.scss +10 -4
- package/components/Skeleton/skeleton.css +6 -5
- package/components/Skeleton/skeleton.scss +4 -5
- package/components/SkipToContent/skip-to-content.css +3 -3
- package/components/SkipToContent/skip-to-content.scss +3 -3
- package/components/Slider/slider.css +47 -26
- package/components/Slider/slider.scss +56 -28
- package/components/Switch/switch.css +9 -5
- package/components/Switch/switch.scss +10 -6
- package/components/TabContent/tab-content.css +4 -1
- package/components/TabContent/tab-content.scss +4 -1
- package/components/Table/table-grid.css +256 -195
- package/components/Table/table-grid.scss +53 -39
- package/components/Table/table-scrollable.css +4 -4
- package/components/Table/table-scrollable.scss +6 -4
- package/components/Table/table-tree-view.css +112 -105
- package/components/Table/table-tree-view.scss +38 -33
- package/components/Table/table.css +92 -70
- package/components/Table/table.scss +90 -70
- package/components/Tabs/tabs.css +76 -48
- package/components/Tabs/tabs.scss +74 -48
- package/components/TextInputGroup/text-input-group.css +15 -15
- package/components/TextInputGroup/text-input-group.scss +15 -15
- package/components/Tile/tile.css +10 -10
- package/components/Tile/tile.scss +10 -10
- package/components/ToggleGroup/toggle-group.css +14 -11
- package/components/ToggleGroup/toggle-group.scss +14 -11
- package/components/Toolbar/toolbar.css +44 -41
- package/components/Toolbar/toolbar.scss +26 -21
- package/components/Tooltip/tooltip.css +60 -28
- package/components/Tooltip/tooltip.scss +76 -56
- package/components/TreeView/tree-view.css +48 -27
- package/components/TreeView/tree-view.scss +50 -28
- package/components/Truncate/truncate.css +9 -0
- package/components/Truncate/truncate.scss +16 -3
- package/components/Wizard/wizard.css +57 -36
- package/components/Wizard/wizard.scss +57 -36
- package/docs/components/Button/examples/Button.css +2 -2
- package/docs/components/Button/examples/Button.md +15 -3
- package/docs/components/Card/examples/Card.md +15 -15
- package/docs/components/Check/examples/Check.md +71 -59
- package/docs/components/Chip/examples/Chip.md +1 -1
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +106 -0
- package/docs/components/CodeEditor/examples/CodeEditor.md +3 -3
- package/docs/components/DragDrop/examples/DragDrop.css +2 -2
- package/docs/components/Dropdown/deprecated/Dropdown.css +1 -1
- package/docs/components/DualListSelector/examples/DualListSelector.md +64 -16
- package/docs/components/Label/examples/Label.md +1 -1
- package/docs/components/LogViewer/examples/LogViewer.css +2 -2
- package/docs/components/LogViewer/examples/LogViewer.md +120 -30
- package/docs/components/Menu/examples/Menu.css +8 -0
- package/docs/components/Menu/examples/Menu.md +90 -73
- package/docs/components/MenuToggle/examples/MenuToggle.md +60 -39
- package/docs/components/ModalBox/examples/ModalBox.css +3 -8
- package/docs/components/Nav/examples/Navigation.css +4 -21
- package/docs/components/Nav/examples/Navigation.md +99 -0
- package/docs/components/OptionsMenu/deprecated/options-menu.md +12 -3
- package/docs/components/Popover/examples/Popover.css +4 -9
- package/docs/components/Radio/examples/Radio.md +63 -55
- package/docs/components/Select/deprecated/Select.md +184 -177
- package/docs/components/Table/examples/Table.css +2 -2
- package/docs/components/Table/examples/Table.md +2 -2
- package/docs/components/TextInputGroup/examples/TextInputGroup.css +1 -1
- package/docs/components/Tile/examples/Tile.css +1 -1
- package/docs/components/Toolbar/examples/Toolbar.md +525 -431
- package/docs/components/Tooltip/examples/Tooltip.css +4 -0
- package/docs/components/Tooltip/examples/Tooltip.md +3 -1
- package/docs/components/Truncate/examples/Truncate.md +2 -2
- package/docs/demos/Card/examples/Card.css +3 -3
- package/docs/demos/Card/examples/Card.md +26 -10
- package/docs/demos/CardView/examples/CardView.md +24 -20
- package/docs/demos/Dashboard/examples/Dashboard.md +3 -3
- package/docs/demos/DataList/examples/DataList.md +8 -2
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +160 -124
- package/docs/demos/Skeleton/examples/Skeleton.md +7 -35
- package/docs/demos/Table/examples/Table.md +336 -252
- package/docs/demos/Tabs/examples/Tabs.md +28 -21
- package/docs/demos/Toolbar/examples/Toolbar.css +5 -0
- package/docs/demos/Toolbar/examples/Toolbar.md +44 -44
- package/docs/layouts/Flex/examples/Flex.md +5 -5
- package/docs/utilities/BoxShadow/examples/box-shadow.css +5 -5
- package/icons/pficons.mjs +1 -0
- package/layouts/Flex/flex.css +115 -43
- package/layouts/Flex/flex.scss +20 -8
- package/package.json +9 -5
- package/patternfly-addons.css +732 -972
- package/patternfly-base-no-globals-theme-dark-unversioned.css +37 -3
- package/patternfly-base-no-globals.css +37 -3
- package/patternfly-base-theme-dark-unversioned.css +38 -4
- package/patternfly-base.css +38 -4
- package/patternfly-no-globals.css +2695 -1875
- package/patternfly-theme-dark-unversioned.css +2696 -1876
- package/patternfly.css +2696 -1876
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/functions.scss +6 -0
- package/sass-utilities/mixins.scss +62 -2
- package/sass-utilities/scss-variables.scss +8 -8
- package/sass-utilities/themes/dark/mixins.scss +3 -1
- package/utilities/Accessibility/accessibility.css +12 -12
- package/utilities/Spacing/spacing.css +720 -960
- package/utilities/Spacing/spacing.scss +4 -8
|
@@ -8,15 +8,17 @@ cssPrefix: pf-v5-c-radio
|
|
|
8
8
|
### Basic
|
|
9
9
|
|
|
10
10
|
```html
|
|
11
|
-
<div class="pf-v5-c-radio">
|
|
11
|
+
<div class="pf-v5-c-radio" id="radio-basic-example">
|
|
12
12
|
<input
|
|
13
13
|
class="pf-v5-c-radio__input"
|
|
14
14
|
type="radio"
|
|
15
|
-
id="radio-
|
|
16
|
-
name="
|
|
15
|
+
id="radio-basic-example-input"
|
|
16
|
+
name="radio-basic-example-input"
|
|
17
17
|
/>
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
<label
|
|
19
|
+
class="pf-v5-c-radio__label"
|
|
20
|
+
for="radio-basic-example-input"
|
|
21
|
+
>Basic radio</label>
|
|
20
22
|
</div>
|
|
21
23
|
|
|
22
24
|
```
|
|
@@ -24,16 +26,18 @@ cssPrefix: pf-v5-c-radio
|
|
|
24
26
|
### Checked
|
|
25
27
|
|
|
26
28
|
```html
|
|
27
|
-
<div class="pf-v5-c-radio">
|
|
29
|
+
<div class="pf-v5-c-radio" id="radio-checked-example">
|
|
28
30
|
<input
|
|
29
31
|
class="pf-v5-c-radio__input"
|
|
30
32
|
type="radio"
|
|
31
|
-
id="radio-checked"
|
|
32
|
-
name="
|
|
33
|
+
id="radio-checked-example-input"
|
|
34
|
+
name="radio-checked-example-input"
|
|
33
35
|
checked
|
|
34
36
|
/>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
<label
|
|
38
|
+
class="pf-v5-c-radio__label"
|
|
39
|
+
for="radio-checked-example-input"
|
|
40
|
+
>Radio checked</label>
|
|
37
41
|
</div>
|
|
38
42
|
|
|
39
43
|
```
|
|
@@ -41,14 +45,17 @@ cssPrefix: pf-v5-c-radio
|
|
|
41
45
|
### Label wrapping input
|
|
42
46
|
|
|
43
47
|
```html
|
|
44
|
-
<label
|
|
48
|
+
<label
|
|
49
|
+
class="pf-v5-c-radio"
|
|
50
|
+
id="radio-label-wrapping-input-example"
|
|
51
|
+
for="radio-label-wrapping-input-example-input"
|
|
52
|
+
>
|
|
45
53
|
<input
|
|
46
54
|
class="pf-v5-c-radio__input"
|
|
47
55
|
type="radio"
|
|
48
|
-
id="radio-
|
|
49
|
-
name="
|
|
56
|
+
id="radio-label-wrapping-input-example-input"
|
|
57
|
+
name="radio-label-wrapping-input-example-input"
|
|
50
58
|
/>
|
|
51
|
-
|
|
52
59
|
<span class="pf-v5-c-radio__label">Radio label wraps input</span>
|
|
53
60
|
</label>
|
|
54
61
|
|
|
@@ -57,14 +64,16 @@ cssPrefix: pf-v5-c-radio
|
|
|
57
64
|
### Reversed
|
|
58
65
|
|
|
59
66
|
```html
|
|
60
|
-
<div class="pf-v5-c-radio">
|
|
61
|
-
<label
|
|
62
|
-
|
|
67
|
+
<div class="pf-v5-c-radio" id="radio-reversed-example">
|
|
68
|
+
<label
|
|
69
|
+
class="pf-v5-c-radio__label"
|
|
70
|
+
for="radio-reversed-example-input"
|
|
71
|
+
>Radio reversed</label>
|
|
63
72
|
<input
|
|
64
73
|
class="pf-v5-c-radio__input"
|
|
65
74
|
type="radio"
|
|
66
|
-
id="radio-
|
|
67
|
-
name="
|
|
75
|
+
id="radio-reversed-example-input"
|
|
76
|
+
name="radio-reversed-example-input"
|
|
68
77
|
/>
|
|
69
78
|
</div>
|
|
70
79
|
|
|
@@ -73,35 +82,32 @@ cssPrefix: pf-v5-c-radio
|
|
|
73
82
|
### Disabled
|
|
74
83
|
|
|
75
84
|
```html
|
|
76
|
-
<div class="pf-v5-c-radio">
|
|
85
|
+
<div class="pf-v5-c-radio" id="radio-disabled-example">
|
|
77
86
|
<input
|
|
78
87
|
class="pf-v5-c-radio__input"
|
|
79
88
|
type="radio"
|
|
80
|
-
id="radio-disabled"
|
|
81
|
-
name="
|
|
89
|
+
id="radio-disabled-example-input"
|
|
90
|
+
name="radio-disabled-example-input"
|
|
82
91
|
disabled
|
|
83
92
|
/>
|
|
84
|
-
|
|
85
93
|
<label
|
|
86
94
|
class="pf-v5-c-radio__label pf-m-disabled"
|
|
87
|
-
for="radio-disabled"
|
|
95
|
+
for="radio-disabled-example-input"
|
|
88
96
|
>Radio disabled</label>
|
|
89
97
|
</div>
|
|
90
|
-
|
|
91
|
-
<div class="pf-v5-c-radio">
|
|
98
|
+
<div class="pf-v5-c-radio" id="radio-disabled-checked-example">
|
|
92
99
|
<input
|
|
93
100
|
class="pf-v5-c-radio__input"
|
|
94
101
|
type="radio"
|
|
95
|
-
id="radio-disabled-checked"
|
|
96
|
-
name="
|
|
97
|
-
disabled
|
|
102
|
+
id="radio-disabled-checked-example-input"
|
|
103
|
+
name="radio-disabled-checked-example-input"
|
|
98
104
|
checked
|
|
105
|
+
disabled
|
|
99
106
|
/>
|
|
100
|
-
|
|
101
107
|
<label
|
|
102
108
|
class="pf-v5-c-radio__label pf-m-disabled"
|
|
103
|
-
for="radio-disabled-checked"
|
|
104
|
-
>Radio disabled
|
|
109
|
+
for="radio-disabled-checked-example-input"
|
|
110
|
+
>Radio disabled</label>
|
|
105
111
|
</div>
|
|
106
112
|
|
|
107
113
|
```
|
|
@@ -109,21 +115,21 @@ cssPrefix: pf-v5-c-radio
|
|
|
109
115
|
### With description
|
|
110
116
|
|
|
111
117
|
```html
|
|
112
|
-
<div class="pf-v5-c-radio">
|
|
118
|
+
<div class="pf-v5-c-radio" id="radio-with-description-exmaple">
|
|
113
119
|
<input
|
|
114
120
|
class="pf-v5-c-radio__input"
|
|
115
121
|
type="radio"
|
|
116
|
-
|
|
117
|
-
|
|
122
|
+
aria-describedby="radio-with-description-exmaple-description"
|
|
123
|
+
id="radio-with-description-exmaple-input"
|
|
124
|
+
name="radio-with-description-exmaple-input"
|
|
118
125
|
/>
|
|
119
|
-
|
|
120
126
|
<label
|
|
121
127
|
class="pf-v5-c-radio__label"
|
|
122
|
-
for="radio-description"
|
|
128
|
+
for="radio-with-description-exmaple-input"
|
|
123
129
|
>Radio with description</label>
|
|
124
|
-
|
|
125
130
|
<span
|
|
126
131
|
class="pf-v5-c-radio__description"
|
|
132
|
+
id="radio-with-description-exmaple-description"
|
|
127
133
|
>Single-tenant cloud service hosted and managed by Red Hat that offers high-availability enterprise-grade clusters in a virtual private cloud on AWS od GCP.</span>
|
|
128
134
|
</div>
|
|
129
135
|
|
|
@@ -132,16 +138,17 @@ cssPrefix: pf-v5-c-radio
|
|
|
132
138
|
### With body
|
|
133
139
|
|
|
134
140
|
```html
|
|
135
|
-
<div class="pf-v5-c-radio">
|
|
141
|
+
<div class="pf-v5-c-radio" id="radio-with-body-example">
|
|
136
142
|
<input
|
|
137
143
|
class="pf-v5-c-radio__input"
|
|
138
144
|
type="radio"
|
|
139
|
-
id="radio-body"
|
|
140
|
-
name="
|
|
145
|
+
id="radio-with-body-example-input"
|
|
146
|
+
name="radio-with-body-example-input"
|
|
141
147
|
/>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
148
|
+
<label
|
|
149
|
+
class="pf-v5-c-radio__label"
|
|
150
|
+
for="radio-with-body-example-input"
|
|
151
|
+
>Radio with body</label>
|
|
145
152
|
<span class="pf-v5-c-radio__body">This is where custom content goes.</span>
|
|
146
153
|
</div>
|
|
147
154
|
|
|
@@ -150,21 +157,21 @@ cssPrefix: pf-v5-c-radio
|
|
|
150
157
|
### With description and body
|
|
151
158
|
|
|
152
159
|
```html
|
|
153
|
-
<div class="pf-v5-c-radio">
|
|
160
|
+
<div class="pf-v5-c-radio" id="radio-with-description-body-example">
|
|
154
161
|
<input
|
|
155
162
|
class="pf-v5-c-radio__input"
|
|
156
163
|
type="radio"
|
|
157
|
-
|
|
158
|
-
|
|
164
|
+
aria-describedby="radio-with-description-body-example-description"
|
|
165
|
+
id="radio-with-description-body-example-input"
|
|
166
|
+
name="radio-with-description-body-example-input"
|
|
159
167
|
/>
|
|
160
|
-
|
|
161
168
|
<label
|
|
162
169
|
class="pf-v5-c-radio__label"
|
|
163
|
-
for="radio-description-body"
|
|
170
|
+
for="radio-with-description-body-example-input"
|
|
164
171
|
>Radio with description and body</label>
|
|
165
|
-
|
|
166
172
|
<span
|
|
167
173
|
class="pf-v5-c-radio__description"
|
|
174
|
+
id="radio-with-description-body-example-description"
|
|
168
175
|
>Single-tenant cloud service hosted and managed by Red Hat that offers high-availability enterprise-grade clusters in a virtual private cloud on AWS od GCP.</span>
|
|
169
176
|
<span class="pf-v5-c-radio__body">This is where custom content goes.</span>
|
|
170
177
|
</div>
|
|
@@ -174,15 +181,15 @@ cssPrefix: pf-v5-c-radio
|
|
|
174
181
|
### Standalone input
|
|
175
182
|
|
|
176
183
|
```html
|
|
177
|
-
<
|
|
184
|
+
<label class="pf-v5-c-radio pf-m-standalone" id="radio-standalon-input-example">
|
|
178
185
|
<input
|
|
179
186
|
class="pf-v5-c-radio__input"
|
|
180
187
|
type="radio"
|
|
181
|
-
id="radio-
|
|
182
|
-
name="
|
|
183
|
-
aria-label="Standalone
|
|
188
|
+
id="radio-standalon-input-example-input"
|
|
189
|
+
name="radio-standalon-input-example-input"
|
|
190
|
+
aria-label="Standalone radio"
|
|
184
191
|
/>
|
|
185
|
-
</
|
|
192
|
+
</label>
|
|
186
193
|
|
|
187
194
|
```
|
|
188
195
|
|
|
@@ -199,6 +206,7 @@ If you extend this component or modify the styles of this component, then make s
|
|
|
199
206
|
| Attribute | Applied to | Outcome |
|
|
200
207
|
| -- | -- | -- |
|
|
201
208
|
| `disabled` | `<input type="radio">` | Indicates that the element is unavailable and removes it from keyboard focus. **Required when input is disabled** |
|
|
209
|
+
| `aria-describedby` | `.pf-v5-c-radio__input` | When using `.pf-v5-c-radio__description` make use of this on the input. |
|
|
202
210
|
|
|
203
211
|
### Usage
|
|
204
212
|
|