@patternfly/patternfly 6.5.0-prerelease.7 → 6.5.0-prerelease.9

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.
@@ -2,9 +2,9 @@
2
2
  id: Data list
3
3
  section: components
4
4
  cssPrefix: pf-v6-c-data-list
5
- ---## Examples
5
+ ---## Basic data list
6
6
 
7
- ### Basic
7
+ ### Basic data list example
8
8
 
9
9
  ```html
10
10
  <ul
@@ -40,7 +40,7 @@ cssPrefix: pf-v6-c-data-list
40
40
 
41
41
  ```
42
42
 
43
- ### Accessibility
43
+ ### Basic data list accessibility
44
44
 
45
45
  | Attribute | Applied to | Outcome |
46
46
  | -- | -- | -- |
@@ -49,7 +49,7 @@ cssPrefix: pf-v6-c-data-list
49
49
  | `aria-labelledby` | `.pf-v6-c-data-list__item` | Provides an accessible description for data list item. **Required** |
50
50
  | `id` | `.pf-v6-c-data-list__cell`, `.pf-v6-c-data-list__cell *` | Provides a reference for data list item description. **Required** |
51
51
 
52
- ### Usage
52
+ ### Basic data list usage
53
53
 
54
54
  | Class | Applied to | Outcome |
55
55
  | -- | -- | -- |
@@ -63,7 +63,9 @@ cssPrefix: pf-v6-c-data-list
63
63
  | `.pf-m-no-fill` | `.pf-v6-c-data-list__cell` | Modifies a data list cell to not fill the available horizontal space. |
64
64
  | `.pf-m-align-right` | `.pf-v6-c-data-list__cell` | Modifies a data list cell to align-right. |
65
65
 
66
- ### With headings
66
+ ## Data list with headings
67
+
68
+ ### Data list with headings example
67
69
 
68
70
  ```html
69
71
  <ul
@@ -76,7 +78,7 @@ cssPrefix: pf-v6-c-data-list
76
78
  <div class="pf-v6-c-data-list__item-row">
77
79
  <div class="pf-v6-c-data-list__item-content">
78
80
  <div class="pf-v6-c-data-list__cell">
79
- <h2 id="data-list-with-headings-item-1">Primary content</h2>
81
+ <h4 id="data-list-with-headings-item-1">Primary content</h4>
80
82
  </div>
81
83
  <div class="pf-v6-c-data-list__cell">Secondary content</div>
82
84
  </div>
@@ -87,9 +89,9 @@ cssPrefix: pf-v6-c-data-list
87
89
  <div class="pf-v6-c-data-list__item-row">
88
90
  <div class="pf-v6-c-data-list__item-content">
89
91
  <div class="pf-v6-c-data-list__cell pf-m-no-fill">
90
- <h2
92
+ <h4
91
93
  id="data-list-with-headings-item-2"
92
- >Secondary content (pf-m-no-fill)</h2>
94
+ >Secondary content (pf-m-no-fill)</h4>
93
95
  </div>
94
96
  <div
95
97
  class="pf-v6-c-data-list__cell pf-m-no-fill pf-m-align-right"
@@ -101,11 +103,13 @@ cssPrefix: pf-v6-c-data-list
101
103
 
102
104
  ```
103
105
 
104
- ### Usage
106
+ ### Data list with headings usage
105
107
 
106
108
  When a list item includes more than one block of content, it can be difficult for some screen reader users to discern where one list item ends and the next one begins. A simple way to provide better separation of list items is to define the primary content section as a heading. Headings are useful for indicating a new section of contents, but also provide an easy way for screen reader users to navigate to specific sections on the page. The heading level should be based on the context in which the DataList component is being used. For example, if the heading for the section that contains the DataList is a level 3, then `h4` elements should be used in the DataList list items.
107
109
 
108
- ### Checkboxes, actions, and additional cells
110
+ ## Data list with checkboxes, actions, and additional cells
111
+
112
+ ### Data list with checkboxes, actions, and additional cells example
109
113
 
110
114
  ```html
111
115
  <ul
@@ -284,7 +288,7 @@ When a list item includes more than one block of content, it can be difficult fo
284
288
 
285
289
  ```
286
290
 
287
- ### Accessibility
291
+ ### Data list with checkboxes, actions, and additional cells accessibility
288
292
 
289
293
  | Attribute | Applied to | Outcome |
290
294
  | -- | -- | -- |
