@patternfly/patternfly 4.159.1 → 4.159.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/Table/table.css +2 -2
- package/components/Table/table.scss +2 -2
- package/docs/components/Table/examples/Table.md +500 -0
- package/docs/demos/Button/examples/Button.md +176 -0
- package/package.json +1 -1
- package/patternfly-no-reset.css +2 -2
- package/patternfly.css +2 -2
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
|
@@ -227,8 +227,8 @@
|
|
|
227
227
|
--pf-c-table--m-compact__expandable-row-content--PaddingRight: var(--pf-global--spacer--lg);
|
|
228
228
|
--pf-c-table--m-compact__expandable-row-content--PaddingBottom: var(--pf-global--spacer--lg);
|
|
229
229
|
--pf-c-table--m-compact__expandable-row-content--PaddingLeft: var(--pf-global--spacer--lg);
|
|
230
|
-
--pf-c-table--nested--first-last-child--PaddingRight: var(--pf-
|
|
231
|
-
--pf-c-table--nested--first-last-child--PaddingLeft: var(--pf-
|
|
230
|
+
--pf-c-table--nested--first-last-child--PaddingRight: var(--pf-c-table--m-compact--cell--first-last-child--PaddingLeft);
|
|
231
|
+
--pf-c-table--nested--first-last-child--PaddingLeft: var(--pf-c-table--m-compact--cell--first-last-child--PaddingRight);
|
|
232
232
|
--pf-c-table__expandable-row--m-expanded--BorderBottomColor: var(--pf-global--BorderColor--100);
|
|
233
233
|
--pf-c-table--tr--m-hoverable--BoxShadow--top: var(--pf-c-table--tr--BoxShadow--top--base);
|
|
234
234
|
--pf-c-table--tr--m-hoverable--BackgroundColor: transparent;
|
|
@@ -240,8 +240,8 @@
|
|
|
240
240
|
--pf-c-table--m-compact__expandable-row-content--PaddingLeft: var(--pf-global--spacer--lg);
|
|
241
241
|
|
|
242
242
|
// Nested table
|
|
243
|
-
--pf-c-table--nested--first-last-child--PaddingRight: var(--pf-
|
|
244
|
-
--pf-c-table--nested--first-last-child--PaddingLeft: var(--pf-
|
|
243
|
+
--pf-c-table--nested--first-last-child--PaddingRight: var(--pf-c-table--m-compact--cell--first-last-child--PaddingLeft);
|
|
244
|
+
--pf-c-table--nested--first-last-child--PaddingLeft: var(--pf-c-table--m-compact--cell--first-last-child--PaddingRight);
|
|
245
245
|
|
|
246
246
|
// Modifier - expandable row expanded
|
|
247
247
|
--pf-c-table__expandable-row--m-expanded--BorderBottomColor: var(--pf-global--BorderColor--100);
|
|
@@ -1251,6 +1251,506 @@ When header cells are empty or they contain interactive elements, `<th>` should
|
|
|
1251
1251
|
|
|
1252
1252
|
```
|
|
1253
1253
|
|
|
1254
|
+
### Expandable with nested table example
|
|
1255
|
+
|
|
1256
|
+
```html
|
|
1257
|
+
<table
|
|
1258
|
+
class="pf-c-table pf-m-expandable pf-m-grid-lg"
|
|
1259
|
+
role="grid"
|
|
1260
|
+
aria-label="Expandable with nested table example"
|
|
1261
|
+
id="table-expandable-nested-table"
|
|
1262
|
+
>
|
|
1263
|
+
<thead>
|
|
1264
|
+
<tr role="row">
|
|
1265
|
+
<td></td>
|
|
1266
|
+
<td class="pf-c-table__check" role="cell">
|
|
1267
|
+
<input
|
|
1268
|
+
type="checkbox"
|
|
1269
|
+
name="table-expandable-nested-table-check-all"
|
|
1270
|
+
aria-label="Select all rows"
|
|
1271
|
+
/>
|
|
1272
|
+
</td>
|
|
1273
|
+
<th
|
|
1274
|
+
class="pf-m-width-30 pf-c-table__sort pf-m-selected"
|
|
1275
|
+
role="columnheader"
|
|
1276
|
+
aria-sort="ascending"
|
|
1277
|
+
scope="col"
|
|
1278
|
+
>
|
|
1279
|
+
<button class="pf-c-table__button">
|
|
1280
|
+
<div class="pf-c-table__button-content">
|
|
1281
|
+
<span class="pf-c-table__text">Repositories</span>
|
|
1282
|
+
<span class="pf-c-table__sort-indicator">
|
|
1283
|
+
<i class="fas fa-long-arrow-alt-up"></i>
|
|
1284
|
+
</span>
|
|
1285
|
+
</div>
|
|
1286
|
+
</button>
|
|
1287
|
+
</th>
|
|
1288
|
+
<th
|
|
1289
|
+
class="pf-c-table__sort"
|
|
1290
|
+
role="columnheader"
|
|
1291
|
+
aria-sort="none"
|
|
1292
|
+
scope="col"
|
|
1293
|
+
>
|
|
1294
|
+
<button class="pf-c-table__button">
|
|
1295
|
+
<div class="pf-c-table__button-content">
|
|
1296
|
+
<span class="pf-c-table__text">Branches</span>
|
|
1297
|
+
<span class="pf-c-table__sort-indicator">
|
|
1298
|
+
<i class="fas fa-arrows-alt-v"></i>
|
|
1299
|
+
</span>
|
|
1300
|
+
</div>
|
|
1301
|
+
</button>
|
|
1302
|
+
</th>
|
|
1303
|
+
<th
|
|
1304
|
+
class="pf-c-table__sort"
|
|
1305
|
+
role="columnheader"
|
|
1306
|
+
aria-sort="none"
|
|
1307
|
+
scope="col"
|
|
1308
|
+
>
|
|
1309
|
+
<button class="pf-c-table__button">
|
|
1310
|
+
<div class="pf-c-table__button-content">
|
|
1311
|
+
<span class="pf-c-table__text">Pull requests</span>
|
|
1312
|
+
<span class="pf-c-table__sort-indicator">
|
|
1313
|
+
<i class="fas fa-arrows-alt-v"></i>
|
|
1314
|
+
</span>
|
|
1315
|
+
</div>
|
|
1316
|
+
</button>
|
|
1317
|
+
</th>
|
|
1318
|
+
<td></td>
|
|
1319
|
+
<td></td>
|
|
1320
|
+
</tr>
|
|
1321
|
+
</thead>
|
|
1322
|
+
|
|
1323
|
+
<tbody class="pf-m-expanded" role="rowgroup">
|
|
1324
|
+
<tr role="row">
|
|
1325
|
+
<td class="pf-c-table__toggle" role="cell">
|
|
1326
|
+
<button
|
|
1327
|
+
class="pf-c-button pf-m-plain pf-m-expanded"
|
|
1328
|
+
aria-labelledby="table-expandable-nested-table-node1 table-expandable-nested-table-expandable-toggle1"
|
|
1329
|
+
id="table-expandable-nested-table-expandable-toggle1"
|
|
1330
|
+
aria-label="Details"
|
|
1331
|
+
aria-controls="table-expandable-nested-table-content1"
|
|
1332
|
+
aria-expanded="true"
|
|
1333
|
+
>
|
|
1334
|
+
<div class="pf-c-table__toggle-icon">
|
|
1335
|
+
<i class="fas fa-angle-down" aria-hidden="true"></i>
|
|
1336
|
+
</div>
|
|
1337
|
+
</button>
|
|
1338
|
+
</td>
|
|
1339
|
+
|
|
1340
|
+
<td class="pf-c-table__check" role="cell">
|
|
1341
|
+
<input
|
|
1342
|
+
type="checkbox"
|
|
1343
|
+
name="table-expandable-nested-table-checkrow1"
|
|
1344
|
+
aria-labelledby="table-expandable-nested-table-node1"
|
|
1345
|
+
/>
|
|
1346
|
+
</td>
|
|
1347
|
+
<th role="columnheader" data-label="Repository name">
|
|
1348
|
+
<div>
|
|
1349
|
+
<div id="table-expandable-nested-table-node1">Node 1</div>
|
|
1350
|
+
<a href="#">siemur/test-space</a>
|
|
1351
|
+
</div>
|
|
1352
|
+
</th>
|
|
1353
|
+
<td role="cell" data-label="Branches">10</td>
|
|
1354
|
+
<td role="cell" data-label="Pull requests">25</td>
|
|
1355
|
+
<td role="cell" data-label="Action">
|
|
1356
|
+
<a href="#">Link 1</a>
|
|
1357
|
+
</td>
|
|
1358
|
+
<td class="pf-c-table__action" role="cell">
|
|
1359
|
+
<div class="pf-c-dropdown">
|
|
1360
|
+
<button
|
|
1361
|
+
class="pf-c-dropdown__toggle pf-m-plain"
|
|
1362
|
+
id="table-expandable-nested-table-dropdown-kebab-1-button"
|
|
1363
|
+
aria-expanded="false"
|
|
1364
|
+
type="button"
|
|
1365
|
+
aria-label="Actions"
|
|
1366
|
+
>
|
|
1367
|
+
<i class="fas fa-ellipsis-v" aria-hidden="true"></i>
|
|
1368
|
+
</button>
|
|
1369
|
+
<ul
|
|
1370
|
+
class="pf-c-dropdown__menu pf-m-align-right"
|
|
1371
|
+
aria-labelledby="table-expandable-nested-table-dropdown-kebab-1-button"
|
|
1372
|
+
hidden
|
|
1373
|
+
>
|
|
1374
|
+
<li>
|
|
1375
|
+
<a class="pf-c-dropdown__menu-item" href="#">Link</a>
|
|
1376
|
+
</li>
|
|
1377
|
+
<li>
|
|
1378
|
+
<button class="pf-c-dropdown__menu-item" type="button">Action</button>
|
|
1379
|
+
</li>
|
|
1380
|
+
<li>
|
|
1381
|
+
<a
|
|
1382
|
+
class="pf-c-dropdown__menu-item pf-m-disabled"
|
|
1383
|
+
href="#"
|
|
1384
|
+
aria-disabled="true"
|
|
1385
|
+
tabindex="-1"
|
|
1386
|
+
>Disabled link</a>
|
|
1387
|
+
</li>
|
|
1388
|
+
<li>
|
|
1389
|
+
<button
|
|
1390
|
+
class="pf-c-dropdown__menu-item"
|
|
1391
|
+
type="button"
|
|
1392
|
+
disabled
|
|
1393
|
+
>Disabled action</button>
|
|
1394
|
+
</li>
|
|
1395
|
+
<li class="pf-c-divider" role="separator"></li>
|
|
1396
|
+
<li>
|
|
1397
|
+
<a class="pf-c-dropdown__menu-item" href="#">Separated link</a>
|
|
1398
|
+
</li>
|
|
1399
|
+
</ul>
|
|
1400
|
+
</div>
|
|
1401
|
+
</td>
|
|
1402
|
+
</tr>
|
|
1403
|
+
|
|
1404
|
+
<tr class="pf-c-table__expandable-row pf-m-expanded" role="row">
|
|
1405
|
+
<td
|
|
1406
|
+
class
|
|
1407
|
+
role="cell"
|
|
1408
|
+
colspan="7"
|
|
1409
|
+
id="table-expandable-nested-table-content1"
|
|
1410
|
+
>
|
|
1411
|
+
<div class="pf-c-table__expandable-row-content">
|
|
1412
|
+
<table
|
|
1413
|
+
class="pf-c-table pf-m-compact pf-m-grid-md"
|
|
1414
|
+
role="grid"
|
|
1415
|
+
aria-label="This is a simple table"
|
|
1416
|
+
id="table-expandable-nested-table-table-basic"
|
|
1417
|
+
>
|
|
1418
|
+
<thead>
|
|
1419
|
+
<tr role="row">
|
|
1420
|
+
<th role="columnheader" scope="col">Repositories</th>
|
|
1421
|
+
<th role="columnheader" scope="col">Branches</th>
|
|
1422
|
+
<th role="columnheader" scope="col">Pull requests</th>
|
|
1423
|
+
<th role="columnheader" scope="col">Workspaces</th>
|
|
1424
|
+
<th role="columnheader" scope="col">Last commit</th>
|
|
1425
|
+
</tr>
|
|
1426
|
+
</thead>
|
|
1427
|
+
|
|
1428
|
+
<tbody role="rowgroup">
|
|
1429
|
+
<tr role="row">
|
|
1430
|
+
<td role="cell" data-label="Repository name">Repository 1</td>
|
|
1431
|
+
<td role="cell" data-label="Branches">10</td>
|
|
1432
|
+
<td role="cell" data-label="Pull requests">25</td>
|
|
1433
|
+
<td role="cell" data-label="Workspaces">5</td>
|
|
1434
|
+
<td role="cell" data-label="Last commit">2 days ago</td>
|
|
1435
|
+
</tr>
|
|
1436
|
+
|
|
1437
|
+
<tr role="row">
|
|
1438
|
+
<td role="cell" data-label="Repository name">Repository 2</td>
|
|
1439
|
+
<td role="cell" data-label="Branches">10</td>
|
|
1440
|
+
<td role="cell" data-label="Pull requests">25</td>
|
|
1441
|
+
<td role="cell" data-label="Workspaces">5</td>
|
|
1442
|
+
<td role="cell" data-label="Last commit">2 days ago</td>
|
|
1443
|
+
</tr>
|
|
1444
|
+
|
|
1445
|
+
<tr role="row">
|
|
1446
|
+
<td role="cell" data-label="Repository name">Repository 3</td>
|
|
1447
|
+
<td role="cell" data-label="Branches">10</td>
|
|
1448
|
+
<td role="cell" data-label="Pull requests">25</td>
|
|
1449
|
+
<td role="cell" data-label="Workspaces">5</td>
|
|
1450
|
+
<td role="cell" data-label="Last commit">2 days ago</td>
|
|
1451
|
+
</tr>
|
|
1452
|
+
|
|
1453
|
+
<tr role="row">
|
|
1454
|
+
<td role="cell" data-label="Repository name">Repository 4</td>
|
|
1455
|
+
<td role="cell" data-label="Branches">10</td>
|
|
1456
|
+
<td role="cell" data-label="Pull requests">25</td>
|
|
1457
|
+
<td role="cell" data-label="Workspaces">5</td>
|
|
1458
|
+
<td role="cell" data-label="Last commit">2 days ago</td>
|
|
1459
|
+
</tr>
|
|
1460
|
+
</tbody>
|
|
1461
|
+
</table>
|
|
1462
|
+
</div>
|
|
1463
|
+
</td>
|
|
1464
|
+
</tr>
|
|
1465
|
+
</tbody>
|
|
1466
|
+
|
|
1467
|
+
<tbody role="rowgroup">
|
|
1468
|
+
<tr role="row">
|
|
1469
|
+
<td class="pf-c-table__toggle" role="cell">
|
|
1470
|
+
<button
|
|
1471
|
+
class="pf-c-button pf-m-plain"
|
|
1472
|
+
aria-labelledby="table-expandable-nested-table-node2 table-expandable-nested-table-expandable-toggle2"
|
|
1473
|
+
id="table-expandable-nested-table-expandable-toggle2"
|
|
1474
|
+
aria-label="Details"
|
|
1475
|
+
aria-controls="table-expandable-nested-table-content2"
|
|
1476
|
+
>
|
|
1477
|
+
<div class="pf-c-table__toggle-icon">
|
|
1478
|
+
<i class="fas fa-angle-down" aria-hidden="true"></i>
|
|
1479
|
+
</div>
|
|
1480
|
+
</button>
|
|
1481
|
+
</td>
|
|
1482
|
+
|
|
1483
|
+
<td class="pf-c-table__check" role="cell">
|
|
1484
|
+
<input
|
|
1485
|
+
type="checkbox"
|
|
1486
|
+
name="table-expandable-nested-table-checkrow2"
|
|
1487
|
+
aria-labelledby="table-expandable-nested-table-node2"
|
|
1488
|
+
/>
|
|
1489
|
+
</td>
|
|
1490
|
+
<th role="columnheader" data-label="Repository name">
|
|
1491
|
+
<div>
|
|
1492
|
+
<div id="table-expandable-nested-table-node2">Node 2</div>
|
|
1493
|
+
<a href="#">siemur/test-space</a>
|
|
1494
|
+
</div>
|
|
1495
|
+
</th>
|
|
1496
|
+
<td role="cell" data-label="Branches">10</td>
|
|
1497
|
+
<td role="cell" data-label="Pull requests">25</td>
|
|
1498
|
+
<td role="cell" data-label="Action">
|
|
1499
|
+
<a href="#">Link 2</a>
|
|
1500
|
+
</td>
|
|
1501
|
+
<td class="pf-c-table__action" role="cell">
|
|
1502
|
+
<div class="pf-c-dropdown">
|
|
1503
|
+
<button
|
|
1504
|
+
class="pf-c-dropdown__toggle pf-m-plain"
|
|
1505
|
+
id="table-expandable-nested-table-dropdown-kebab-2-button"
|
|
1506
|
+
aria-expanded="false"
|
|
1507
|
+
type="button"
|
|
1508
|
+
aria-label="Actions"
|
|
1509
|
+
>
|
|
1510
|
+
<i class="fas fa-ellipsis-v" aria-hidden="true"></i>
|
|
1511
|
+
</button>
|
|
1512
|
+
<ul
|
|
1513
|
+
class="pf-c-dropdown__menu pf-m-align-right"
|
|
1514
|
+
aria-labelledby="table-expandable-nested-table-dropdown-kebab-2-button"
|
|
1515
|
+
hidden
|
|
1516
|
+
>
|
|
1517
|
+
<li>
|
|
1518
|
+
<a class="pf-c-dropdown__menu-item" href="#">Link</a>
|
|
1519
|
+
</li>
|
|
1520
|
+
<li>
|
|
1521
|
+
<button class="pf-c-dropdown__menu-item" type="button">Action</button>
|
|
1522
|
+
</li>
|
|
1523
|
+
<li>
|
|
1524
|
+
<a
|
|
1525
|
+
class="pf-c-dropdown__menu-item pf-m-disabled"
|
|
1526
|
+
href="#"
|
|
1527
|
+
aria-disabled="true"
|
|
1528
|
+
tabindex="-1"
|
|
1529
|
+
>Disabled link</a>
|
|
1530
|
+
</li>
|
|
1531
|
+
<li>
|
|
1532
|
+
<button
|
|
1533
|
+
class="pf-c-dropdown__menu-item"
|
|
1534
|
+
type="button"
|
|
1535
|
+
disabled
|
|
1536
|
+
>Disabled action</button>
|
|
1537
|
+
</li>
|
|
1538
|
+
<li class="pf-c-divider" role="separator"></li>
|
|
1539
|
+
<li>
|
|
1540
|
+
<a class="pf-c-dropdown__menu-item" href="#">Separated link</a>
|
|
1541
|
+
</li>
|
|
1542
|
+
</ul>
|
|
1543
|
+
</div>
|
|
1544
|
+
</td>
|
|
1545
|
+
</tr>
|
|
1546
|
+
|
|
1547
|
+
<tr class="pf-c-table__expandable-row" role="row">
|
|
1548
|
+
<td
|
|
1549
|
+
class
|
|
1550
|
+
role="cell"
|
|
1551
|
+
colspan="7"
|
|
1552
|
+
id="table-expandable-nested-table-content2"
|
|
1553
|
+
>
|
|
1554
|
+
<div
|
|
1555
|
+
class="pf-c-table__expandable-row-content"
|
|
1556
|
+
>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
|
|
1557
|
+
</td>
|
|
1558
|
+
</tr>
|
|
1559
|
+
</tbody>
|
|
1560
|
+
|
|
1561
|
+
<tbody class="pf-m-expanded" role="rowgroup">
|
|
1562
|
+
<tr role="row">
|
|
1563
|
+
<td class="pf-c-table__toggle" role="cell">
|
|
1564
|
+
<button
|
|
1565
|
+
class="pf-c-button pf-m-plain pf-m-expanded"
|
|
1566
|
+
aria-labelledby="table-expandable-nested-table-node3 table-expandable-nested-table-expandable-toggle3"
|
|
1567
|
+
id="table-expandable-nested-table-expandable-toggle3"
|
|
1568
|
+
aria-label="Details"
|
|
1569
|
+
aria-controls="table-expandable-nested-table-content3"
|
|
1570
|
+
aria-expanded="true"
|
|
1571
|
+
>
|
|
1572
|
+
<div class="pf-c-table__toggle-icon">
|
|
1573
|
+
<i class="fas fa-angle-down" aria-hidden="true"></i>
|
|
1574
|
+
</div>
|
|
1575
|
+
</button>
|
|
1576
|
+
</td>
|
|
1577
|
+
|
|
1578
|
+
<td class="pf-c-table__check" role="cell">
|
|
1579
|
+
<input
|
|
1580
|
+
type="checkbox"
|
|
1581
|
+
name="table-expandable-nested-table-checkrow3"
|
|
1582
|
+
aria-labelledby="table-expandable-nested-table-node3"
|
|
1583
|
+
/>
|
|
1584
|
+
</td>
|
|
1585
|
+
<th role="columnheader" data-label="Repository name">
|
|
1586
|
+
<div>
|
|
1587
|
+
<div id="table-expandable-nested-table-node3">Node 3</div>
|
|
1588
|
+
<a href="#">siemur/test-space</a>
|
|
1589
|
+
</div>
|
|
1590
|
+
</th>
|
|
1591
|
+
<td role="cell" data-label="Branches">10</td>
|
|
1592
|
+
<td role="cell" data-label="Pull requests">25</td>
|
|
1593
|
+
<td role="cell" data-label="Action">
|
|
1594
|
+
<a href="#">Link 3</a>
|
|
1595
|
+
</td>
|
|
1596
|
+
<td class="pf-c-table__action" role="cell">
|
|
1597
|
+
<div class="pf-c-dropdown">
|
|
1598
|
+
<button
|
|
1599
|
+
class="pf-c-dropdown__toggle pf-m-plain"
|
|
1600
|
+
id="table-expandable-nested-table-dropdown-kebab-3-button"
|
|
1601
|
+
aria-expanded="false"
|
|
1602
|
+
type="button"
|
|
1603
|
+
aria-label="Actions"
|
|
1604
|
+
>
|
|
1605
|
+
<i class="fas fa-ellipsis-v" aria-hidden="true"></i>
|
|
1606
|
+
</button>
|
|
1607
|
+
<ul
|
|
1608
|
+
class="pf-c-dropdown__menu pf-m-align-right"
|
|
1609
|
+
aria-labelledby="table-expandable-nested-table-dropdown-kebab-3-button"
|
|
1610
|
+
hidden
|
|
1611
|
+
>
|
|
1612
|
+
<li>
|
|
1613
|
+
<a class="pf-c-dropdown__menu-item" href="#">Link</a>
|
|
1614
|
+
</li>
|
|
1615
|
+
<li>
|
|
1616
|
+
<button class="pf-c-dropdown__menu-item" type="button">Action</button>
|
|
1617
|
+
</li>
|
|
1618
|
+
<li>
|
|
1619
|
+
<a
|
|
1620
|
+
class="pf-c-dropdown__menu-item pf-m-disabled"
|
|
1621
|
+
href="#"
|
|
1622
|
+
aria-disabled="true"
|
|
1623
|
+
tabindex="-1"
|
|
1624
|
+
>Disabled link</a>
|
|
1625
|
+
</li>
|
|
1626
|
+
<li>
|
|
1627
|
+
<button
|
|
1628
|
+
class="pf-c-dropdown__menu-item"
|
|
1629
|
+
type="button"
|
|
1630
|
+
disabled
|
|
1631
|
+
>Disabled action</button>
|
|
1632
|
+
</li>
|
|
1633
|
+
<li class="pf-c-divider" role="separator"></li>
|
|
1634
|
+
<li>
|
|
1635
|
+
<a class="pf-c-dropdown__menu-item" href="#">Separated link</a>
|
|
1636
|
+
</li>
|
|
1637
|
+
</ul>
|
|
1638
|
+
</div>
|
|
1639
|
+
</td>
|
|
1640
|
+
</tr>
|
|
1641
|
+
|
|
1642
|
+
<tr class="pf-c-table__expandable-row pf-m-expanded" role="row">
|
|
1643
|
+
<td
|
|
1644
|
+
class
|
|
1645
|
+
role="cell"
|
|
1646
|
+
colspan="7"
|
|
1647
|
+
id="table-expandable-nested-table-content3"
|
|
1648
|
+
>
|
|
1649
|
+
<div
|
|
1650
|
+
class="pf-c-table__expandable-row-content"
|
|
1651
|
+
>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
|
|
1652
|
+
</td>
|
|
1653
|
+
</tr>
|
|
1654
|
+
</tbody>
|
|
1655
|
+
|
|
1656
|
+
<tbody class="pf-m-expanded" role="rowgroup">
|
|
1657
|
+
<tr role="row">
|
|
1658
|
+
<td class="pf-c-table__toggle" role="cell">
|
|
1659
|
+
<button
|
|
1660
|
+
class="pf-c-button pf-m-plain pf-m-expanded"
|
|
1661
|
+
aria-labelledby="table-expandable-nested-table-node4 table-expandable-nested-table-expandable-toggle4"
|
|
1662
|
+
id="table-expandable-nested-table-expandable-toggle4"
|
|
1663
|
+
aria-label="Details"
|
|
1664
|
+
aria-controls="table-expandable-nested-table-content4"
|
|
1665
|
+
aria-expanded="true"
|
|
1666
|
+
>
|
|
1667
|
+
<div class="pf-c-table__toggle-icon">
|
|
1668
|
+
<i class="fas fa-angle-down" aria-hidden="true"></i>
|
|
1669
|
+
</div>
|
|
1670
|
+
</button>
|
|
1671
|
+
</td>
|
|
1672
|
+
|
|
1673
|
+
<td class="pf-c-table__check" role="cell">
|
|
1674
|
+
<input
|
|
1675
|
+
type="checkbox"
|
|
1676
|
+
name="table-expandable-nested-table-checkrow4"
|
|
1677
|
+
aria-labelledby="table-expandable-nested-table-node4"
|
|
1678
|
+
/>
|
|
1679
|
+
</td>
|
|
1680
|
+
<th role="columnheader" data-label="Repository name">
|
|
1681
|
+
<div>
|
|
1682
|
+
<div id="table-expandable-nested-table-node4">Node 4</div>
|
|
1683
|
+
<a href="#">siemur/test-space</a>
|
|
1684
|
+
</div>
|
|
1685
|
+
</th>
|
|
1686
|
+
<td role="cell" data-label="Branches">10</td>
|
|
1687
|
+
<td role="cell" data-label="Pull requests">25</td>
|
|
1688
|
+
<td role="cell" data-label="Action">
|
|
1689
|
+
<a href="#">Link 4</a>
|
|
1690
|
+
</td>
|
|
1691
|
+
<td class="pf-c-table__action" role="cell">
|
|
1692
|
+
<div class="pf-c-dropdown">
|
|
1693
|
+
<button
|
|
1694
|
+
class="pf-c-dropdown__toggle pf-m-plain"
|
|
1695
|
+
id="table-expandable-nested-table-dropdown-kebab-4-button"
|
|
1696
|
+
aria-expanded="false"
|
|
1697
|
+
type="button"
|
|
1698
|
+
aria-label="Actions"
|
|
1699
|
+
>
|
|
1700
|
+
<i class="fas fa-ellipsis-v" aria-hidden="true"></i>
|
|
1701
|
+
</button>
|
|
1702
|
+
<ul
|
|
1703
|
+
class="pf-c-dropdown__menu pf-m-align-right"
|
|
1704
|
+
aria-labelledby="table-expandable-nested-table-dropdown-kebab-4-button"
|
|
1705
|
+
hidden
|
|
1706
|
+
>
|
|
1707
|
+
<li>
|
|
1708
|
+
<a class="pf-c-dropdown__menu-item" href="#">Link</a>
|
|
1709
|
+
</li>
|
|
1710
|
+
<li>
|
|
1711
|
+
<button class="pf-c-dropdown__menu-item" type="button">Action</button>
|
|
1712
|
+
</li>
|
|
1713
|
+
<li>
|
|
1714
|
+
<a
|
|
1715
|
+
class="pf-c-dropdown__menu-item pf-m-disabled"
|
|
1716
|
+
href="#"
|
|
1717
|
+
aria-disabled="true"
|
|
1718
|
+
tabindex="-1"
|
|
1719
|
+
>Disabled link</a>
|
|
1720
|
+
</li>
|
|
1721
|
+
<li>
|
|
1722
|
+
<button
|
|
1723
|
+
class="pf-c-dropdown__menu-item"
|
|
1724
|
+
type="button"
|
|
1725
|
+
disabled
|
|
1726
|
+
>Disabled action</button>
|
|
1727
|
+
</li>
|
|
1728
|
+
<li class="pf-c-divider" role="separator"></li>
|
|
1729
|
+
<li>
|
|
1730
|
+
<a class="pf-c-dropdown__menu-item" href="#">Separated link</a>
|
|
1731
|
+
</li>
|
|
1732
|
+
</ul>
|
|
1733
|
+
</div>
|
|
1734
|
+
</td>
|
|
1735
|
+
</tr>
|
|
1736
|
+
|
|
1737
|
+
<tr class="pf-c-table__expandable-row pf-m-expanded" role="row">
|
|
1738
|
+
<td
|
|
1739
|
+
class="pf-m-no-padding"
|
|
1740
|
+
role="cell"
|
|
1741
|
+
colspan="7"
|
|
1742
|
+
id="table-expandable-nested-table-content4"
|
|
1743
|
+
>
|
|
1744
|
+
<div
|
|
1745
|
+
class="pf-c-table__expandable-row-content"
|
|
1746
|
+
>Expandable row content has no padding.</div>
|
|
1747
|
+
</td>
|
|
1748
|
+
</tr>
|
|
1749
|
+
</tbody>
|
|
1750
|
+
</table>
|
|
1751
|
+
|
|
1752
|
+
```
|
|
1753
|
+
|
|
1254
1754
|
Note: To apply padding to `.pf-c-table__expandable-row`, wrap the content in `.pf-c-table__expandable-row-content`. For no padding add `.pf-m-no-padding` to `.pf-c-table__expandable-row` > `<td>`
|
|
1255
1755
|
|
|
1256
1756
|
### Expandable accessibility
|