@patternfly/patternfly 4.204.0 → 4.204.3
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/FormControl/form-control.css +3 -2
- package/components/FormControl/form-control.scss +4 -3
- package/components/Popover/popover.css +1 -1
- package/components/Popover/popover.scss +1 -1
- 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 +5 -4
- package/patternfly.css +5 -4
- 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 {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.pf-c-form-control {
|
|
12
|
+
--pf-c-form-control--Color: var(--pf-global--Color--100);
|
|
12
13
|
--pf-c-form-control--FontSize: var(--pf-global--FontSize--md);
|
|
13
14
|
--pf-c-form-control--LineHeight: var(--pf-global--LineHeight--md);
|
|
14
15
|
--pf-c-form-control--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
@@ -131,7 +132,7 @@
|
|
|
131
132
|
--pf-c-form-control--m-icon-sprite__select--success--BackgroundPosition: calc(100% - var(--pf-global--spacer--md) + 1px - var(--pf-global--spacer--lg));
|
|
132
133
|
--pf-c-form-control--m-icon-sprite__select--m-warning--BackgroundPosition: calc(100% - var(--pf-global--spacer--md) - var(--pf-global--spacer--lg) + 0.0625rem);
|
|
133
134
|
--pf-c-form-control--m-icon-sprite__select--invalid--BackgroundPosition: calc(100% - var(--pf-global--spacer--md) - var(--pf-global--spacer--lg));
|
|
134
|
-
color: var(--pf-
|
|
135
|
+
color: var(--pf-c-form-control--Color);
|
|
135
136
|
width: var(--pf-c-form-control--Width);
|
|
136
137
|
padding: var(--pf-c-form-control--PaddingTop) var(--pf-c-form-control--PaddingRight) var(--pf-c-form-control--PaddingBottom) var(--pf-c-form-control--PaddingLeft);
|
|
137
138
|
font-size: var(--pf-c-form-control--FontSize);
|
|
@@ -176,8 +177,8 @@
|
|
|
176
177
|
border-bottom-width: var(--pf-c-form-control--m-expanded--BorderBottomWidth);
|
|
177
178
|
}
|
|
178
179
|
.pf-c-form-control:disabled {
|
|
179
|
-
--pf-c-form-control--Color: var(--pf-c-form-control--disabled--Color);
|
|
180
180
|
--pf-c-form-control--BackgroundColor: var(--pf-c-form-control--disabled--BackgroundColor);
|
|
181
|
+
color: var(--pf-c-form-control--disabled--Color);
|
|
181
182
|
cursor: not-allowed;
|
|
182
183
|
border-color: var(--pf-c-form-control--disabled--BorderColor);
|
|
183
184
|
}
|
|
@@ -27,6 +27,7 @@ $pf-c-form-control--m-clock--Coordinates: "M256 8C119 8 8 119 8 256s111 248 248
|
|
|
27
27
|
|
|
28
28
|
.pf-c-form-control {
|
|
29
29
|
// Component
|
|
30
|
+
--pf-c-form-control--Color: var(--pf-global--Color--100);
|
|
30
31
|
--pf-c-form-control--FontSize: var(--pf-global--FontSize--md);
|
|
31
32
|
--pf-c-form-control--LineHeight: var(--pf-global--LineHeight--md);
|
|
32
33
|
--pf-c-form-control--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
@@ -199,7 +200,7 @@ $pf-c-form-control--m-clock--Coordinates: "M256 8C119 8 8 119 8 256s111 248 248
|
|
|
199
200
|
--pf-c-form-control--m-icon-sprite__select--invalid--BackgroundPosition: calc(100% - var(--pf-global--spacer--md) - var(--pf-global--spacer--lg));
|
|
200
201
|
|
|
201
202
|
// This component always needs to be light
|
|
202
|
-
@include pf-t-light;
|
|
203
|
+
@include pf-t-light("--pf-c-form-control--Color");
|
|
203
204
|
|
|
204
205
|
width: var(--pf-c-form-control--Width);
|
|
205
206
|
padding: var(--pf-c-form-control--PaddingTop) var(--pf-c-form-control--PaddingRight) var(--pf-c-form-control--PaddingBottom) var(--pf-c-form-control--PaddingLeft);
|
|
@@ -216,7 +217,7 @@ $pf-c-form-control--m-clock--Coordinates: "M256 8C119 8 8 119 8 256s111 248 248
|
|
|
216
217
|
// stylelint-enable
|
|
217
218
|
|
|
218
219
|
&::placeholder {
|
|
219
|
-
color: var(--pf-c-form-control--placeholder--Color);
|
|
220
|
+
color: var(--pf-c-form-control--placeholder--Color); // update to set --pf-c-form-control--Color in breaking change - also look for any other place to do that in this component
|
|
220
221
|
}
|
|
221
222
|
|
|
222
223
|
&:not(textarea) {
|
|
@@ -261,9 +262,9 @@ $pf-c-form-control--m-clock--Coordinates: "M256 8C119 8 8 119 8 256s111 248 248
|
|
|
261
262
|
}
|
|
262
263
|
|
|
263
264
|
&:disabled {
|
|
264
|
-
--pf-c-form-control--Color: var(--pf-c-form-control--disabled--Color);
|
|
265
265
|
--pf-c-form-control--BackgroundColor: var(--pf-c-form-control--disabled--BackgroundColor);
|
|
266
266
|
|
|
267
|
+
color: var(--pf-c-form-control--disabled--Color);
|
|
267
268
|
cursor: not-allowed;
|
|
268
269
|
border-color: var(--pf-c-form-control--disabled--BorderColor);
|
|
269
270
|
}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
--pf-c-popover__arrow--m-left--Rotate: 45deg;
|
|
37
37
|
--pf-c-popover--c-button--MarginLeft: var(--pf-global--spacer--sm);
|
|
38
38
|
--pf-c-popover--c-button--Top: calc(var(--pf-c-popover__content--PaddingTop) - var(--pf-global--spacer--form-element));
|
|
39
|
-
--pf-c-popover--c-button--Right: var(--pf-global--spacer--md);
|
|
39
|
+
--pf-c-popover--c-button--Right: calc(var(--pf-c-popover__content--PaddingRight) - var(--pf-global--spacer--md));
|
|
40
40
|
--pf-c-popover--c-button--sibling--PaddingRight: var(--pf-global--spacer--2xl);
|
|
41
41
|
--pf-c-popover--c-title--MarginBottom: var(--pf-global--spacer--sm);
|
|
42
42
|
--pf-c-popover__title--MarginBottom: var(--pf-global--spacer--sm);
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
// Close
|
|
48
48
|
--pf-c-popover--c-button--MarginLeft: var(--pf-global--spacer--sm);
|
|
49
49
|
--pf-c-popover--c-button--Top: calc(var(--pf-c-popover__content--PaddingTop) - var(--pf-global--spacer--form-element)); // align top of button with top of text
|
|
50
|
-
--pf-c-popover--c-button--Right: var(--pf-global--spacer--md);
|
|
50
|
+
--pf-c-popover--c-button--Right: calc(var(--pf-c-popover__content--PaddingRight) - var(--pf-global--spacer--md)); // align right of content
|
|
51
51
|
--pf-c-popover--c-button--sibling--PaddingRight: var(--pf-global--spacer--2xl);
|
|
52
52
|
|
|
53
53
|
// Header
|
|
@@ -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>
|
|
@@ -39,6 +39,16 @@ cssPrefix: pf-c-form-control
|
|
|
39
39
|
/>
|
|
40
40
|
<br />
|
|
41
41
|
<br />
|
|
42
|
+
<input
|
|
43
|
+
class="pf-c-form-control"
|
|
44
|
+
disabled
|
|
45
|
+
type="text"
|
|
46
|
+
value="Disabled"
|
|
47
|
+
id="input-disabled"
|
|
48
|
+
aria-label="Disabled input example"
|
|
49
|
+
/>
|
|
50
|
+
<br />
|
|
51
|
+
<br />
|
|
42
52
|
<input
|
|
43
53
|
class="pf-c-form-control pf-m-success"
|
|
44
54
|
type="text"
|
|
@@ -68,16 +78,6 @@ cssPrefix: pf-c-form-control
|
|
|
68
78
|
/>
|
|
69
79
|
<br />
|
|
70
80
|
<br />
|
|
71
|
-
<input
|
|
72
|
-
class="pf-c-form-control"
|
|
73
|
-
disabled
|
|
74
|
-
type="text"
|
|
75
|
-
value="Disabled"
|
|
76
|
-
id="input-disabled"
|
|
77
|
-
aria-label="Disabled input example"
|
|
78
|
-
/>
|
|
79
|
-
<br />
|
|
80
|
-
<br />
|
|
81
81
|
<input
|
|
82
82
|
class="pf-c-form-control pf-m-expanded"
|
|
83
83
|
type="text"
|
|
@@ -123,11 +123,11 @@ cssPrefix: pf-c-form-control
|
|
|
123
123
|
```html
|
|
124
124
|
<select
|
|
125
125
|
class="pf-c-form-control pf-m-placeholder"
|
|
126
|
-
id="select-
|
|
127
|
-
name="select-
|
|
128
|
-
aria-label="
|
|
126
|
+
id="select-selectable-placeholder"
|
|
127
|
+
name="select-selectable-placeholder"
|
|
128
|
+
aria-label="Selectable placeholder select example"
|
|
129
129
|
>
|
|
130
|
-
<option value selected
|
|
130
|
+
<option value selected>Selectable placeholder</option>
|
|
131
131
|
<option value="Mr">Mr</option>
|
|
132
132
|
<option value="Miss">Miss</option>
|
|
133
133
|
<option value="Mrs">Mrs</option>
|
|
@@ -139,11 +139,11 @@ cssPrefix: pf-c-form-control
|
|
|
139
139
|
<br />
|
|
140
140
|
<select
|
|
141
141
|
class="pf-c-form-control pf-m-placeholder"
|
|
142
|
-
id="select-placeholder
|
|
143
|
-
name="select-placeholder
|
|
144
|
-
aria-label="
|
|
142
|
+
id="select-non-selectable-placeholder"
|
|
143
|
+
name="select-non-selectable-placeholder"
|
|
144
|
+
aria-label="Non-selectable placeholder select example"
|
|
145
145
|
>
|
|
146
|
-
<option value selected>
|
|
146
|
+
<option value selected disabled>Non-selectable placeholder</option>
|
|
147
147
|
<option value="Mr">Mr</option>
|
|
148
148
|
<option value="Miss">Miss</option>
|
|
149
149
|
<option value="Mrs">Mrs</option>
|
|
@@ -161,7 +161,7 @@ cssPrefix: pf-c-form-control
|
|
|
161
161
|
>
|
|
162
162
|
<optgroup label="Group 1">
|
|
163
163
|
<option value="Option 1">The first option</option>
|
|
164
|
-
<option value="Option 2" selected>
|
|
164
|
+
<option value="Option 2" selected>Option groups (second option selected)</option>
|
|
165
165
|
</optgroup>
|
|
166
166
|
<optgroup label="Group 2">
|
|
167
167
|
<option value="Option 3">The third option</option>
|
|
@@ -226,6 +226,21 @@ cssPrefix: pf-c-form-control
|
|
|
226
226
|
</select>
|
|
227
227
|
<br />
|
|
228
228
|
<br />
|
|
229
|
+
<select
|
|
230
|
+
class="pf-c-form-control pf-m-placeholder"
|
|
231
|
+
disabled
|
|
232
|
+
id="select-disabled"
|
|
233
|
+
name="select-disabled"
|
|
234
|
+
aria-label="Disabled select example"
|
|
235
|
+
>
|
|
236
|
+
<option value selected>Disabled</option>
|
|
237
|
+
<option value="Mr">Mr</option>
|
|
238
|
+
<option value="Miss">Miss</option>
|
|
239
|
+
<option value="Mrs">Mrs</option>
|
|
240
|
+
<option value="Ms">Ms</option>
|
|
241
|
+
<option value="Dr">Dr</option>
|
|
242
|
+
<option value="Other">Other</option>
|
|
243
|
+
</select>
|
|
229
244
|
|
|
230
245
|
```
|
|
231
246
|
|
|
@@ -251,6 +266,16 @@ cssPrefix: pf-c-form-control
|
|
|
251
266
|
</textarea>
|
|
252
267
|
<br />
|
|
253
268
|
<br />
|
|
269
|
+
<textarea
|
|
270
|
+
class="pf-c-form-control"
|
|
271
|
+
disabled
|
|
272
|
+
name="textarea-disabled"
|
|
273
|
+
id="textarea-disabled"
|
|
274
|
+
aria-label="Disabled textarea example"
|
|
275
|
+
>Disabled
|
|
276
|
+
</textarea>
|
|
277
|
+
<br />
|
|
278
|
+
<br />
|
|
254
279
|
<textarea
|
|
255
280
|
class="pf-c-form-control pf-m-success"
|
|
256
281
|
name="textarea-success"
|
|
@@ -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
|
+
}
|