@@ -293,7 +297,7 @@ When a list item includes more than one block of content, it can be difficult fo
293
297
  | `aria-labelledby="{title_cell_id} {data_list_action_id}"` | `.pf-v6-c-data-list__action` > `.pf-v6-c-button` | Creates an accessible label for the action button using the title cell and button label **Required** |
294
298
  | `id` | `.pf-v6-c-data-list__cell > *`, `.pf-v6-c-data-list__check` > `.pf-v6-c-check__input`, `.pf-v6-c-data-list__action` > `.pf-v6-c-button` | Provides a reference for interactive elements. **Required** |
295
299
 
296
- ### Usage
300
+ ### Data list with checkboxes, actions, and additional cells usage
297
301
 
298
302
  | Class | Applied to | Outcome |
299
303
  | -- | -- | -- |
@@ -304,7 +308,9 @@ When a list item includes more than one block of content, it can be difficult fo
304
308
  | `.pf-m-hidden{-on-[breakpoint]}` | `.pf-v6-c-data-list__item-action` | Hides an actions container at optional [breakpoint](/tokens/all-patternfly-tokens), or hides it at all breakpoints with `.pf-m-hidden`. |
305
309
  | `.pf-m-visible{-on-[breakpoint]}` | `.pf-v6-c-data-list__item-action` | Shows an actions container at optional [breakpoint](/tokens/all-patternfly-tokens). |
306
310
 
307
- ### Expandable
311
+ ## Exandable data list
312
+
313
+ ### Expandable data list example
308
314
 
309
315
  ```html
310
316
  <ul
@@ -498,7 +504,7 @@ When a list item includes more than one block of content, it can be difficult fo
498
504
 
499
505
  ```
500
506
 
501
- ### Expandable compact
507
+ ### Compact expandable data list example
502
508
 
503
509
  ```html
504
510
  <ul
@@ -695,7 +701,7 @@ When a list item includes more than one block of content, it can be difficult fo
695
701
 
696
702
  ```
697
703
 
698
- ### Expandable nested
704
+ ### Nested expandable data list example
699
705
 
700
706
  ```html
701
707
  <ul
@@ -1015,7 +1021,9 @@ When a list item includes more than one block of content, it can be difficult fo
1015
1021
 
1016
1022
  ```
1017
1023
 
1018
- ### Compact
1024
+ ## Compact data list
1025
+
1026
+ ### Compact data list example
1019
1027
 
1020
1028
  ```html
1021
1029
  <ul
@@ -1188,7 +1196,7 @@ When a list item includes more than one block of content, it can be difficult fo
1188
1196
 
1189
1197
  ```
1190
1198
 
1191
- ### Accessibility
1199
+ ### Compact data list accessibility
1192
1200
 
1193
1201
  | Attribute | Applied to | Outcome |
1194
1202
  | -- | -- | -- |
@@ -1199,7 +1207,7 @@ When a list item includes more than one block of content, it can be difficult fo
1199
1207
  | `id="{button_id}"` | `.pf-v6-c-data-list__toggle` > `.pf-v6-c-button` | Provides a reference for toggle button description. **Required** |
1200
1208
  | `aria-controls="[id of element controlled]"` | `.pf-v6-c-data-list__toggle` > `.pf-v6-c-button` | Identifies the section controlled by the toggle button. **Required** |
1201
1209
 
1202
- ### Usage
1210
+ ### Compact data list usage
1203
1211
 
1204
1212
  | Class | Applied to | Outcome |
1205
1213
  | -- | -- | -- |
@@ -1213,15 +1221,16 @@ When a list item includes more than one block of content, it can be difficult fo
1213
1221
  | `.pf-m-no-padding` | `.pf-v6-c-data-list__expandable-content-body` | Removes padding for the expandable content body. |
1214
1222
  | `.pf-m-icon` | `.pf-v6-c-data-list__cell` | Modifies a data list cell to not grow and align-left when its the first data-list\_\_cell element. |
1215
1223
 
1216
- ### Modifiers
1224
+ ## Data list modifiers
1225
+
1226
+ ### Data list flex modifiers example
1217
1227
 
