@patternfly/patternfly 5.1.0-prerelease.9 → 5.2.0-prerelease.1
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 +6 -6
- package/base/_common.scss +9 -8
- package/base/_variables.scss +5 -1
- package/base/patternfly-common.css +4 -11
- package/base/patternfly-variables.css +5 -1
- package/components/AboutModalBox/about-modal-box.css +5 -0
- package/components/AboutModalBox/about-modal-box.scss +7 -0
- package/components/Accordion/accordion.css +3 -0
- package/components/Accordion/accordion.scss +2 -0
- package/components/Alert/alert.css +3 -0
- package/components/Alert/alert.scss +2 -0
- package/components/BackgroundImage/background-image.css +4 -1
- package/components/BackgroundImage/background-image.scss +6 -1
- package/components/Banner/banner.css +0 -3
- package/components/Breadcrumb/breadcrumb.css +3 -0
- package/components/Breadcrumb/breadcrumb.scss +2 -0
- package/components/Button/button.css +3 -0
- package/components/Button/button.scss +4 -0
- package/components/CalendarMonth/calendar-month.css +4 -0
- package/components/CalendarMonth/calendar-month.scss +2 -0
- package/components/Card/card.css +4 -1
- package/components/Card/card.scss +3 -1
- package/components/ClipboardCopy/clipboard-copy.css +3 -0
- package/components/ClipboardCopy/clipboard-copy.scss +2 -0
- package/components/DataList/data-list.css +3 -0
- package/components/DataList/data-list.scss +2 -0
- package/components/Drawer/drawer.css +45 -1
- package/components/Drawer/drawer.scss +43 -9
- package/components/DualListSelector/dual-list-selector.css +6 -2
- package/components/DualListSelector/dual-list-selector.scss +7 -2
- package/components/ExpandableSection/expandable-section.css +4 -0
- package/components/ExpandableSection/expandable-section.scss +2 -0
- package/components/Form/form.css +3 -0
- package/components/Form/form.scss +2 -0
- package/components/Icon/icon.scss +1 -1
- package/components/JumpLinks/jump-links.css +3 -0
- package/components/JumpLinks/jump-links.scss +2 -0
- package/components/Menu/menu.css +11 -0
- package/components/Menu/menu.scss +12 -2
- package/components/Nav/nav.css +20 -0
- package/components/Nav/nav.scss +22 -2
- package/components/NotificationDrawer/notification-drawer.css +4 -0
- package/components/NotificationDrawer/notification-drawer.scss +2 -0
- package/components/Page/page.css +4 -0
- package/components/Page/page.scss +6 -1
- package/components/Pagination/pagination.css +1 -1
- package/components/Pagination/pagination.scss +1 -1
- package/components/Popover/popover.css +62 -33
- package/components/Popover/popover.scss +88 -71
- package/components/Progress/progress.css +6 -4
- package/components/Progress/progress.scss +9 -4
- package/components/Skeleton/skeleton.css +4 -0
- package/components/Skeleton/skeleton.scss +2 -0
- package/components/Slider/slider.css +30 -6
- package/components/Slider/slider.scss +50 -19
- package/components/Switch/switch.css +5 -1
- package/components/Switch/switch.scss +5 -1
- package/components/Table/table-scrollable.css +2 -2
- package/components/Table/table-scrollable.scss +4 -2
- package/components/Table/table-tree-view.css +5 -1
- package/components/Table/table-tree-view.scss +7 -2
- package/components/Table/table.css +4 -0
- package/components/Table/table.scss +2 -0
- package/components/Tabs/tabs.css +10 -0
- package/components/Tabs/tabs.scss +8 -0
- package/components/Toolbar/toolbar.scss +2 -0
- package/components/Tooltip/tooltip.css +55 -26
- package/components/Tooltip/tooltip.scss +71 -54
- package/components/TreeView/tree-view.css +6 -0
- package/components/TreeView/tree-view.scss +10 -3
- package/components/Truncate/truncate.css +9 -0
- package/components/Truncate/truncate.scss +16 -3
- package/components/Wizard/wizard.css +6 -3
- package/components/Wizard/wizard.scss +8 -3
- 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/ClipboardCopy/examples/ClipboardCopy.md +106 -0
- package/docs/components/CodeEditor/examples/CodeEditor.md +3 -3
- package/docs/components/DualListSelector/examples/DualListSelector.md +64 -16
- 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 +3 -26
- 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.md +2 -2
- 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.md +23 -7
- package/docs/demos/CardView/examples/CardView.md +24 -20
- 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/package.json +6 -5
- package/patternfly-base-no-globals-theme-dark-unversioned.css +9 -12
- package/patternfly-base-no-globals.css +9 -12
- package/patternfly-base-theme-dark-unversioned.css +9 -12
- package/patternfly-base.css +9 -12
- package/patternfly-no-globals.css +356 -104
- package/patternfly-theme-dark-unversioned.css +356 -104
- package/patternfly.css +356 -104
- 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 +55 -20
- package/sass-utilities/themes/dark/mixins.scss +3 -1
|
@@ -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
|
|