@patternfly/patternfly 5.0.0-alpha.49 → 5.0.0-alpha.50

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.
Files changed (72) hide show
  1. package/base/patternfly-variables.css +1 -1
  2. package/components/Breadcrumb/breadcrumb.css +1 -5
  3. package/components/Breadcrumb/breadcrumb.scss +1 -8
  4. package/components/Divider/divider.css +12 -12
  5. package/components/List/list.css +1 -1
  6. package/components/List/list.scss +1 -1
  7. package/components/LogViewer/log-viewer.css +0 -3
  8. package/components/LogViewer/log-viewer.scss +0 -4
  9. package/components/Masthead/masthead.css +12 -12
  10. package/components/MultipleFileUpload/multiple-file-upload.css +3 -3
  11. package/components/MultipleFileUpload/multiple-file-upload.scss +3 -3
  12. package/components/Pagination/pagination.css +12 -12
  13. package/components/Tabs/tabs.css +24 -24
  14. package/components/TextInputGroup/text-input-group.css +1 -5
  15. package/components/TextInputGroup/text-input-group.scss +1 -7
  16. package/components/Toolbar/toolbar.css +54 -54
  17. package/components/_all.scss +1 -2
  18. package/docs/components/AppLauncher/examples/application-launcher.md +8 -7
  19. package/docs/components/Chip/examples/Chip.md +713 -4
  20. package/docs/components/ContextSelector/examples/context-selector.md +12 -12
  21. package/docs/components/DualListSelector/examples/DualListSelector.md +32 -32
  22. package/docs/components/LogViewer/examples/LogViewer.md +40 -40
  23. package/docs/components/Menu/examples/Menu.md +20 -18
  24. package/docs/components/Select/examples/Select.md +16 -14
  25. package/docs/components/TextInputGroup/examples/TextInputGroup.css +0 -13
  26. package/docs/components/TextInputGroup/examples/TextInputGroup.md +21 -21
  27. package/docs/components/Toolbar/examples/Toolbar.md +10 -10
  28. package/docs/components/TreeView/examples/TreeView.md +8 -7
  29. package/docs/demos/AboutModal/examples/AboutModal.md +21 -21
  30. package/docs/demos/Alert/examples/Alert.md +63 -63
  31. package/docs/demos/BackToTop/examples/BackToTop.md +21 -21
  32. package/docs/demos/Banner/examples/Banner.md +42 -42
  33. package/docs/demos/CardView/examples/CardView.md +21 -21
  34. package/docs/demos/ContextSelector/examples/ContextSelector.md +95 -91
  35. package/docs/demos/Dashboard/examples/Dashboard.md +21 -21
  36. package/docs/demos/DataList/examples/DataList.md +104 -105
  37. package/docs/demos/DescriptionList/examples/DescriptionList.md +63 -63
  38. package/docs/demos/Drawer/examples/Drawer.md +105 -105
  39. package/docs/demos/JumpLinks/examples/JumpLinks.md +126 -126
  40. package/docs/demos/Masthead/examples/Masthead.md +56 -55
  41. package/docs/demos/Modal/examples/Modal.md +126 -126
  42. package/docs/demos/Nav/examples/Nav.md +168 -168
  43. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +105 -105
  44. package/docs/demos/Page/examples/Page.md +189 -189
  45. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +153 -153
  46. package/docs/demos/Skeleton/examples/Skeleton.md +21 -21
  47. package/docs/demos/Table/examples/Table.md +339 -339
  48. package/docs/demos/Tabs/examples/Tabs.md +126 -126
  49. package/docs/demos/Toolbar/examples/Toolbar.md +50 -50
  50. package/docs/demos/Wizard/examples/Wizard.md +189 -189
  51. package/docs/layouts/Flex/examples/Flex.md +319 -215
  52. package/layouts/Flex/flex.css +738 -31
  53. package/layouts/Flex/flex.scss +101 -17
  54. package/package.json +1 -1
  55. package/patternfly-base-no-globals.css +1 -1
  56. package/patternfly-base.css +1 -1
  57. package/patternfly-no-globals.css +859 -389
  58. package/patternfly.css +859 -389
  59. package/patternfly.min.css +1 -1
  60. package/patternfly.min.css.map +1 -1
  61. package/sass-utilities/component-namespaces.scss +0 -3
  62. package/sass-utilities/functions.scss +9 -5
  63. package/sass-utilities/themes/dark/scss-variables.scss +1 -4
  64. package/components/Breadcrumb/themes/dark/breadcrumb.scss +0 -7
  65. package/components/SearchInput/search-input.css +0 -199
  66. package/components/SearchInput/search-input.scss +0 -231
  67. package/components/SearchInput/themes/dark/search-input.scss +0 -16
  68. package/docs/components/ChipGroup/examples/ChipGroup.md +0 -716
  69. package/docs/components/SearchInput/examples/SearchInput.css +0 -12
  70. package/docs/components/SearchInput/examples/SearchInput.md +0 -681
  71. /package/components/{ChipGroup → Chip}/chip-group.css +0 -0
  72. /package/components/{ChipGroup → Chip}/chip-group.scss +0 -0