1218
1228
  ```html
1219
- <h2 class="Preview__section-title">Default fitting - example 1</h2>
1220
1229
  <ul
1221
1230
  class="pf-v6-c-data-list"
1222
1231
  role="list"
1223
1232
  aria-label="Width modifier data list example 1"
1224
- id="data-list-default-fitting"
1233
+ id="data-list-modifiers"
1225
1234
  >
1226
1235
  <li class="pf-v6-c-data-list__item">
1227
1236
  <div class="pf-v6-c-data-list__item-row">
@@ -1229,13 +1238,13 @@ When a list item includes more than one block of content, it can be difficult fo
1229
1238
  <div class="pf-v6-c-data-list__check">
1230
1239
  <label
1231
1240
  class="pf-v6-c-check pf-m-standalone"
1232
- for="data-list-default-fitting-item-1&quot;-input"
1241
+ for="data-list-modifiers-item-1&quot;-input"
1233
1242
  >
1234
1243
  <input
1235
1244
  class="pf-v6-c-check__input"
1236
1245
  type="checkbox"
1237
- id="data-list-default-fitting-item-1&quot;-input"
1238
- name="data-list-default-fitting-item-1&quot;-input"
1246
+ id="data-list-modifiers-item-1&quot;-input"
1247
+ name="data-list-modifiers-item-1&quot;-input"
1239
1248
  aria-label="Standalone check"
1240
1249
  />
1241
1250
  </label>
@@ -1244,7 +1253,7 @@ When a list item includes more than one block of content, it can be difficult fo
1244
1253
  <div class="pf-v6-c-data-list__item-content">
1245
1254
  <div class="pf-v6-c-data-list__cell">
1246
1255
  <div class="Preview__placeholder">
1247
- <b id="data-list-default-fitting-item-1">default</b>
1256
+ <b id="data-list-modifiers-item-1">default</b>
1248
1257
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
1249
1258
  </div>
1250
1259
  </div>
@@ -1257,28 +1266,19 @@ When a list item includes more than one block of content, it can be difficult fo
1257
1266
  </div>
1258
1267
  </div>
1259
1268
  </li>
1260
- </ul>
1261
-
1262
- <h2 class="Preview__section-title">Flex modifiers - example 2</h2>
1263
- <ul
1264
- class="pf-v6-c-data-list"
1265
- role="list"
1266
- aria-label="Width modifier data list example 2"
1267
- id="data-list-flex-modifiers"
1268
- >
1269
1269
  <li class="pf-v6-c-data-list__item">
1270
1270
  <div class="pf-v6-c-data-list__item-row">
1271
1271
  <div class="pf-v6-c-data-list__item-control">
1272
1272
  <div class="pf-v6-c-data-list__check">
1273
1273
  <label
1274
1274
  class="pf-v6-c-check pf-m-standalone"
1275
- for="data-list-flex-modifiers-item-1&quot;-input"
1275
+ for="data-list-modifiers-item-2&quot;-input"
1276
1276
  >
1277
1277
  <input
1278
1278
  class="pf-v6-c-check__input"
1279
1279
  type="checkbox"
1280
- id="data-list-flex-modifiers-item-1&quot;-input"
1281
- name="data-list-flex-modifiers-item-1&quot;-input"
1280
+ id="data-list-modifiers-item-2&quot;-input"
1281
+ name="data-list-modifiers-item-2&quot;-input"
1282
1282
  aria-label="Standalone check"
1283
1283
  />
1284
1284
  </label>
@@ -1287,7 +1287,7 @@ When a list item includes more than one block of content, it can be difficult fo
1287
1287
  <div class="pf-v6-c-data-list__item-content">
1288
1288
  <div class="pf-v6-c-data-list__cell pf-m-flex-2">
1289
1289
  <div class="Preview__placeholder">
1290
- <b id="data-list-flex-modifiers-item-1">.pf-m-flex-2</b>
1290
+ <b id="data-list-modifiers-item-2">.pf-m-flex-2</b>
1291
1291
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt.</p>
1292
1292
  </div>
1293
1293
  </div>
@@ -1304,7 +1304,7 @@ When a list item includes more than one block of content, it can be difficult fo
1304
1304
  type="button"
1305
1305
  aria-expanded="false"
1306
1306
  aria-label="Data list item menu toggle"
1307
- id="data-list-flex-modifiers-item-1-menu-toggle"
1307
+ id="data-list-modifiers-item-2-menu-toggle"
1308
1308
  >
1309
1309
  <span class="pf-v6-c-menu-toggle__icon">
1310
1310
  <i class="fas fa-ellipsis-v" aria-hidden="true"></i>
@@ -1313,15 +1313,6 @@ When a list item includes more than one block of content, it can be difficult fo
1313
1313
  </div>
1314
1314
  </div>
1315
1315
  </li>
1316
- </ul>
1317
-
1318
- <h2 class="Preview__section-title">Flex modifiers - example 3</h2>
1319
- <ul
1320
- class="pf-v6-c-data-list"
1321
- role="list"
1322
- aria-label="Width modifier data list example 3"
1323
- id="data-list-flex-modifiers-2"
1324
- >
1325
1316
  <li class="pf-v6-c-data-list__item pf-m-expanded">
1326
1317
  <div class="pf-v6-c-data-list__item-row">
1327
1318
  <div class="pf-v6-c-data-list__item-control">
@@ -1329,11 +1320,11 @@ When a list item includes more than one block of content, it can be difficult fo
1329
1320
  <button
1330
1321
  class="pf-v6-c-button pf-m-plain"
1331
1322
  type="button"
1332
- aria-labelledby="data-list-flex-modifiers-2-toggle1 data-list-flex-modifiers-2-item-1"
1333
- id="data-list-flex-modifiers-2-toggle1"
1323
+ aria-labelledby="data-list-modifiers-toggle1 data-list-modifiers-item-1"
1324
+ id="data-list-modifiers-toggle1"
1334
1325
  aria-label="Toggle details for"
1335
1326
  aria-expanded="true"
1336
- aria-controls="data-list-flex-modifiers-2-content1"
1327
+ aria-controls="data-list-modifiers-content1"
1337
1328
  >
1338
1329
  <span class="pf-v6-c-button__icon pf-m-start">
1339
1330
  <div class="pf-v6-c-data-list__toggle-icon">
@@ -1346,13 +1337,13 @@ When a list item includes more than one block of content, it can be difficult fo
1346
1337
  <div class="pf-v6-c-data-list__check">
1347
1338
  <label
1348
1339
  class="pf-v6-c-check pf-m-standalone"
1349
- for="data-list-flex-modifiers-2-item-1&quot;-input"
1340
+ for="data-list-modifiers-item-3&quot;-input"
1350
1341
  >
1351
1342
  <input
1352
1343
  class="pf-v6-c-check__input"
1353
1344
  type="checkbox"
1354
- id="data-list-flex-modifiers-2-item-1&quot;-input"
1355
- name="data-list-flex-modifiers-2-item-1&quot;-input"
1345
+ id="data-list-modifiers-item-3&quot;-input"
1346
+ name="data-list-modifiers-item-3&quot;-input"
1356
1347
  aria-label="Standalone check"
1357
1348
  />
1358
1349
  </label>
@@ -1361,7 +1352,7 @@ When a list item includes more than one block of content, it can be difficult fo
1361
1352
  <div class="pf-v6-c-data-list__item-content">
1362
1353
  <div class="pf-v6-c-data-list__cell pf-m-flex-5">
1363
1354
  <div class="Preview__placeholder">
1364
- <b id="data-list-flex-modifiers-2-item-1">.pf-m-flex-5</b>
1355
+ <b id="data-list-modifiers-item-3">.pf-m-flex-5</b>
1365
1356
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
1366
1357
  </div>
1367
1358
  </div>
@@ -1390,7 +1381,7 @@ When a list item includes more than one block of content, it can be difficult fo
1390
1381
  type="button"
1391
1382
  aria-expanded="false"
1392
1383
  aria-label="Data list item menu toggle"
1393
- id="data-list-flex-modifiers-2-item-1-menu-toggle"
1384
+ id="data-list-modifiers-item-3-menu-toggle"
1394
1385
  >
1395
1386
  <span class="pf-v6-c-menu-toggle__icon">
1396
1387
  <i class="fas fa-ellipsis-v" aria-hidden="true"></i>
@@ -1400,7 +1391,7 @@ When a list item includes more than one block of content, it can be difficult fo
1400
1391
  </div>
1401
1392
  <section
1402
1393
  class="pf-v6-c-data-list__expandable-content"
1403
- id="data-list-flex-modifiers-2-content1"
1394
+ id="data-list-modifiers-content1"
1404
1395
  aria-label="Flex modifier expandable primary content details"
1405
1396
  >
1406
1397
  <div
@@ -1412,19 +1403,103 @@ When a list item includes more than one block of content, it can be difficult fo
1412
1403
 
1413
1404
  ```
