@patternfly/patternfly 4.204.1 → 4.204.4
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/AppLauncher/app-launcher.css +2 -4
- package/components/AppLauncher/app-launcher.scss +2 -2
- package/components/AppLauncher/themes/dark/app-launcher.scss +0 -2
- package/components/Dropdown/dropdown.css +2 -4
- package/components/Dropdown/dropdown.scss +2 -2
- package/components/Dropdown/themes/dark/dropdown.scss +0 -2
- package/components/FormControl/form-control.css +3 -2
- package/components/FormControl/form-control.scss +4 -3
- package/components/Menu/menu.css +2 -4
- package/components/Menu/menu.scss +2 -2
- package/components/Menu/themes/dark/menu.scss +0 -2
- package/components/OptionsMenu/options-menu.css +2 -4
- package/components/OptionsMenu/options-menu.scss +2 -2
- package/components/OptionsMenu/themes/dark/options-menu.scss +0 -2
- package/components/Popover/popover.css +1 -1
- package/components/Popover/popover.scss +1 -1
- package/components/Select/select.css +2 -2
- package/components/Select/select.scss +2 -2
- package/docs/components/DescriptionList/examples/DescriptionList.md +21 -21
- package/docs/components/FormControl/examples/FormControl.md +44 -19
- package/docs/components/LogViewer/examples/LogViewer.md +1 -0
- package/docs/components/ModalBox/examples/ModalBox.css +10 -0
- package/docs/components/ModalBox/examples/ModalBox.md +34 -17
- package/docs/components/Popover/examples/Popover.css +8 -8
- package/docs/components/Popover/examples/Popover.md +47 -20
- package/docs/components/Table/examples/Table.md +52 -52
- package/docs/demos/Card/examples/Card.md +1 -0
- package/docs/demos/Modal/examples/Modal.md +6 -0
- package/docs/demos/Table/examples/Table.md +73 -72
- package/docs/demos/Tabs/examples/Tabs.md +1 -0
- package/docs/demos/Wizard/examples/Wizard.md +5 -0
- package/package.json +1 -1
- package/patternfly-no-reset.css +14 -21
- package/patternfly.css +14 -21
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
id: Modal
|
|
3
3
|
section: components
|
|
4
4
|
cssPrefix: pf-c-modal-box
|
|
5
|
-
|
|
5
|
+
---import './ModalBox.css'
|
|
6
|
+
|
|
7
|
+
## Examples
|
|
6
8
|
|
|
7
9
|
### Basic
|
|
8
10
|
|
|
9
|
-
```html
|
|
11
|
+
```html isFullscreen
|
|
10
12
|
<div
|
|
11
13
|
class="pf-c-modal-box"
|
|
14
|
+
role="dialog"
|
|
12
15
|
aria-modal="true"
|
|
13
16
|
aria-labelledby="modal-title"
|
|
14
17
|
aria-describedby="modal-description"
|
|
@@ -30,9 +33,10 @@ cssPrefix: pf-c-modal-box
|
|
|
30
33
|
|
|
31
34
|
### With help button
|
|
32
35
|
|
|
33
|
-
```html
|
|
36
|
+
```html isFullscreen
|
|
34
37
|
<div
|
|
35
38
|
class="pf-c-modal-box"
|
|
39
|
+
role="dialog"
|
|
36
40
|
aria-modal="true"
|
|
37
41
|
aria-labelledby="modal-help-title"
|
|
38
42
|
aria-describedby="modal-help-description"
|
|
@@ -67,9 +71,10 @@ cssPrefix: pf-c-modal-box
|
|
|
67
71
|
|
|
68
72
|
### Small
|
|
69
73
|
|
|
70
|
-
```html
|
|
74
|
+
```html isFullscreen
|
|
71
75
|
<div
|
|
72
76
|
class="pf-c-modal-box pf-m-sm"
|
|
77
|
+
role="dialog"
|
|
73
78
|
aria-modal="true"
|
|
74
79
|
aria-labelledby="modal-sm-title"
|
|
75
80
|
aria-describedby="modal-sm-description"
|
|
@@ -97,9 +102,10 @@ cssPrefix: pf-c-modal-box
|
|
|
97
102
|
|
|
98
103
|
### Medium
|
|
99
104
|
|
|
100
|
-
```html
|
|
105
|
+
```html isFullscreen
|
|
101
106
|
<div
|
|
102
107
|
class="pf-c-modal-box pf-m-md"
|
|
108
|
+
role="dialog"
|
|
103
109
|
aria-modal="true"
|
|
104
110
|
aria-labelledby="modal-md-title"
|
|
105
111
|
aria-describedby="modal-md-description"
|
|
@@ -127,9 +133,10 @@ cssPrefix: pf-c-modal-box
|
|
|
127
133
|
|
|
128
134
|
### Large
|
|
129
135
|
|
|
130
|
-
```html
|
|
136
|
+
```html isFullscreen
|
|
131
137
|
<div
|
|
132
138
|
class="pf-c-modal-box pf-m-lg"
|
|
139
|
+
role="dialog"
|
|
133
140
|
aria-modal="true"
|
|
134
141
|
aria-labelledby="modal-lg-title"
|
|
135
142
|
aria-describedby="modal-lg-description"
|
|
@@ -153,9 +160,10 @@ cssPrefix: pf-c-modal-box
|
|
|
153
160
|
|
|
154
161
|
### Without title
|
|
155
162
|
|
|
156
|
-
```html
|
|
163
|
+
```html isFullscreen
|
|
157
164
|
<div
|
|
158
165
|
class="pf-c-modal-box"
|
|
166
|
+
role="dialog"
|
|
159
167
|
aria-modal="true"
|
|
160
168
|
aria-label="Example of a modal without a title"
|
|
161
169
|
aria-describedby="modal-no-title-description"
|
|
@@ -175,9 +183,10 @@ cssPrefix: pf-c-modal-box
|
|
|
175
183
|
|
|
176
184
|
### With description
|
|
177
185
|
|
|
178
|
-
```html
|
|
186
|
+
```html isFullscreen
|
|
179
187
|
<div
|
|
180
188
|
class="pf-c-modal-box"
|
|
189
|
+
role="dialog"
|
|
181
190
|
aria-modal="true"
|
|
182
191
|
aria-labelledby="modal-with-description-title"
|
|
183
192
|
aria-describedby="modal-with-description-description"
|
|
@@ -205,9 +214,10 @@ cssPrefix: pf-c-modal-box
|
|
|
205
214
|
|
|
206
215
|
### Custom title
|
|
207
216
|
|
|
208
|
-
```html
|
|
217
|
+
```html isFullscreen
|
|
209
218
|
<div
|
|
210
219
|
class="pf-c-modal-box"
|
|
220
|
+
role="dialog"
|
|
211
221
|
aria-modal="true"
|
|
212
222
|
aria-labelledby="modal-custom-title"
|
|
213
223
|
aria-describedby="modal-custom-description"
|
|
@@ -229,9 +239,10 @@ cssPrefix: pf-c-modal-box
|
|
|
229
239
|
|
|
230
240
|
### Modal box as generic container
|
|
231
241
|
|
|
232
|
-
```html
|
|
242
|
+
```html isFullscreen
|
|
233
243
|
<div
|
|
234
244
|
class="pf-c-modal-box"
|
|
245
|
+
role="dialog"
|
|
235
246
|
aria-modal="true"
|
|
236
247
|
aria-labelledby="modal-generic-container-description"
|
|
237
248
|
>
|
|
@@ -244,9 +255,10 @@ cssPrefix: pf-c-modal-box
|
|
|
244
255
|
|
|
245
256
|
### Icon
|
|
246
257
|
|
|
247
|
-
```html
|
|
258
|
+
```html isFullscreen
|
|
248
259
|
<div
|
|
249
260
|
class="pf-c-modal-box"
|
|
261
|
+
role="dialog"
|
|
250
262
|
aria-modal="true"
|
|
251
263
|
aria-labelledby="icon-title"
|
|
252
264
|
aria-describedby="icon-description"
|
|
@@ -270,9 +282,10 @@ cssPrefix: pf-c-modal-box
|
|
|
270
282
|
|
|
271
283
|
### Default alert
|
|
272
284
|
|
|
273
|
-
```html
|
|
285
|
+
```html isFullscreen
|
|
274
286
|
<div
|
|
275
287
|
class="pf-c-modal-box pf-m-default"
|
|
288
|
+
role="dialog"
|
|
276
289
|
aria-modal="true"
|
|
277
290
|
aria-labelledby="default-alert-title"
|
|
278
291
|
aria-describedby="default-alert-description"
|
|
@@ -303,9 +316,10 @@ cssPrefix: pf-c-modal-box
|
|
|
303
316
|
|
|
304
317
|
### Info alert
|
|
305
318
|
|
|
306
|
-
```html
|
|
319
|
+
```html isFullscreen
|
|
307
320
|
<div
|
|
308
321
|
class="pf-c-modal-box pf-m-info"
|
|
322
|
+
role="dialog"
|
|
309
323
|
aria-modal="true"
|
|
310
324
|
aria-labelledby="info-alert-title"
|
|
311
325
|
aria-describedby="info-alert-description"
|
|
@@ -336,9 +350,10 @@ cssPrefix: pf-c-modal-box
|
|
|
336
350
|
|
|
337
351
|
### Success alert
|
|
338
352
|
|
|
339
|
-
```html
|
|
353
|
+
```html isFullscreen
|
|
340
354
|
<div
|
|
341
355
|
class="pf-c-modal-box pf-m-success"
|
|
356
|
+
role="dialog"
|
|
342
357
|
aria-modal="true"
|
|
343
358
|
aria-labelledby="success-alert-title"
|
|
344
359
|
aria-describedby="success-alert-description"
|
|
@@ -369,9 +384,10 @@ cssPrefix: pf-c-modal-box
|
|
|
369
384
|
|
|
370
385
|
### Warning alert
|
|
371
386
|
|
|
372
|
-
```html
|
|
387
|
+
```html isFullscreen
|
|
373
388
|
<div
|
|
374
389
|
class="pf-c-modal-box pf-m-warning"
|
|
390
|
+
role="dialog"
|
|
375
391
|
aria-modal="true"
|
|
376
392
|
aria-labelledby="warning-alert-title"
|
|
377
393
|
aria-describedby="warning-alert-description"
|
|
@@ -402,9 +418,10 @@ cssPrefix: pf-c-modal-box
|
|
|
402
418
|
|
|
403
419
|
### Danger alert
|
|
404
420
|
|
|
405
|
-
```html
|
|
421
|
+
```html isFullscreen
|
|
406
422
|
<div
|
|
407
423
|
class="pf-c-modal-box pf-m-danger"
|
|
424
|
+
role="dialog"
|
|
408
425
|
aria-modal="true"
|
|
409
426
|
aria-labelledby="danger-alert-title"
|
|
410
427
|
aria-describedby="danger-alert-description"
|
|
@@ -443,7 +460,7 @@ A modal box is a generic rectangular container that can be used to build modals.
|
|
|
443
460
|
|
|
444
461
|
| Attribute | Applies to | Outcome |
|
|
445
462
|
| ------------------------------------------------------------------------------ | -------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
446
|
-
| `role="dialog"` | `.pf-c-modal-box` | Identifies the element that serves as the modal container. **
|
|
463
|
+
| `role="dialog"` | `.pf-c-modal-box` | Identifies the element that serves as the modal container. **Required** |
|
|
447
464
|
| `aria-labelledby="[id value of .pf-c-modal-box__title or custom modal title]"` | `.pf-c-modal-box` | Gives the modal an accessible name by referring to the element that provides the dialog title. **Required when .pf-c-title is present** |
|
|
448
465
|
| `aria-label="[title of modal]"` | `.pf-c-modal-box` | Gives the modal an accessible name. **Required when `.pf-c-modal-box__title` is _not_ present** |
|
|
449
466
|
| `aria-describedby="[id value of applicable content]"` | `.pf-c-modal-box` | Gives the modal an accessible description by referring to the modal content that describes the primary message or purpose of the dialog. Not used if there is no static text that describes the modal. |
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
.ws-core-c-popover .ws-preview-html {
|
|
2
2
|
position: relative;
|
|
3
|
-
|
|
4
|
-
}
|
|
3
|
+
}
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
.ws-core-c-popover .pf-c-popover {
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: 50%;
|
|
8
|
+
left: 50%;
|
|
9
|
+
transform: translate(-50%, -50%);
|
|
10
|
+
}
|
|
@@ -8,9 +8,10 @@ cssPrefix: pf-c-popover
|
|
|
8
8
|
|
|
9
9
|
### Top
|
|
10
10
|
|
|
11
|
-
```html
|
|
11
|
+
```html isFullscreen
|
|
12
12
|
<div
|
|
13
13
|
class="pf-c-popover pf-m-top"
|
|
14
|
+
role="dialog"
|
|
14
15
|
aria-modal="true"
|
|
15
16
|
aria-labelledby="popover-top-header"
|
|
16
17
|
aria-describedby="popover-top-body"
|
|
@@ -33,9 +34,10 @@ cssPrefix: pf-c-popover
|
|
|
33
34
|
|
|
34
35
|
### Right
|
|
35
36
|
|
|
36
|
-
```html
|
|
37
|
+
```html isFullscreen
|
|
37
38
|
<div
|
|
38
39
|
class="pf-c-popover pf-m-right"
|
|
40
|
+
role="dialog"
|
|
39
41
|
aria-modal="true"
|
|
40
42
|
aria-labelledby="popover-right-header"
|
|
41
43
|
aria-describedby="popover-right-body"
|
|
@@ -58,9 +60,10 @@ cssPrefix: pf-c-popover
|
|
|
58
60
|
|
|
59
61
|
### Bottom
|
|
60
62
|
|
|
61
|
-
```html
|
|
63
|
+
```html isFullscreen
|
|
62
64
|
<div
|
|
63
65
|
class="pf-c-popover pf-m-bottom"
|
|
66
|
+
role="dialog"
|
|
64
67
|
aria-modal="true"
|
|
65
68
|
aria-labelledby="popover-bottom-header"
|
|
66
69
|
aria-describedby="popover-bottom-body"
|
|
@@ -83,9 +86,10 @@ cssPrefix: pf-c-popover
|
|
|
83
86
|
|
|
84
87
|
### Left
|
|
85
88
|
|
|
86
|
-
```html
|
|
89
|
+
```html isFullscreen
|
|
87
90
|
<div
|
|
88
91
|
class="pf-c-popover pf-m-left"
|
|
92
|
+
role="dialog"
|
|
89
93
|
aria-modal="true"
|
|
90
94
|
aria-labelledby="popover-left-header"
|
|
91
95
|
aria-describedby="popover-left-body"
|
|
@@ -106,11 +110,12 @@ cssPrefix: pf-c-popover
|
|
|
106
110
|
|
|
107
111
|
```
|
|
108
112
|
|
|
109
|
-
### Left
|
|
113
|
+
### Left top
|
|
110
114
|
|
|
111
|
-
```html
|
|
115
|
+
```html isFullscreen
|
|
112
116
|
<div
|
|
113
117
|
class="pf-c-popover pf-m-left-top"
|
|
118
|
+
role="dialog"
|
|
114
119
|
aria-modal="true"
|
|
115
120
|
aria-labelledby="popover-left-start-header"
|
|
116
121
|
aria-describedby="popover-left-start-body"
|
|
@@ -128,9 +133,15 @@ cssPrefix: pf-c-popover
|
|
|
128
133
|
<footer class="pf-c-popover__footer">Popover footer</footer>
|
|
129
134
|
</div>
|
|
130
135
|
</div>
|
|
131
|
-
|
|
136
|
+
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Left bottom
|
|
140
|
+
|
|
141
|
+
```html isFullscreen
|
|
132
142
|
<div
|
|
133
143
|
class="pf-c-popover pf-m-left-bottom"
|
|
144
|
+
role="dialog"
|
|
134
145
|
aria-modal="true"
|
|
135
146
|
aria-labelledby="popover-left-end-header"
|
|
136
147
|
aria-describedby="popover-left-end-body"
|
|
@@ -151,11 +162,12 @@ cssPrefix: pf-c-popover
|
|
|
151
162
|
|
|
152
163
|
```
|
|
153
164
|
|
|
154
|
-
### Bottom
|
|
165
|
+
### Bottom left
|
|
155
166
|
|
|
156
|
-
```html
|
|
167
|
+
```html isFullscreen
|
|
157
168
|
<div
|
|
158
169
|
class="pf-c-popover pf-m-bottom-left"
|
|
170
|
+
role="dialog"
|
|
159
171
|
aria-modal="true"
|
|
160
172
|
aria-labelledby="popover-bottom-start-header"
|
|
161
173
|
aria-describedby="popover-bottom-start-body"
|
|
@@ -176,9 +188,15 @@ cssPrefix: pf-c-popover
|
|
|
176
188
|
<footer class="pf-c-popover__footer">Popover footer</footer>
|
|
177
189
|
</div>
|
|
178
190
|
</div>
|
|
179
|
-
|
|
191
|
+
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### Bottom right
|
|
195
|
+
|
|
196
|
+
```html isFullscreen
|
|
180
197
|
<div
|
|
181
198
|
class="pf-c-popover pf-m-bottom-right"
|
|
199
|
+
role="dialog"
|
|
182
200
|
aria-modal="true"
|
|
183
201
|
aria-labelledby="popover-bottom-end-header"
|
|
184
202
|
aria-describedby="popover-bottom-end-body"
|
|
@@ -201,9 +219,10 @@ cssPrefix: pf-c-popover
|
|
|
201
219
|
|
|
202
220
|
### Without header/footer
|
|
203
221
|
|
|
204
|
-
```html
|
|
222
|
+
```html isFullscreen
|
|
205
223
|
<div
|
|
206
224
|
class="pf-c-popover pf-m-right"
|
|
225
|
+
role="dialog"
|
|
207
226
|
aria-modal="true"
|
|
208
227
|
aria-label="Popover with no header example"
|
|
209
228
|
aria-describedby="popover-no-header-body"
|
|
@@ -224,9 +243,10 @@ cssPrefix: pf-c-popover
|
|
|
224
243
|
|
|
225
244
|
### No padding
|
|
226
245
|
|
|
227
|
-
```html
|
|
246
|
+
```html isFullscreen
|
|
228
247
|
<div
|
|
229
248
|
class="pf-c-popover pf-m-right pf-m-no-padding"
|
|
249
|
+
role="dialog"
|
|
230
250
|
aria-modal="true"
|
|
231
251
|
aria-label="Popover with no padding example"
|
|
232
252
|
aria-describedby="popover-no-padding-body"
|
|
@@ -244,9 +264,10 @@ cssPrefix: pf-c-popover
|
|
|
244
264
|
|
|
245
265
|
### Width auto
|
|
246
266
|
|
|
247
|
-
```html
|
|
267
|
+
```html isFullscreen
|
|
248
268
|
<div
|
|
249
269
|
class="pf-c-popover pf-m-right pf-m-width-auto"
|
|
270
|
+
role="dialog"
|
|
250
271
|
aria-modal="true"
|
|
251
272
|
aria-labelledby="popover-width-auto-header"
|
|
252
273
|
aria-describedby="popover-width-auto-body"
|
|
@@ -266,9 +287,10 @@ cssPrefix: pf-c-popover
|
|
|
266
287
|
|
|
267
288
|
### Popover with icon in the title
|
|
268
289
|
|
|
269
|
-
```html
|
|
290
|
+
```html isFullscreen
|
|
270
291
|
<div
|
|
271
292
|
class="pf-c-popover pf-m-left"
|
|
293
|
+
role="dialog"
|
|
272
294
|
aria-modal="true"
|
|
273
295
|
aria-labelledby="popover-top-header"
|
|
274
296
|
aria-describedby="popover-top-body"
|
|
@@ -298,9 +320,10 @@ cssPrefix: pf-c-popover
|
|
|
298
320
|
|
|
299
321
|
### Default alert popover
|
|
300
322
|
|
|
301
|
-
```html
|
|
323
|
+
```html isFullscreen
|
|
302
324
|
<div
|
|
303
325
|
class="pf-c-popover pf-m-default pf-m-left"
|
|
326
|
+
role="dialog"
|
|
304
327
|
aria-modal="true"
|
|
305
328
|
aria-labelledby="popover-top-header"
|
|
306
329
|
aria-describedby="popover-top-body"
|
|
@@ -334,9 +357,10 @@ cssPrefix: pf-c-popover
|
|
|
334
357
|
|
|
335
358
|
### Info alert popover
|
|
336
359
|
|
|
337
|
-
```html
|
|
360
|
+
```html isFullscreen
|
|
338
361
|
<div
|
|
339
362
|
class="pf-c-popover pf-m-info pf-m-top"
|
|
363
|
+
role="dialog"
|
|
340
364
|
aria-modal="true"
|
|
341
365
|
aria-labelledby="popover-top-header"
|
|
342
366
|
aria-describedby="popover-top-body"
|
|
@@ -370,9 +394,10 @@ cssPrefix: pf-c-popover
|
|
|
370
394
|
|
|
371
395
|
### Success alert popover
|
|
372
396
|
|
|
373
|
-
```html
|
|
397
|
+
```html isFullscreen
|
|
374
398
|
<div
|
|
375
399
|
class="pf-c-popover pf-m-success pf-m-top"
|
|
400
|
+
role="dialog"
|
|
376
401
|
aria-modal="true"
|
|
377
402
|
aria-labelledby="popover-top-header"
|
|
378
403
|
aria-describedby="popover-top-body"
|
|
@@ -406,9 +431,10 @@ cssPrefix: pf-c-popover
|
|
|
406
431
|
|
|
407
432
|
### Warning alert popover
|
|
408
433
|
|
|
409
|
-
```html
|
|
434
|
+
```html isFullscreen
|
|
410
435
|
<div
|
|
411
436
|
class="pf-c-popover pf-m-warning pf-m-top"
|
|
437
|
+
role="dialog"
|
|
412
438
|
aria-modal="true"
|
|
413
439
|
aria-labelledby="popover-top-header"
|
|
414
440
|
aria-describedby="popover-top-body"
|
|
@@ -442,9 +468,10 @@ cssPrefix: pf-c-popover
|
|
|
442
468
|
|
|
443
469
|
### Danger alert popover
|
|
444
470
|
|
|
445
|
-
```html
|
|
471
|
+
```html isFullscreen
|
|
446
472
|
<div
|
|
447
473
|
class="pf-c-popover pf-m-danger pf-m-top"
|
|
474
|
+
role="dialog"
|
|
448
475
|
aria-modal="true"
|
|
449
476
|
aria-labelledby="popover-top-header"
|
|
450
477
|
aria-describedby="popover-top-body"
|
|
@@ -486,7 +513,7 @@ A popover is used to provide contextual information for another component on cli
|
|
|
486
513
|
|
|
487
514
|
| Attribute | Applies to | Outcome |
|
|
488
515
|
| ----------------------------------------------------- | --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
489
|
-
| `role="dialog"` | `.pf-c-popover` | Identifies the element that serves as the popover container. **
|
|
516
|
+
| `role="dialog"` | `.pf-c-popover` | Identifies the element that serves as the popover container. **Required** |
|
|
490
517
|
| `aria-labelledby="[id value of .pf-c-title]"` | `.pf-c-popover` | Gives the popover an accessible name by referring to the element that provides the dialog title. **Required when .pf-c-title is present** |
|
|
491
518
|
| `aria-label="[title of popover]"` | `.pf-c-popover` | Gives the popover an accessible name. **Required when .pf-c-title is _not_ present** |
|
|
492
519
|
| `aria-describedby="[id value of applicable content]"` | `.pf-c-popover` | Gives the popover an accessible description by referring to the popover content that describes the primary message or purpose of the dialog. Not used if there is no static text that describes the popover. |
|