@@ -4,7 +4,7 @@ section: components
4
4
  cssPrefix: pf-v5-c-chip
5
5
  ---## Examples
6
6
 
7
- ### Basic
7
+ ### Chip variants
8
8
 
9
9
  ```html
10
10
  <div class="pf-v5-c-chip">
@@ -90,13 +90,693 @@ cssPrefix: pf-v5-c-chip
90
90
 
91
91
  ```
92
92
 
93
+ ### Simple inline chip group with overflow
94
+
95
+ ```html
96
+ <div class="pf-v5-c-chip-group">
97
+ <div class="pf-v5-c-chip-group__main">
98
+ <ul
99
+ class="pf-v5-c-chip-group__list"
100
+ role="list"
101
+ aria-label="Chip group list"
102
+ >
103
+ <li class="pf-v5-c-chip-group__list-item">
104
+ <div class="pf-v5-c-chip">
105
+ <span class="pf-v5-c-chip__content">
106
+ <span
107
+ class="pf-v5-c-chip__text"
108
+ id="simple-inline-chip-group-overflowchip_one_select_collapsed"
109
+ >Chip one</span>
110
+ </span>
111
+ <span class="pf-v5-c-chip__actions">
112
+ <button
113
+ class="pf-v5-c-button pf-m-plain"
114
+ type="button"
115
+ aria-labelledby="simple-inline-chip-group-overflowremove_chip_one_select_collapsed simple-inline-chip-group-overflowchip_one_select_collapsed"
116
+ aria-label="Remove"
117
+ id="simple-inline-chip-group-overflowremove_chip_one_select_collapsed"
118
+ >
119
+ <i class="fas fa-times" aria-hidden="true"></i>
120
+ </button>
121
+ </span>
122
+ </div>
123
+ </li>
124
+ <li class="pf-v5-c-chip-group__list-item">
125
+ <div class="pf-v5-c-chip">
126
+ <span class="pf-v5-c-chip__content">
127
+ <span
128
+ class="pf-v5-c-chip__text"
129
+ id="simple-inline-chip-group-overflowchip_two_select_collapsed"
130
+ >Chip two</span>
131
+ </span>
132
+ <span class="pf-v5-c-chip__actions">
133
+ <button
134
+ class="pf-v5-c-button pf-m-plain"
135
+ type="button"
136
+ aria-labelledby="simple-inline-chip-group-overflowremove_chip_two_select_collapsed simple-inline-chip-group-overflowchip_two_select_collapsed"
137
+ aria-label="Remove"
138
+ id="simple-inline-chip-group-overflowremove_chip_two_select_collapsed"
139
+ >
140
+ <i class="fas fa-times" aria-hidden="true"></i>
141
+ </button>
142
+ </span>
143
+ </div>
144
+ </li>
145
+ <li class="pf-v5-c-chip-group__list-item">
146
+ <div class="pf-v5-c-chip">
147
+ <span class="pf-v5-c-chip__content">
148
+ <span
149
+ class="pf-v5-c-chip__text"
150
+ id="simple-inline-chip-group-overflowchip_three_select_collapsed"
151
+ >Chip three</span>
152
+ </span>
153
+ <span class="pf-v5-c-chip__actions">
154
+ <button
155
+ class="pf-v5-c-button pf-m-plain"
156
+ type="button"
157
+ aria-labelledby="simple-inline-chip-group-overflowremove_chip_three_select_collapsed simple-inline-chip-group-overflowchip_three_select_collapsed"
158
+ aria-label="Remove"
159
+ id="simple-inline-chip-group-overflowremove_chip_three_select_collapsed"
160
+ >
161
+ <i class="fas fa-times" aria-hidden="true"></i>
162
+ </button>
163
+ </span>
164
+ </div>
165
+ </li>
166
+ <li class="pf-v5-c-chip-group__list-item">
167
+ <button class="pf-v5-c-chip pf-m-overflow">
168
+ <span class="pf-v5-c-chip__content">
169
+ <span class="pf-v5-c-chip__text">2 more</span>
170
+ </span>
171
+ </button>
172
+ </li>
173
+ </ul>
174
+ </div>
175
+ </div>
176
+
177
+ ```
178
+
179
+ ### Simple inline chip group expanded
180
+
181
+ ```html
182
+ <div class="pf-v5-c-chip-group">
183
+ <div class="pf-v5-c-chip-group__main">
184
+ <ul
185
+ class="pf-v5-c-chip-group__list"
186
+ role="list"
187
+ aria-label="Chip group list"
188
+ >
189
+ <li class="pf-v5-c-chip-group__list-item">
190
+ <div class="pf-v5-c-chip">
191
+ <span class="pf-v5-c-chip__content">
192
+ <span
193
+ class="pf-v5-c-chip__text"
194
+ id="simple-inline-chip-group-expandedchip_one_select"
195
+ >Chip one</span>
196
+ </span>
197
+ <span class="pf-v5-c-chip__actions">
198
+ <button
199
+ class="pf-v5-c-button pf-m-plain"
200
+ type="button"
201
+ aria-labelledby="simple-inline-chip-group-expandedremove_chip_one_select simple-inline-chip-group-expandedchip_one_select"
202
+ aria-label="Remove"
203
+ id="simple-inline-chip-group-expandedremove_chip_one_select"
204
+ >
205
+ <i class="fas fa-times" aria-hidden="true"></i>
206
+ </button>
207
+ </span>
208
+ </div>
209
+ </li>
210
+ <li class="pf-v5-c-chip-group__list-item">
211
+ <div class="pf-v5-c-chip">
212
+ <span class="pf-v5-c-chip__content">
213
+ <span
214
+ class="pf-v5-c-chip__text"
215
+ id="simple-inline-chip-group-expandedchip_two_select"
216
+ >Chip two</span>
217
+ </span>
218
+ <span class="pf-v5-c-chip__actions">
219
+ <button
220
+ class="pf-v5-c-button pf-m-plain"
221
+ type="button"
222
+ aria-labelledby="simple-inline-chip-group-expandedremove_chip_two_select simple-inline-chip-group-expandedchip_two_select"
223
+ aria-label="Remove"
224
+ id="simple-inline-chip-group-expandedremove_chip_two_select"
225
+ >
226
+ <i class="fas fa-times" aria-hidden="true"></i>
227
+ </button>
228
+ </span>
229
+ </div>
230
+ </li>
231
+ <li class="pf-v5-c-chip-group__list-item">
232
+ <div class="pf-v5-c-chip">
233
+ <span class="pf-v5-c-chip__content">
234
+ <span
235
+ class="pf-v5-c-chip__text"
236
+ id="simple-inline-chip-group-expandedchip_three_select"
237
+ >Chip three</span>
238
+ </span>
239
+ <span class="pf-v5-c-chip__actions">
240
+ <button
241
+ class="pf-v5-c-button pf-m-plain"
242
+ type="button"
243
+ aria-labelledby="simple-inline-chip-group-expandedremove_chip_three_select simple-inline-chip-group-expandedchip_three_select"
244
+ aria-label="Remove"
245
+ id="simple-inline-chip-group-expandedremove_chip_three_select"
246
+ >
247
+ <i class="fas fa-times" aria-hidden="true"></i>
248
+ </button>
249
+ </span>
250
+ </div>
251
+ </li>
252
+ <li class="pf-v5-c-chip-group__list-item">
253
+ <div class="pf-v5-c-chip">
254
+ <span class="pf-v5-c-chip__content">
255
+ <span
256
+ class="pf-v5-c-chip__text"
257
+ id="simple-inline-chip-group-expandedchip_four_select"
258
+ >Chip four</span>
259
+ </span>
260
+ <span class="pf-v5-c-chip__actions">
261
+ <button
262
+ class="pf-v5-c-button pf-m-plain"
263
+ type="button"
264
+ aria-labelledby="simple-inline-chip-group-expandedremove_chip_four_select simple-inline-chip-group-expandedchip_four_select"
265
+ aria-label="Remove"
266
+ id="simple-inline-chip-group-expandedremove_chip_four_select"
267
+ >
268
+ <i class="fas fa-times" aria-hidden="true"></i>
269
+ </button>
270
+ </span>
271
+ </div>
272
+ </li>
273
+ <li class="pf-v5-c-chip-group__list-item">
274
+ <div class="pf-v5-c-chip">
275
+ <span class="pf-v5-c-chip__content">
276
+ <span
277
+ class="pf-v5-c-chip__text"
278
+ id="simple-inline-chip-group-expandedchip_five_select"
279
+ >Chip five</span>
280
+ </span>
281
+ <span class="pf-v5-c-chip__actions">
282
+ <button
283
+ class="pf-v5-c-button pf-m-plain"
284
+ type="button"
285
+ aria-labelledby="simple-inline-chip-group-expandedremove_chip_five_select simple-inline-chip-group-expandedchip_five_select"
286
+ aria-label="Remove"
287
+ id="simple-inline-chip-group-expandedremove_chip_five_select"
288
+ >
289
+ <i class="fas fa-times" aria-hidden="true"></i>
290
+ </button>
291
+ </span>
292
+ </div>
293
+ </li>
294
+ <li class="pf-v5-c-chip-group__list-item">
295
+ <button class="pf-v5-c-chip pf-m-overflow">
296
+ <span class="pf-v5-c-chip__content">
297
+ <span class="pf-v5-c-chip__text">Show less</span>
298
+ </span>
299
+ </button>
300
+ </li>
301
+ </ul>
302
+ </div>
303
+ </div>
304
+
305
+ ```
306
+
307
+ ### Chip group with categories
308
+
309
+ ```html
310
+ <div class="pf-v5-c-chip-group pf-m-category">
311
+ <div class="pf-v5-c-chip-group__main">
312
+ <span
313
+ class="pf-v5-c-chip-group__label"
314
+ aria-hidden="true"
315
+ id="chip-group-with-categories-label"
316
+ >Category one</span>
317
+ <ul
318
+ class="pf-v5-c-chip-group__list"
319
+ role="list"
320
+ aria-labelledby="chip-group-with-categories-label"
321
+ >
322
+ <li class="pf-v5-c-chip-group__list-item">
323
+ <div class="pf-v5-c-chip">
324
+ <span class="pf-v5-c-chip__content">
325
+ <span
326
+ class="pf-v5-c-chip__text"
327
+ id="chip-group-with-categorieschip_one_toolbar_collapsed"
328
+ >Chip one</span>
329
+ </span>
330
+ <span class="pf-v5-c-chip__actions">
331
+ <button
332
+ class="pf-v5-c-button pf-m-plain"
333
+ type="button"
334
+ aria-labelledby="chip-group-with-categoriesremove_chip_one_toolbar_collapsed chip-group-with-categorieschip_one_toolbar_collapsed"
335
+ aria-label="Remove"
336
+ id="chip-group-with-categoriesremove_chip_one_toolbar_collapsed"
337
+ >
338
+ <i class="fas fa-times" aria-hidden="true"></i>
339
+ </button>
340
+ </span>
341
+ </div>
342
+ </li>
343
+ <li class="pf-v5-c-chip-group__list-item">
344
+ <div class="pf-v5-c-chip">
345
+ <span class="pf-v5-c-chip__content">
346
+ <span
347
+ class="pf-v5-c-chip__text"
348
+ id="chip-group-with-categorieschip_two_toolbar_collapsed"
349
+ >Chip two</span>
350
+ </span>
351
+ <span class="pf-v5-c-chip__actions">
352
+ <button
353
+ class="pf-v5-c-button pf-m-plain"
354
+ type="button"
355
+ aria-labelledby="chip-group-with-categoriesremove_chip_two_toolbar_collapsed chip-group-with-categorieschip_two_toolbar_collapsed"
356
+ aria-label="Remove"
357
+ id="chip-group-with-categoriesremove_chip_two_toolbar_collapsed"
358
+ >
359
+ <i class="fas fa-times" aria-hidden="true"></i>
360
+ </button>
361
+ </span>
362
+ </div>
363
+ </li>
364
+ <li class="pf-v5-c-chip-group__list-item">
365
+ <div class="pf-v5-c-chip">
366
+ <span class="pf-v5-c-chip__content">
367
+ <span
368
+ class="pf-v5-c-chip__text"
369
+ id="chip-group-with-categorieschip_three_toolbar_collapsed"
370
+ >Chip three</span>
371
+ </span>
372
+ <span class="pf-v5-c-chip__actions">
373
+ <button
374
+ class="pf-v5-c-button pf-m-plain"
375
+ type="button"
376
+ aria-labelledby="chip-group-with-categoriesremove_chip_three_toolbar_collapsed chip-group-with-categorieschip_three_toolbar_collapsed"
377
+ aria-label="Remove"
378
+ id="chip-group-with-categoriesremove_chip_three_toolbar_collapsed"
379
+ >
380
+ <i class="fas fa-times" aria-hidden="true"></i>
381
+ </button>
382
+ </span>
383
+ </div>
384
+ </li>
385
+ </ul>
386
+ </div>
387
+ </div>
388
+
389
+ ```
390
+
391
+ ### Chip group with categories and overflow
392
+
393
+ ```html
394
+ <div class="pf-v5-c-chip-group pf-m-category">
395
+ <div class="pf-v5-c-chip-group__main">
396
+ <span
397
+ class="pf-v5-c-chip-group__label"
398
+ aria-hidden="true"
399
+ id="chip-group-with-categories-overflow-label"
400
+ >Category one</span>
401
+ <ul
402
+ class="pf-v5-c-chip-group__list"
403
+ role="list"
404
+ aria-labelledby="chip-group-with-categories-overflow-label"
405
+ >
406
+ <li class="pf-v5-c-chip-group__list-item">
407
+ <div class="pf-v5-c-chip">
408
+ <span class="pf-v5-c-chip__content">
409
+ <span
410
+ class="pf-v5-c-chip__text"
411
+ id="chip-group-with-categories-overflowchip_one_toolbar_collapsed"
412
+ >Chip one</span>
413
+ </span>
414
+ <span class="pf-v5-c-chip__actions">
415
+ <button
416
+ class="pf-v5-c-button pf-m-plain"
417
+ type="button"
418
+ aria-labelledby="chip-group-with-categories-overflowremove_chip_one_toolbar_collapsed chip-group-with-categories-overflowchip_one_toolbar_collapsed"
419
+ aria-label="Remove"
420
+ id="chip-group-with-categories-overflowremove_chip_one_toolbar_collapsed"
421
+ >
422
+ <i class="fas fa-times" aria-hidden="true"></i>
423
+ </button>
424
+ </span>
425
+ </div>
426
+ </li>
427
+ <li class="pf-v5-c-chip-group__list-item">
428
+ <div class="pf-v5-c-chip">
429
+ <span class="pf-v5-c-chip__content">
430
+ <span
431
+ class="pf-v5-c-chip__text"
432
+ id="chip-group-with-categories-overflowchip_two_toolbar_collapsed"
433
+ >Chip two</span>
434
+ </span>
435
+ <span class="pf-v5-c-chip__actions">
436
+ <button
437
+ class="pf-v5-c-button pf-m-plain"
438
+ type="button"
439
+ aria-labelledby="chip-group-with-categories-overflowremove_chip_two_toolbar_collapsed chip-group-with-categories-overflowchip_two_toolbar_collapsed"
440
+ aria-label="Remove"
441
+ id="chip-group-with-categories-overflowremove_chip_two_toolbar_collapsed"
442
+ >
443
+ <i class="fas fa-times" aria-hidden="true"></i>
444
+ </button>
445
+ </span>
446
+ </div>
447
+ </li>
448
+ <li class="pf-v5-c-chip-group__list-item">
449
+ <div class="pf-v5-c-chip">
450
+ <span class="pf-v5-c-chip__content">
451
+ <span
452
+ class="pf-v5-c-chip__text"
453
+ id="chip-group-with-categories-overflowchip_three_toolbar_collapsed"
454
+ >Chip three</span>
455
+ </span>
456
+ <span class="pf-v5-c-chip__actions">
457
+ <button
458
+ class="pf-v5-c-button pf-m-plain"
459
+ type="button"
460
+ aria-labelledby="chip-group-with-categories-overflowremove_chip_three_toolbar_collapsed chip-group-with-categories-overflowchip_three_toolbar_collapsed"
461
+ aria-label="Remove"
462
+ id="chip-group-with-categories-overflowremove_chip_three_toolbar_collapsed"
463
+ >
464
+ <i class="fas fa-times" aria-hidden="true"></i>
465
+ </button>
466
+ </span>
467
+ </div>
468
+ </li>
469
+ <li class="pf-v5-c-chip-group__list-item">
470
+ <button class="pf-v5-c-chip pf-m-overflow">
471
+ <span class="pf-v5-c-chip__content">
472
+ <span class="pf-v5-c-chip__text">2 more</span>
473
+ </span>
474
+ </button>
475
+ </li>
476
+ </ul>
477
+ </div>
478
+ </div>
479
+
480
+ ```
481
+
482
+ ### Chip group with categories and overflow expanded
483
+
484
+ ```html
485
+ <div class="pf-v5-c-chip-group pf-m-category">
486
+ <div class="pf-v5-c-chip-group__main">
487
+ <span
488
+ class="pf-v5-c-chip-group__label"
489
+ aria-hidden="true"
490
+ id="chip-group-with-categories-overflow-expanded-label"
491
+ >Category one</span>
492
+ <ul
493
+ class="pf-v5-c-chip-group__list"
494
+ role="list"
495
+ aria-labelledby="chip-group-with-categories-overflow-expanded-label"
496
+ >
497
+ <li class="pf-v5-c-chip-group__list-item">
498
+ <div class="pf-v5-c-chip">
499
+ <span class="pf-v5-c-chip__content">
500
+ <span
501
+ class="pf-v5-c-chip__text"
502
+ id="chip-group-with-categories-overflow-expandedchip_one_toolbar"
503
+ >Chip one</span>
504
+ </span>
505
+ <span class="pf-v5-c-chip__actions">
506
+ <button
507
+ class="pf-v5-c-button pf-m-plain"
508
+ type="button"
509
+ aria-labelledby="chip-group-with-categories-overflow-expandedremove_chip_one_toolbar chip-group-with-categories-overflow-expandedchip_one_toolbar"
510
+ aria-label="Remove"
511
+ id="chip-group-with-categories-overflow-expandedremove_chip_one_toolbar"
512
+ >
513
+ <i class="fas fa-times" aria-hidden="true"></i>
514
+ </button>
515
+ </span>
516
+ </div>
517
+ </li>
518
+ <li class="pf-v5-c-chip-group__list-item">
519
+ <div class="pf-v5-c-chip">
520
+ <span class="pf-v5-c-chip__content">
521
+ <span
522
+ class="pf-v5-c-chip__text"
523
+ id="chip-group-with-categories-overflow-expandedchip_two_toolbar"
524
+ >Chip two</span>
525
+ </span>
526
+ <span class="pf-v5-c-chip__actions">
527
+ <button
528
+ class="pf-v5-c-button pf-m-plain"
529
+ type="button"
530
+ aria-labelledby="chip-group-with-categories-overflow-expandedremove_chip_two_toolbar chip-group-with-categories-overflow-expandedchip_two_toolbar"
531
+ aria-label="Remove"
532
+ id="chip-group-with-categories-overflow-expandedremove_chip_two_toolbar"
533
+ >
534
+ <i class="fas fa-times" aria-hidden="true"></i>
535
+ </button>
536
+ </span>
537
+ </div>
538
+ </li>
539
+ <li class="pf-v5-c-chip-group__list-item">
540
+ <div class="pf-v5-c-chip">
541
+ <span class="pf-v5-c-chip__content">
542
+ <span
543
+ class="pf-v5-c-chip__text"
544
+ id="chip-group-with-categories-overflow-expandedchip_three_toolbar"
545
+ >Chip three</span>
546
+ </span>
547
+ <span class="pf-v5-c-chip__actions">
548
+ <button
549
+ class="pf-v5-c-button pf-m-plain"
550
+ type="button"
551
+ aria-labelledby="chip-group-with-categories-overflow-expandedremove_chip_three_toolbar chip-group-with-categories-overflow-expandedchip_three_toolbar"
552
+ aria-label="Remove"
553
+ id="chip-group-with-categories-overflow-expandedremove_chip_three_toolbar"
554
+ >
555
+ <i class="fas fa-times" aria-hidden="true"></i>
556
+ </button>
557
+ </span>
558
+ </div>
559
+ </li>
560
+ <li class="pf-v5-c-chip-group__list-item">
561
+ <div class="pf-v5-c-chip">
562
+ <span class="pf-v5-c-chip__content">
563
+ <span
564
+ class="pf-v5-c-chip__text"
565
+ id="chip-group-with-categories-overflow-expandedchip_four_toolbar"
566
+ >Chip four</span>
567
+ </span>
568
+ <span class="pf-v5-c-chip__actions">
569
+ <button
570
+ class="pf-v5-c-button pf-m-plain"
571
+ type="button"
572
+ aria-labelledby="chip-group-with-categories-overflow-expandedremove_chip_four_toolbar chip-group-with-categories-overflow-expandedchip_four_toolbar"
573
+ aria-label="Remove"
574
+ id="chip-group-with-categories-overflow-expandedremove_chip_four_toolbar"
575
+ >
576
+ <i class="fas fa-times" aria-hidden="true"></i>
577
+ </button>
578
+ </span>
579
+ </div>
580
+ </li>
581
+ <li class="pf-v5-c-chip-group__list-item">
582
+ <div class="pf-v5-c-chip">
583
+ <span class="pf-v5-c-chip__content">
584
+ <span
585
+ class="pf-v5-c-chip__text"
586
+ id="chip-group-with-categories-overflow-expandedchip_five_select"
587
+ >Chip five</span>
588
+ </span>
589
+ <span class="pf-v5-c-chip__actions">
590
+ <button
591
+ class="pf-v5-c-button pf-m-plain"
592
+ type="button"
593
+ aria-labelledby="chip-group-with-categories-overflow-expandedremove_chip_five_select chip-group-with-categories-overflow-expandedchip_five_select"
594
+ aria-label="Remove"
595
+ id="chip-group-with-categories-overflow-expandedremove_chip_five_select"
596
+ >
597
+ <i class="fas fa-times" aria-hidden="true"></i>
598
+ </button>
599
+ </span>
600
+ </div>
601
+ </li>
602
+ <li class="pf-v5-c-chip-group__list-item">
603
+ <button class="pf-v5-c-chip pf-m-overflow">
604
+ <span class="pf-v5-c-chip__content">
605
+ <span class="pf-v5-c-chip__text">Show less</span>
606
+ </span>
607
+ </button>
608
+ </li>
609
+ </ul>
610
+ </div>
611
+ </div>
612
+
613
+ ```
614
+
615
+ ### Chip group with removable categories
616
+
617
+ ```html
618
+ <div class="pf-v5-c-chip-group pf-m-category">
619
+ <div class="pf-v5-c-chip-group__main">
620
+ <span
621
+ class="pf-v5-c-chip-group__label"
622
+ aria-hidden="true"
623
+ id="chip-group-with-categories-removable-label"
624
+ >Category one</span>
625
+ <ul
626
+ class="pf-v5-c-chip-group__list"
627
+ role="list"
628
+ aria-labelledby="chip-group-with-categories-removable-label"
629
+ >
630
+ <li class="pf-v5-c-chip-group__list-item">
631
+ <div class="pf-v5-c-chip">
632
+ <span class="pf-v5-c-chip__content">
633
+ <span
634
+ class="pf-v5-c-chip__text"
635
+ id="chip-group-with-categories-removablechip_one_toolbar"
636
+ >Chip one</span>
637
+ </span>
638
+ <span class="pf-v5-c-chip__actions">
639
+ <button
640
+ class="pf-v5-c-button pf-m-plain"
641
+ type="button"
642
+ aria-labelledby="chip-group-with-categories-removableremove_chip_one_toolbar chip-group-with-categories-removablechip_one_toolbar"
643
+ aria-label="Remove"
644
+ id="chip-group-with-categories-removableremove_chip_one_toolbar"
645
+ >
646
+ <i class="fas fa-times" aria-hidden="true"></i>
647
+ </button>
648
+ </span>
649
+ </div>
650
+ </li>
651
+ <li class="pf-v5-c-chip-group__list-item">
652
+ <div class="pf-v5-c-chip">
653
+ <span class="pf-v5-c-chip__content">
654
+ <span
655
+ class="pf-v5-c-chip__text"
656
+ id="chip-group-with-categories-removablechip_two_toolbar"
657
+ >Chip two</span>
658
+ </span>
659
+ <span class="pf-v5-c-chip__actions">
660
+ <button
661
+ class="pf-v5-c-button pf-m-plain"
662
+ type="button"
663
+ aria-labelledby="chip-group-with-categories-removableremove_chip_two_toolbar chip-group-with-categories-removablechip_two_toolbar"
664
+ aria-label="Remove"
665
+ id="chip-group-with-categories-removableremove_chip_two_toolbar"
666
+ >
667
+ <i class="fas fa-times" aria-hidden="true"></i>
668
+ </button>
669
+ </span>
670
+ </div>
671
+ </li>
672
+ <li class="pf-v5-c-chip-group__list-item">
673
+ <div class="pf-v5-c-chip">
674
+ <span class="pf-v5-c-chip__content">
675
+ <span
676
+ class="pf-v5-c-chip__text"
677
+ id="chip-group-with-categories-removablechip_three_toolbar"
678
+ >Chip three</span>
679
+ </span>
680
+ <span class="pf-v5-c-chip__actions">
681
+ <button
682
+ class="pf-v5-c-button pf-m-plain"
683
+ type="button"
684
+ aria-labelledby="chip-group-with-categories-removableremove_chip_three_toolbar chip-group-with-categories-removablechip_three_toolbar"
685
+ aria-label="Remove"
686
+ id="chip-group-with-categories-removableremove_chip_three_toolbar"
687
+ >
688
+ <i class="fas fa-times" aria-hidden="true"></i>
689
+ </button>
690
+ </span>
691
+ </div>
692
+ </li>
693
+ <li class="pf-v5-c-chip-group__list-item">
694
+ <div class="pf-v5-c-chip">
695
+ <span class="pf-v5-c-chip__content">
696
+ <span
697
+ class="pf-v5-c-chip__text"
698
+ id="chip-group-with-categories-removablechip_four_toolbar"
699
+ >Chip four</span>
700
+ </span>
701
+ <span class="pf-v5-c-chip__actions">
702
+ <button
703
+ class="pf-v5-c-button pf-m-plain"
704
+ type="button"
705
+ aria-labelledby="chip-group-with-categories-removableremove_chip_four_toolbar chip-group-with-categories-removablechip_four_toolbar"
706
+ aria-label="Remove"
707
+ id="chip-group-with-categories-removableremove_chip_four_toolbar"
708
+ >
709
+ <i class="fas fa-times" aria-hidden="true"></i>
710
+ </button>
711
+ </span>
712
+ </div>
713
+ </li>
714
+ <li class="pf-v5-c-chip-group__list-item">
715
+ <div class="pf-v5-c-chip">
716
+ <span class="pf-v5-c-chip__content">
717
+ <span
718
+ class="pf-v5-c-chip__text"
719
+ id="chip-group-with-categories-removablechip_five_toolbar"
720
+ >Chip five</span>
721
+ </span>
722
+ <span class="pf-v5-c-chip__actions">
723
+ <button
724
+ class="pf-v5-c-button pf-m-plain"
725
+ type="button"
726
+ aria-labelledby="chip-group-with-categories-removableremove_chip_five_toolbar chip-group-with-categories-removablechip_five_toolbar"
727
+ aria-label="Remove"
728
+ id="chip-group-with-categories-removableremove_chip_five_toolbar"
729
+ >
730
+ <i class="fas fa-times" aria-hidden="true"></i>
731
+ </button>
732
+ </span>
733
+ </div>
734
+ </li>
735
+ <li class="pf-v5-c-chip-group__list-item">
736
+ <div class="pf-v5-c-chip">
737
+ <span class="pf-v5-c-chip__content">
738
+ <span
739
+ class="pf-v5-c-chip__text"
740
+ id="chip-group-with-categories-removablechip_six_toolbar"
741
+ >Chip six</span>
742
+ </span>
743
+ <span class="pf-v5-c-chip__actions">
744
+ <button
745
+ class="pf-v5-c-button pf-m-plain"
746
+ type="button"
747
+ aria-labelledby="chip-group-with-categories-removableremove_chip_six_toolbar chip-group-with-categories-removablechip_six_toolbar"
748
+ aria-label="Remove"
749
+ id="chip-group-with-categories-removableremove_chip_six_toolbar"
750
+ >
751
+ <i class="fas fa-times" aria-hidden="true"></i>
752
+ </button>
753
+ </span>
754
+ </div>
755
+ </li>
756
+ </ul>
757
+ </div>
758
+ <div class="pf-v5-c-chip-group__close">
759
+ <button
760
+ class="pf-v5-c-button pf-m-plain"
761
+ type="button"
762
+ aria-labelledby="chip-group-with-categories-removable-button chip-group-with-categories-removable-label"
763
+ aria-label="Close chip group"
764
+ id="chip-group-with-categories-removable-button"
765
+ >
766
+ <i class="fas fa-times-circle" aria-hidden="true"></i>
767
+ </button>
768
+ </div>
769
+ </div>
770
+
771
+ ```
772
+
93
773
  ## Documentation
