@patternfly/patternfly 4.204.1 → 4.204.2
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/docs/components/DescriptionList/examples/DescriptionList.md +21 -21
- 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
|
@@ -1235,7 +1235,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1235
1235
|
|
|
1236
1236
|
```html
|
|
1237
1237
|
<dl class="pf-c-description-list pf-m-2-col-on-lg">
|
|
1238
|
-
<div class="pf-c-card
|
|
1238
|
+
<div class="pf-c-card">
|
|
1239
1239
|
<dt class="pf-c-description-list__term">
|
|
1240
1240
|
<span class="pf-c-description-list__text">Name</span>
|
|
1241
1241
|
</dt>
|
|
@@ -1243,7 +1243,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1243
1243
|
<div class="pf-c-description-list__text">example</div>
|
|
1244
1244
|
</dd>
|
|
1245
1245
|
</div>
|
|
1246
|
-
<div class="pf-c-card
|
|
1246
|
+
<div class="pf-c-card">
|
|
1247
1247
|
<dt class="pf-c-description-list__term">
|
|
1248
1248
|
<span class="pf-c-description-list__text">Namespace</span>
|
|
1249
1249
|
</dt>
|
|
@@ -1253,7 +1253,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1253
1253
|
</div>
|
|
1254
1254
|
</dd>
|
|
1255
1255
|
</div>
|
|
1256
|
-
<div class="pf-c-card
|
|
1256
|
+
<div class="pf-c-card">
|
|
1257
1257
|
<dt class="pf-c-description-list__term">
|
|
1258
1258
|
<span class="pf-c-description-list__text">Labels</span>
|
|
1259
1259
|
</dt>
|
|
@@ -1261,7 +1261,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1261
1261
|
<div class="pf-c-description-list__text">example</div>
|
|
1262
1262
|
</dd>
|
|
1263
1263
|
</div>
|
|
1264
|
-
<div class="pf-c-card
|
|
1264
|
+
<div class="pf-c-card">
|
|
1265
1265
|
<dt class="pf-c-description-list__term">
|
|
1266
1266
|
<span class="pf-c-description-list__text">Pod selector</span>
|
|
1267
1267
|
</dt>
|
|
@@ -1276,7 +1276,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1276
1276
|
</div>
|
|
1277
1277
|
</dd>
|
|
1278
1278
|
</div>
|
|
1279
|
-
<div class="pf-c-card
|
|
1279
|
+
<div class="pf-c-card">
|
|
1280
1280
|
<dt class="pf-c-description-list__term">
|
|
1281
1281
|
<span class="pf-c-description-list__text">Annotation</span>
|
|
1282
1282
|
</dt>
|
|
@@ -1292,7 +1292,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1292
1292
|
|
|
1293
1293
|
```html
|
|
1294
1294
|
<dl class="pf-c-description-list pf-m-display-lg pf-m-2-col-on-lg">
|
|
1295
|
-
<div class="pf-c-card
|
|
1295
|
+
<div class="pf-c-card">
|
|
1296
1296
|
<dt class="pf-c-description-list__term">
|
|
1297
1297
|
<span class="pf-c-description-list__text">Name</span>
|
|
1298
1298
|
</dt>
|
|
@@ -1300,7 +1300,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1300
1300
|
<div class="pf-c-description-list__text">example</div>
|
|
1301
1301
|
</dd>
|
|
1302
1302
|
</div>
|
|
1303
|
-
<div class="pf-c-card
|
|
1303
|
+
<div class="pf-c-card">
|
|
1304
1304
|
<dt class="pf-c-description-list__term">
|
|
1305
1305
|
<span class="pf-c-description-list__text">Namespace</span>
|
|
1306
1306
|
</dt>
|
|
@@ -1310,7 +1310,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1310
1310
|
</div>
|
|
1311
1311
|
</dd>
|
|
1312
1312
|
</div>
|
|
1313
|
-
<div class="pf-c-card
|
|
1313
|
+
<div class="pf-c-card">
|
|
1314
1314
|
<dt class="pf-c-description-list__term">
|
|
1315
1315
|
<span class="pf-c-description-list__text">Labels</span>
|
|
1316
1316
|
</dt>
|
|
@@ -1318,7 +1318,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1318
1318
|
<div class="pf-c-description-list__text">example</div>
|
|
1319
1319
|
</dd>
|
|
1320
1320
|
</div>
|
|
1321
|
-
<div class="pf-c-card
|
|
1321
|
+
<div class="pf-c-card">
|
|
1322
1322
|
<dt class="pf-c-description-list__term">
|
|
1323
1323
|
<span class="pf-c-description-list__text">Pod selector</span>
|
|
1324
1324
|
</dt>
|
|
@@ -1333,7 +1333,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1333
1333
|
</div>
|
|
1334
1334
|
</dd>
|
|
1335
1335
|
</div>
|
|
1336
|
-
<div class="pf-c-card
|
|
1336
|
+
<div class="pf-c-card">
|
|
1337
1337
|
<dt class="pf-c-description-list__term">
|
|
1338
1338
|
<span class="pf-c-description-list__text">Annotation</span>
|
|
1339
1339
|
</dt>
|
|
@@ -1349,7 +1349,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1349
1349
|
|
|
1350
1350
|
```html
|
|
1351
1351
|
<dl class="pf-c-description-list pf-m-display-2xl pf-m-2-col-on-lg">
|
|
1352
|
-
<div class="pf-c-card
|
|
1352
|
+
<div class="pf-c-card">
|
|
1353
1353
|
<dt class="pf-c-description-list__term">
|
|
1354
1354
|
<span class="pf-c-description-list__text">Name</span>
|
|
1355
1355
|
</dt>
|
|
@@ -1357,7 +1357,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1357
1357
|
<div class="pf-c-description-list__text">example</div>
|
|
1358
1358
|
</dd>
|
|
1359
1359
|
</div>
|
|
1360
|
-
<div class="pf-c-card
|
|
1360
|
+
<div class="pf-c-card">
|
|
1361
1361
|
<dt class="pf-c-description-list__term">
|
|
1362
1362
|
<span class="pf-c-description-list__text">Namespace</span>
|
|
1363
1363
|
</dt>
|
|
@@ -1367,7 +1367,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1367
1367
|
</div>
|
|
1368
1368
|
</dd>
|
|
1369
1369
|
</div>
|
|
1370
|
-
<div class="pf-c-card
|
|
1370
|
+
<div class="pf-c-card">
|
|
1371
1371
|
<dt class="pf-c-description-list__term">
|
|
1372
1372
|
<span class="pf-c-description-list__text">Labels</span>
|
|
1373
1373
|
</dt>
|
|
@@ -1375,7 +1375,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1375
1375
|
<div class="pf-c-description-list__text">example</div>
|
|
1376
1376
|
</dd>
|
|
1377
1377
|
</div>
|
|
1378
|
-
<div class="pf-c-card
|
|
1378
|
+
<div class="pf-c-card">
|
|
1379
1379
|
<dt class="pf-c-description-list__term">
|
|
1380
1380
|
<span class="pf-c-description-list__text">Pod selector</span>
|
|
1381
1381
|
</dt>
|
|
@@ -1390,7 +1390,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1390
1390
|
</div>
|
|
1391
1391
|
</dd>
|
|
1392
1392
|
</div>
|
|
1393
|
-
<div class="pf-c-card
|
|
1393
|
+
<div class="pf-c-card">
|
|
1394
1394
|
<dt class="pf-c-description-list__term">
|
|
1395
1395
|
<span class="pf-c-description-list__text">Annotation</span>
|
|
1396
1396
|
</dt>
|
|
@@ -1406,7 +1406,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1406
1406
|
|
|
1407
1407
|
```html
|
|
1408
1408
|
<dl class="pf-c-description-list pf-m-3-col-on-lg pf-m-display-lg">
|
|
1409
|
-
<div class="pf-c-card
|
|
1409
|
+
<div class="pf-c-card">
|
|
1410
1410
|
<dt class="pf-c-description-list__term">
|
|
1411
1411
|
<span class="pf-c-description-list__text">Name</span>
|
|
1412
1412
|
</dt>
|
|
@@ -1414,7 +1414,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1414
1414
|
<div class="pf-c-description-list__text">example</div>
|
|
1415
1415
|
</dd>
|
|
1416
1416
|
</div>
|
|
1417
|
-
<div class="pf-c-card
|
|
1417
|
+
<div class="pf-c-card">
|
|
1418
1418
|
<dt class="pf-c-description-list__term">
|
|
1419
1419
|
<span class="pf-c-description-list__text">Namespace</span>
|
|
1420
1420
|
</dt>
|
|
@@ -1424,7 +1424,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1424
1424
|
</div>
|
|
1425
1425
|
</dd>
|
|
1426
1426
|
</div>
|
|
1427
|
-
<div class="pf-c-card
|
|
1427
|
+
<div class="pf-c-card">
|
|
1428
1428
|
<dt class="pf-c-description-list__term">
|
|
1429
1429
|
<span class="pf-c-description-list__text">Labels</span>
|
|
1430
1430
|
</dt>
|
|
@@ -1443,7 +1443,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1443
1443
|
class="pf-c-description-list pf-m-2-col-on-lg pf-m-display-lg pf-m-horizontal"
|
|
1444
1444
|
style="--pf-c-description-list__term--width: 10ch;"
|
|
1445
1445
|
>
|
|
1446
|
-
<div class="pf-c-card
|
|
1446
|
+
<div class="pf-c-card">
|
|
1447
1447
|
<dt class="pf-c-description-list__term">
|
|
1448
1448
|
<span class="pf-c-description-list__text">Name</span>
|
|
1449
1449
|
</dt>
|
|
@@ -1451,7 +1451,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1451
1451
|
<div class="pf-c-description-list__text">example</div>
|
|
1452
1452
|
</dd>
|
|
1453
1453
|
</div>
|
|
1454
|
-
<div class="pf-c-card
|
|
1454
|
+
<div class="pf-c-card">
|
|
1455
1455
|
<dt class="pf-c-description-list__term">
|
|
1456
1456
|
<span class="pf-c-description-list__text">Namespace</span>
|
|
1457
1457
|
</dt>
|
|
@@ -1461,7 +1461,7 @@ Cards can be used as [description list group wrappers](../card#description-list-
|
|
|
1461
1461
|
</div>
|
|
1462
1462
|
</dd>
|
|
1463
1463
|
</div>
|
|
1464
|
-
<div class="pf-c-card
|
|
1464
|
+
<div class="pf-c-card">
|
|
1465
1465
|
<dt class="pf-c-description-list__term">
|
|
1466
1466
|
<span class="pf-c-description-list__text">Labels</span>
|
|
1467
1467
|
</dt>
|
|
@@ -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. |
|