1414
1405
 
1415
- ### Accessibility
1406
+ ### Data list text modifiers example
1407
+
1408
+ ```html
1409
+ <ul
1410
+ class="pf-v6-c-data-list"
1411
+ role="list"
1412
+ aria-label="Data list with text modifiers"
1413
+ id="data-list-with-text-modifiers"
1414
+ >
1415
+ <li class="pf-v6-c-data-list__item">
1416
+ <div class="pf-v6-c-data-list__item-row">
1417
+ <div class="pf-v6-c-data-list__item-content">
1418
+ <div class="pf-v6-c-data-list__cell">
1419
+ <span
1420
+ id="data-list-with-text-modifiers-item"
1421
+ >This text will wrap to the next line because it has the default behavior of the data list cell.</span>
1422
+ </div>
1423
+ <div
1424
+ class="pf-v6-c-data-list__cell pf-m-truncate"
1425
+ tabindex="0"
1426
+ >This text will truncate because it is very very long.</div>
1427
+ <div
1428
+ class="pf-v6-c-data-list__cell pf-m-break-word"
1429
+ >http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
1430
+ <div
1431
+ class="pf-v6-c-data-list__cell pf-m-nowrap"
1432
+ >This text will not break or wrap.</div>
1433
+ </div>
1434
+ </div>
1435
+ <div class="pf-v6-c-data-list__item-row pf-m-truncate">
1436
+ <div class="pf-v6-c-data-list__item-content">
1437
+ <div
1438
+ class="pf-v6-c-data-list__cell"
1439
+ tabindex="0"
1440
+ >This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
1441
+ <div
1442
+ class="pf-v6-c-data-list__cell"
1443
+ tabindex="0"
1444
+ >This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
1445
+ <div
1446
+ class="pf-v6-c-data-list__cell"
1447
+ tabindex="0"
1448
+ >This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
1449
+ <div
1450
+ class="pf-v6-c-data-list__cell"
1451
+ tabindex="0"
1452
+ >This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
1453
+ </div>
1454
+ </div>
1455
+ <div class="pf-v6-c-data-list__item-row pf-m-break-word">
1456
+ <div class="pf-v6-c-data-list__item-content">
1457
+ <div
1458
+ class="pf-v6-c-data-list__cell"
1459
+ >http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
1460
+ <div
1461
+ class="pf-v6-c-data-list__cell"
1462
+ >http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
1463
+ <div
1464
+ class="pf-v6-c-data-list__cell"
1465
+ >http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
1466
+ <div
1467
+ class="pf-v6-c-data-list__cell"
1468
+ >http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
1469
+ </div>
1470
+ </div>
1471
+ <div class="pf-v6-c-data-list__item-row pf-m-nowrap">
1472
+ <div class="pf-v6-c-data-list__item-content">
1473
+ <div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
1474
+ <div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
1475
+ <div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
1476
+ <div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
1477
+ </div>
1478
+ </div>
1479
+ </li>
1480
+ </ul>
1481
+
1482
+ ```
1483
+
1484
+ ### Data list modifiers accessibility
1416
1485
 