94
774
 
95
- ### Overview
775
+ ### Chip overview
96
776
 
97
777
  A Chip is used to display items that have been filtered or selected from a larger group. They comprise of a text element and a button component that is used to remove the chip from selection. When the text overflows it is truncated using ellipses. A chip can be grouped by using the "chip-group" component.
98
778
 
99
- ## Accessibility
779
+ ### Chip accessibility
100
780
 
101
781
  | Attribute | Applied to | Outcome |
102
782
  | -- | -- | -- |
@@ -104,7 +784,7 @@ A Chip is used to display items that have been filtered or selected from a large
104
784
  | `aria-labelledby="[id value of .pf-v5-c-button]"` | `.pf-v5-c-button` | Gives the button an accessible name by referring to the element that provides the position of the button within a list. Required when the button is being removed. |
105
785
  | `aria-hidden="true"` | `<i>` | Hides the icon from assistive technologies. |
106
786
 
107
- ## Usage
787
+ ### Chip usage
108
788
 
109
789
  | Class | Applied to | Outcome |
110
790
  | -- | -- | -- |
@@ -115,3 +795,32 @@ A Chip is used to display items that have been filtered or selected from a large
115
795
  | `.pf-v5-c-chip__actions` | `<span>` | Creates a wrapper for chip actions. **Required for removable chips** |
