@patternfly/patternfly 4.203.4 → 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/components/Drawer/drawer.css +1 -1
- package/components/Drawer/drawer.scss +2 -2
- package/components/Menu/menu.css +1 -0
- package/components/Menu/menu.scss +1 -0
- package/components/NumberInput/number-input.css +11 -1
- package/components/NumberInput/number-input.scss +15 -1
- 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/NumberInput/examples/NumberInput.md +57 -6
- 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 +13 -2
- package/patternfly.css +13 -2
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
|
@@ -373,9 +373,9 @@ $pf-c-drawer__panel--list--width: (25, 33, 50, 66, 75, 100);
|
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
-
// Page level drawer
|
|
376
|
+
// Page level drawer - move to page component in breaking change
|
|
377
377
|
.pf-c-drawer__body > .pf-c-page__main {
|
|
378
|
-
|
|
378
|
+
height: 100%;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
.pf-c-drawer__splitter {
|
package/components/Menu/menu.css
CHANGED
|
@@ -10,11 +10,21 @@
|
|
|
10
10
|
--pf-c-number-input__unit--c-input-group--MarginLeft: var(--pf-global--spacer--sm);
|
|
11
11
|
--pf-c-number-input__icon--FontSize: var(--pf-global--FontSize--xs);
|
|
12
12
|
--pf-c-number-input--c-form-control--width-base: calc(var(--pf-global--spacer--sm) * 2 + var(--pf-global--BorderWidth--sm) * 2);
|
|
13
|
+
--pf-c-number-input--c-form-control--width-icon: 0px;
|
|
14
|
+
--pf-c-number-input--m-status--c-form-control--width-icon: var(--pf-global--spacer--xl);
|
|
13
15
|
--pf-c-number-input--c-form-control--width-chars: 4;
|
|
14
|
-
--pf-c-number-input--c-form-control--Width:
|
|
16
|
+
--pf-c-number-input--c-form-control--Width:
|
|
17
|
+
calc(
|
|
18
|
+
calc(
|
|
19
|
+
var(--pf-c-number-input--c-form-control--width-base) + var(--pf-c-number-input--c-form-control--width-chars) * 1ch
|
|
20
|
+
) + var(--pf-c-number-input--c-form-control--width-icon)
|
|
21
|
+
);
|
|
15
22
|
display: inline-flex;
|
|
16
23
|
align-items: center;
|
|
17
24
|
}
|
|
25
|
+
.pf-c-number-input.pf-m-status {
|
|
26
|
+
--pf-c-number-input--c-form-control--width-icon: var(--pf-c-number-input--m-status--c-form-control--width-icon);
|
|
27
|
+
}
|
|
18
28
|
.pf-c-number-input .pf-c-form-control {
|
|
19
29
|
display: inline-flex;
|
|
20
30
|
width: var(--pf-c-number-input--c-form-control--Width);
|
|
@@ -7,12 +7,26 @@
|
|
|
7
7
|
|
|
8
8
|
// form control
|
|
9
9
|
--pf-c-number-input--c-form-control--width-base: calc(var(--pf-global--spacer--sm) * 2 + var(--pf-global--BorderWidth--sm) * 2); // element's padding
|
|
10
|
+
// stylelint-disable length-zero-no-unit
|
|
11
|
+
--pf-c-number-input--c-form-control--width-icon: 0px;
|
|
12
|
+
// stylelint-enable length-zero-no-unit
|
|
13
|
+
--pf-c-number-input--m-status--c-form-control--width-icon: var(--pf-global--spacer--xl); // extra width to accommodate a status icon
|
|
10
14
|
--pf-c-number-input--c-form-control--width-chars: 4;
|
|
11
|
-
--pf-c-number-input--c-form-control--Width:
|
|
15
|
+
--pf-c-number-input--c-form-control--Width:
|
|
16
|
+
calc(
|
|
17
|
+
calc(
|
|
18
|
+
var(--pf-c-number-input--c-form-control--width-base) + var(--pf-c-number-input--c-form-control--width-chars) * 1ch
|
|
19
|
+
) + var(--pf-c-number-input--c-form-control--width-icon)
|
|
20
|
+
);
|
|
12
21
|
|
|
13
22
|
display: inline-flex;
|
|
14
23
|
align-items: center;
|
|
15
24
|
|
|
25
|
+
// This modifier can be removed in a breaking change and the extra space created can always be included.
|
|
26
|
+
&.pf-m-status {
|
|
27
|
+
--pf-c-number-input--c-form-control--width-icon: var(--pf-c-number-input--m-status--c-form-control--width-icon);
|
|
28
|
+
}
|
|
29
|
+
|
|
16
30
|
.pf-c-form-control {
|
|
17
31
|
display: inline-flex;
|
|
18
32
|
width: var(--pf-c-number-input--c-form-control--Width);
|
|
@@ -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. |
|
|
@@ -191,6 +191,56 @@ cssPrefix: pf-c-number-input
|
|
|
191
191
|
|
|
192
192
|
```
|
|
193
193
|
|
|
194
|
+
### With status
|
|
195
|
+
|
|
196
|
+
```html
|
|
197
|
+
<div class="pf-c-number-input pf-m-status">
|
|
198
|
+
<div class="pf-c-input-group">
|
|
199
|
+
<button class="pf-c-button pf-m-control" type="button" aria-label="Minus">
|
|
200
|
+
<span class="pf-c-number-input__icon">
|
|
201
|
+
<i class="fas fa-minus" aria-hidden="true"></i>
|
|
202
|
+
</span>
|
|
203
|
+
</button>
|
|
204
|
+
<input
|
|
205
|
+
class="pf-c-form-control"
|
|
206
|
+
type="number"
|
|
207
|
+
value="90"
|
|
208
|
+
name="number-input-status-name"
|
|
209
|
+
aria-label="Number input"
|
|
210
|
+
/>
|
|
211
|
+
<button class="pf-c-button pf-m-control" type="button" aria-label="Plus">
|
|
212
|
+
<span class="pf-c-number-input__icon">
|
|
213
|
+
<i class="fas fa-plus" aria-hidden="true"></i>
|
|
214
|
+
</span>
|
|
215
|
+
</button>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
<br />
|
|
219
|
+
<br />
|
|
220
|
+
<div class="pf-c-number-input pf-m-status">
|
|
221
|
+
<div class="pf-c-input-group">
|
|
222
|
+
<button class="pf-c-button pf-m-control" type="button" aria-label="Minus">
|
|
223
|
+
<span class="pf-c-number-input__icon">
|
|
224
|
+
<i class="fas fa-minus" aria-hidden="true"></i>
|
|
225
|
+
</span>
|
|
226
|
+
</button>
|
|
227
|
+
<input
|
|
228
|
+
class="pf-c-form-control pf-m-warning"
|
|
229
|
+
type="number"
|
|
230
|
+
value="90"
|
|
231
|
+
name="number-input-status-warning-name"
|
|
232
|
+
aria-label="Number input"
|
|
233
|
+
/>
|
|
234
|
+
<button class="pf-c-button pf-m-control" type="button" aria-label="Plus">
|
|
235
|
+
<span class="pf-c-number-input__icon">
|
|
236
|
+
<i class="fas fa-plus" aria-hidden="true"></i>
|
|
237
|
+
</span>
|
|
238
|
+
</button>
|
|
239
|
+
</div>
|
|
240
|
+
</div>
|
|
241
|
+
|
|
242
|
+
```
|
|
243
|
+
|
|
194
244
|
### Varying sizes
|
|
195
245
|
|
|
196
246
|
```html
|
|
@@ -311,9 +361,10 @@ cssPrefix: pf-c-number-input
|
|
|
311
361
|
|
|
312
362
|
### Usage
|
|
313
363
|
|
|
314
|
-
| Class | Applied
|
|
315
|
-
| -------------------------------------------------- | -------------------- |
|
|
316
|
-
| `.pf-c-number-input` | `<div>` | Initiates the number input component.
|
|
317
|
-
| `.pf-c-number-input__icon` | `<span>` | Initiates the number input icon.
|
|
318
|
-
| `.pf-c-number-input__unit` | `<span>` | Initiates the number input unit.
|
|
319
|
-
|
|
|
364
|
+
| Class | Applied to | Outcome |
|
|
365
|
+
| -------------------------------------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
366
|
+
| `.pf-c-number-input` | `<div>` | Initiates the number input component. |
|
|
367
|
+
| `.pf-c-number-input__icon` | `<span>` | Initiates the number input icon. |
|
|
368
|
+
| `.pf-c-number-input__unit` | `<span>` | Initiates the number input unit. |
|
|
369
|
+
| `.pf-m-status` | `.pf-c-number-input` | Modifies the width to create enough space for a status icon to be included in the form control portion of the number input. **Required** if a status icon may be shown, even if the icon is not currently shown. |
|
|
370
|
+
| `--pf-c-number-input--c-form-control--width-chars` | `.pf-c-number-input` | Specifies the number of characters to show in the input. |
|
|
@@ -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
|
+
}
|