1417
1486
  | Attribute | Applied to | Outcome |
1418
1487
  | -- | -- | -- |
1419
1488
  | `aria-controls="[id of element controlled]"` | `.pf-v6-c-data-list__toggle` > `.pf-v6-c-button` | Identifies the section controlled by the toggle button. **Required** |
1420
1489
 
1421
- ### Usage
1490
+ ### Data list modifiers usage
1422
1491
 
1423
1492
  | Class | Applied to | Outcome |
1424
1493
  | -- | -- | -- |
1425
1494
  | `.pf-m-flex-{1, 2, 3, 4, 5}` | `.pf-v6-c-data-list__cell` | Percentage based modifier for `.pf-v6-c-data-list__cell` widths. |
1495
+ | `.pf-v6-c-data-list__text` | `*` | Inserts the data list text element. Use this class to modify specific text directly. |
1496
+ | `.pf-m-truncate` | `.pf-v6-c-data-list`, `.pf-v6-c-data-list__item-row`, `.pf-v6-c-data-list__cell`, `.pf-v6-c-data-list__text` | Modifies the data list element so that text is truncated. |
1497
+ | `.pf-m-break-word` | `.pf-v6-c-data-list`, `.pf-v6-c-data-list__item-row`, `.pf-v6-c-data-list__cell`, `.pf-v6-c-data-list__text` | Modifies the data list element so that text breaks to the next line. |
1498
+ | `.pf-m-nowrap` | `.pf-v6-c-data-list`, `.pf-v6-c-data-list__item-row`, `.pf-v6-c-data-list__cell`, `.pf-v6-c-data-list__text` | Modifies the data list element so that text does not wrap to the next line. |
1499
+
1500
+ ## Data list with clickable rows
1426
1501
 
1427
- ### Clickable rows
1502
+ ### Data list with clickable rows example
1428
1503
 