116
796
  | `.pf-m-overflow` | `button.pf-v5-c-chip` | Applies styling of the overflow chip. |
117
797
  | `.pf-m-draggable` | `.pf-v5-c-chip` | Modifies the chip to be in the draggable state. |
798
+
799
+ ### Chip group overview
800
+
801
+ A chip group is constrained to the width of its container and will wrap when it exceeds that width. An overflow value can be set and when the number of chips exceeds that value, additional chips will be hidden by default. The default overflow value will be set to 3 chips but this can be adjusted per application needs. The toggle button after the last chip allows the group to be expanded (or collapsed).
802
+
803
+ If you want to create sub-groupings of chips to represent multiple values applied against the same category, chips can be grouped by category. This can be useful in filtering use cases, for example, where you want all items that match more than one value of the same attribute, e.g., ‘status = down OR needs maintenance’.
804
+
805
+ The chip group requires the [chip component](#chip-overview). **All single chip accessibility and usage requirements apply.**
806
+
807
+ ### Chip group accessibility
808
+
809
+ | Attributes for closable chip group button | Applied to | Outcome |
810
+ | -- | -- | -- |
811
+ | `role="list"` | `.pf-v5-c-chip-group__list` | Indicates that the chip group list is a list element. This role is redundant since `.pf-v5-c-chip-group__list` is a `<ul>` but is required for screen readers to announce the list propertly. **Required** |
812
+ | `aria-label="[button label text]"` | `.pf-v5-c-chip-group__close > button` | Provides an accessible name for a chip group close when an icon is used instead of text. Required when an icon is used with no supporting text. **Required** |
813
+ | `aria-labelledby="[id value of .pf-v5-c-chip-group__close > button] [id value of .pf-v5-c-chip-group__label]"` | `.pf-v5-c-chip-group__close > button` | Provides an accessible name for the button. **Required** |
814
+
815
+ ### Chip group usage
816
+
817
+ | Class | Applied to | Outcome |
818
+ | -- | -- | -- |
819
+ | `.pf-v5-c-chip-group` | `<div>` | Initiates the chip group component. **Required.** |
820
+ | `.pf-v5-c-chip-group__list` | `<ul>` | Initiates the container for a list of chips. **Required.** |
821
+ | `.pf-v5-c-chip-group__list-item` | `<li>` | Initiates the list item inside of the chip group. **Required.** |
822
+ | `.pf-v5-c-chip-group__label` | `<span>` | Initiates the label to be used in the chip group. |
823
+ | `.pf-v5-c-chip-group__close` | `<div>` | Initiates the container used for the button to remove the chip group. |
824
+ | `.pf-v5-c-chip-group__main` | `<div>` | Initiates the container for the label and list elements so that they wrap together. **Required** |
825
+ | `.pf-v5-c-button` | `.pf-v5-c-chip-group__close <button>` | Initiates the button used to remove the chip group. |
826
+ | `.pf-m-category` | `.pf-v5-c-chip-group` | Modifies the chip group to support category styling. |