1429
1504
  ```html
1430
1505
  <ul
@@ -1466,20 +1541,7 @@ When a list item includes more than one block of content, it can be difficult fo
1466
1541
 
1467
1542
  ```
1468
1543
 
1469
- ### Accessibility
1470
-
1471
- | Attribute | Applied to | Outcome |
1472
- | -- | -- | -- |
1473
- | `tabindex="0"` | `.pf-v6-c-data-list__item.pf-m-clickable` | Inserts the clickable row into the tab order of the page so that it is focusable. **Required** |
1474
-
1475
- ### Usage
1476
-
1477
- | Class | Applied to | Outcome |
1478
- | -- | -- | -- |
1479
- | `.pf-m-clickable` | `.pf-v6-c-data-list__item` | Modifies a data list item so that it is clickable. |
1480
- | `.pf-m-selected` | `.pf-v6-c-data-list__item` | Modifies a data list item for the selected state. |
1481
-
1482
- ### Clickable expandable rows
1544
+ ### Data list with clickable expandable rows example
1483
1545
 
1484
1546
  ```html
1485
1547
  <ul
@@ -1656,7 +1718,22 @@ When a list item includes more than one block of content, it can be difficult fo
1656
1718
 
1657
1719
  ```
1658
1720
 
1659
- ### Draggable
1721
+ ### Data list with clickable rows accessibility
1722
+
1723
+ | Attribute | Applied to | Outcome |
1724
+ | -- | -- | -- |
1725
+ | `tabindex="0"` | `.pf-v6-c-data-list__item.pf-m-clickable` | Inserts the clickable row into the tab order of the page so that it is focusable. **Required** |
1726
+
1727
+ ### Data list with clickable rows usage
1728
+
1729
+ | Class | Applied to | Outcome |
1730
+ | -- | -- | -- |
1731
+ | `.pf-m-clickable` | `.pf-v6-c-data-list__item` | Modifies a data list item so that it is clickable. |
1732
+ | `.pf-m-selected` | `.pf-v6-c-data-list__item` | Modifies a data list item for the selected state. |
1733
+
1734
+ ## Draggable data list
1735
+
1736
+ ### Draggable data list example
1660
1737
 
1661
1738
  ```html
1662
1739
  <div
@@ -1845,7 +1922,7 @@ When a list item includes more than one block of content, it can be difficult fo
1845
1922
 
1846
1923
  ```
1847
1924
 
1848
- ### Accessibility
1925
+ ### Draggable data list accessibility
1849
1926
 
1850
1927
  | Attribute | Applied to | Outcome |
1851
1928
  | -- | -- | -- |
@@ -1855,7 +1932,7 @@ When a list item includes more than one block of content, it can be difficult fo
1855
1932
  | `aria-labelledby="[id value of .pf-v6-c-data-list__item-draggable-button] [id value of .pf-v6-c-data-list__cell-text]"` | `.pf-v6-c-data-list__item-draggable-button` | Provides an accessible name for the draggable button. |
1856
1933
  | `id="[]"` | `.pf-v6-c-data-list__item-draggable-button`, `.pf-v6-c-data-list__cell-text` | Gives the button and the text element accessible IDs |
1857
1934
 
1858
- ### Usage
1935
+ ### Draggable data list usage
1859
1936
 
1860
1937
  | Class | Applied to | Outcome |
1861
1938
  | -- | -- | -- |
@@ -1866,117 +1943,37 @@ When a list item includes more than one block of content, it can be difficult fo
1866
1943
  | `.pf-m-disabled` | `.pf-v6-c-data-list__item.pf-m-draggable` | Modifies a data list draggable item for the disabled state. |
1867
1944
  | `.pf-m-drag-over` | `.pf-v6-c-data-list` | Modifies the data list to indicate that a draggable item is being dragged over the data list. |
1868
1945
 
1869
- ### Text modifiers
1946
+ ## Plain data list
1870
1947
 
1871
- ```html
1948
+ ### Plain data list example
1949
+
1950
+ ```html isBeta
1872
1951
  <ul
1873
- class="pf-v6-c-data-list"
1952
+ class="pf-v6-c-data-list pf-m-plain"
1874
1953
  role="list"
1875
- aria-label="Data list with text modifiers"
1876
- id="data-list-with-text-modifiers"
1954
+ aria-label="Basic data list example"
1955
+ id="data-list-basic"
1877
1956
  >
1878
1957
  <li class="pf-v6-c-data-list__item">
1879
1958
  <div class="pf-v6-c-data-list__item-row">
1880
1959
  <div class="pf-v6-c-data-list__item-content">
1881
1960
  <div class="pf-v6-c-data-list__cell">
1882
- <span
1883
- id="data-list-with-text-modifiers-item"
1884
- >This text will wrap to the next line because it has the default behavior of the data list cell.</span>
1961
+ <span id="data-list-basic-item-1">Primary content</span>
1885
1962
  </div>
1886
- <div
1887
- class="pf-v6-c-data-list__cell pf-m-truncate"
1888
- tabindex="0"
1889
- >This text will truncate because it is very very long.</div>
1890
- <div
1891
- class="pf-v6-c-data-list__cell pf-m-break-word"
1892
- >http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
1893
- <div
1894
- class="pf-v6-c-data-list__cell pf-m-nowrap"
1895
- >This text will not break or wrap.</div>
1896
- </div>
1897
- </div>
1898
- <div class="pf-v6-c-data-list__item-row pf-m-truncate">
1899
- <div class="pf-v6-c-data-list__item-content">
1900
- <div
1901
- class="pf-v6-c-data-list__cell"
1902
- tabindex="0"
1903
- >This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
1904
- <div
1905
- class="pf-v6-c-data-list__cell"
1906
- tabindex="0"
1907
- >This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
1908
- <div
1909
- class="pf-v6-c-data-list__cell"
1910
- tabindex="0"
1911
- >This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
1912
- <div
1913
- class="pf-v6-c-data-list__cell"
1914
- tabindex="0"
1915
- >This text will truncate because it is very very long. This text will truncate because it is very very long.</div>
1916
- </div>
1917
- </div>
1918
- <div class="pf-v6-c-data-list__item-row pf-m-break-word">
1919
- <div class="pf-v6-c-data-list__item-content">
1920
- <div
1921
- class="pf-v6-c-data-list__cell"
1922
- >http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
1923
- <div
1924
- class="pf-v6-c-data-list__cell"
1925
- >http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
1926
- <div
1927
- class="pf-v6-c-data-list__cell"
1928
- >http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
1929
- <div
1930
- class="pf-v6-c-data-list__cell"
1931
- >http://thisisaverylongurlthatneedstobreakusethebreakwordmodifier.org</div>
1932
- </div>
1933
- </div>
1934
- <div class="pf-v6-c-data-list__item-row pf-m-nowrap">
1935
- <div class="pf-v6-c-data-list__item-content">
1936
- <div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
1937
- <div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
1938
- <div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
1939
- <div class="pf-v6-c-data-list__cell">This text will not break or wrap.</div>
1963
+ <div class="pf-v6-c-data-list__cell">Secondary content</div>
1940
1964
  </div>
1941
1965
  </div>
1942
1966
  </li>
1943
- </ul>
1944
-
1945
- ```
1946
-
1947
- ### Text-modifiers-data-list-text
1948
1967
 
1949
- ```html
1950
- <ul
1951
- class="pf-v6-c-data-list"
1952
- role="list"
1953
- aria-label="Data list with modifiers and text"
1954
- id="data-list-with-text-modifiers-and-text"
1955
- >
1956
1968
  <li class="pf-v6-c-data-list__item">
1957
1969
  <div class="pf-v6-c-data-list__item-row">
1958
1970
  <div class="pf-v6-c-data-list__item-content">
1959
- <div class="pf-v6-c-data-list__cell">
1960
- <span
1961
- id="data-list-with-text-modifiers-and-text-item-1"
1962
- >This text will wrap to the next line because it has the default behavior of the data list cell.</span>
1963
- <span
1964
- class="pf-v6-c-data-list__text pf-m-truncate"
1965
- tabindex="0"
1966
- >This is data list text, you can apply `pf-m-truncate` directly to the text. This is data list text, you can apply `pf-m-truncate` directly to the text.</span>
1967
- </div>
1968
- <div class="pf-v6-c-data-list__cell">
1969
- This text will wrap to the next line because it has the default behavior of the data list cell.
1970
- <span
1971
- class="pf-v6-c-data-list__text pf-m-break-word"
1972
- >http://thisisaverylongdatalisttextthatneedstobreakusethebreakwordmodifier.org</span>
1973
- </div>
1974
- <div class="pf-v6-c-data-list__cell">
1975
- This text will wrap to the next line because it has the default behavior of the data list cell.
1976
- <span
1977
- class="pf-v6-c-data-list__text pf-m-nowrap"
1978
- >This is data list text, you can apply `pf-m-nowrap` directly to the text.</span>
1971
+ <div class="pf-v6-c-data-list__cell pf-m-no-fill">
1972
+ <span id="data-list-basic-item-2">Secondary content (pf-m-no-fill)</span>
1979
1973
  </div>
1974
+ <div
1975
+ class="pf-v6-c-data-list__cell pf-m-no-fill pf-m-align-right"
1976
+ >Secondary content (pf-m-align-right pf-m-no-fill)</div>
1980
1977
  </div>
1981
1978
  </div>
1982
1979
  </li>
@@ -1984,22 +1981,15 @@ When a list item includes more than one block of content, it can be difficult fo
1984
1981
 
1985
1982
  ```
1986
1983
 
1987
- ### Usage
1984
+ ### Plain data list usage
1988
1985
 
1989
1986
  | Class | Applied to | Outcome |
1990
1987
  | -- | -- | -- |
1991
- | `.pf-v6-c-data-list__text` | `*` | Inserts the data list text element. Use this class to modify specific text directly. |
1992
- | `.pf-m-truncate` | `.pf-v6-c-data-list`, `.pf-v6-c-data-list__item-row`, `.pf-v6-c-data-list__cell`, `.pf-v6-c-data-list__text` | Modifies the data list element so that text is truncated. |
1993
- | `.pf-m-break-word` | `.pf-v6-c-data-list`, `.pf-v6-c-data-list__item-row`, `.pf-v6-c-data-list__cell`, `.pf-v6-c-data-list__text` | Modifies the data list element so that text breaks to the next line. |
1994
- | `.pf-m-nowrap` | `.pf-v6-c-data-list`, `.pf-v6-c-data-list__item-row`, `.pf-v6-c-data-list__cell`, `.pf-v6-c-data-list__text` | Modifies the data list element so that text does not wrap to the next line. |
1995
-
1996
- ## Documentation
1988
+ | `.pf-m-plain` | `.pf-v6-c-data-list` | Modifies a data list to have a transparent background. |
1997
1989
 
1998
- ### Overview
1999
-
2000
- The DataList component provides a flexible alternative to the Table component, wherein individual data points may or may not exist within each row. DataList relies upon PatternFly layouts to achieve desired presentation within `pf-v6-c-data-list__cell`s. DataLists do not have headers. If headers are required, use the [table component](/components/table).
1990
+ ## Data list as grid
2001
1991
 
2002
- ### Grid
1992
+ ### Data list as grid example
2003
1993
 
2004
1994
  ```html
2005
1995
  <ul
@@ -2040,7 +2030,7 @@ The DataList component provides a flexible alternative to the Table component, w
2040
2030
 
2041
2031
  ```
2042
2032
 
2043
- ### Grid (small breakpoint)
2033
+ ### Data list as grid on small breakpoint example
2044
2034
 
2045
2035
  ```html
2046
2036
  <ul
@@ -2081,7 +2071,7 @@ The DataList component provides a flexible alternative to the Table component, w
2081
2071
 
2082
2072
  ```
2083
2073
 
2084
- ### Grid none
2074
+ ### Data list with no grid
2085
2075
 
2086
2076
  ```html
2087
2077
  <ul
@@ -2122,8 +2112,14 @@ The DataList component provides a flexible alternative to the Table component, w
2122
2112
 
2123
2113
  ```
2124
2114
 
2125
- ### Usage
2115
+ ### Data list as grid usage
2126
2116
 
2127
2117
  | Class | Applied to | Outcome |
2128
2118
  | -- | -- | -- |
2129
2119
  | `.pf-m-grid{-[none, sm, md, lg, xl, 2xl]}` | `.pf-v6-c-data-list` | Modifies the data list to switch to a grid layout at a specified [breakpoint](/tokens/all-patternfly-tokens). `.pf-m-grid` will display the grid layout at all breakpoints. `.pf-m-grid-none` will display the desktop layout at all breakpoints. **Note:** Without a grid modifier, the data list will display the grid layout by default and switch to the desktop layout at a medium breakpoint. |
2120
+
2121
+ ## Documentation
2122
+
2123
+ ### Overview
2124
+
2125
+ The DataList component provides a flexible alternative to the Table component, wherein individual data points may or may not exist within each row. DataList relies upon PatternFly layouts to achieve desired presentation within `pf-v6-c-data-list__cell` elements. DataLists do not have headers. If headers are required, use the [table component](/components/table).