@patternfly/patternfly 5.1.0 → 5.2.0-prerelease.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.
Files changed (43) hide show
  1. package/assets/images/logo__pf--reverse-on-md.svg +1 -1
  2. package/assets/images/pf-c-brand__logo-on-lg-white.svg +32 -0
  3. package/assets/images/pf-c-brand__logo-on-md-white.svg +42 -0
  4. package/assets/images/pf-c-brand__logo-on-sm-white.svg +17 -0
  5. package/assets/images/pf-c-brand__logo-on-sm.svg +1 -1
  6. package/assets/images/pf-c-brand__logo-on-xl-white.svg +39 -0
  7. package/assets/images/pf_logo_white.hbs +35 -0
  8. package/assets/images/pf_logo_white.svg +38 -0
  9. package/components/Check/check.css +10 -8
  10. package/components/Check/check.scss +15 -10
  11. package/components/Dropdown/dropdown.css +1 -3
  12. package/components/Dropdown/dropdown.scss +2 -6
  13. package/components/Menu/menu.css +3 -0
  14. package/components/Menu/menu.scss +7 -3
  15. package/components/MenuToggle/menu-toggle.css +1 -2
  16. package/components/MenuToggle/menu-toggle.scss +5 -9
  17. package/components/Radio/radio.css +13 -10
  18. package/components/Radio/radio.scss +17 -11
  19. package/components/Table/table.css +6 -2
  20. package/components/Table/table.scss +8 -2
  21. package/components/Toolbar/toolbar.css +9 -1
  22. package/components/Toolbar/toolbar.scss +16 -3
  23. package/docs/components/Brand/examples/Brand.css +12 -0
  24. package/docs/components/Brand/examples/Brand.md +75 -32
  25. package/docs/components/Card/examples/Card.md +123 -15
  26. package/docs/components/Check/examples/Check.md +71 -59
  27. package/docs/components/LogViewer/examples/LogViewer.md +120 -30
  28. package/docs/components/MenuToggle/examples/MenuToggle.md +60 -39
  29. package/docs/components/Radio/examples/Radio.md +63 -55
  30. package/docs/components/Select/deprecated/Select.md +184 -177
  31. package/docs/components/Toolbar/examples/Toolbar.md +460 -380
  32. package/docs/demos/CardView/examples/CardView.md +24 -20
  33. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +144 -120
  34. package/docs/demos/Table/examples/Table.md +288 -240
  35. package/docs/demos/Tabs/examples/Tabs.md +24 -20
  36. package/docs/demos/Toolbar/examples/Toolbar.css +5 -0
  37. package/docs/demos/Toolbar/examples/Toolbar.md +44 -44
  38. package/package.json +5 -5
  39. package/patternfly-no-globals.css +43 -26
  40. package/patternfly-theme-dark-unversioned.css +43 -26
  41. package/patternfly.css +43 -26
  42. package/patternfly.min.css +1 -1
  43. package/patternfly.min.css.map +1 -1
@@ -275,14 +275,18 @@ cssPrefix: pf-v5-c-menu-toggle
275
275
 
276
276
  ```html
277
277
  <div class="pf-v5-c-menu-toggle pf-m-split-button pf-m-disabled">
278
- <label class="pf-v5-c-check pf-m-standalone">
278
+ <label
279
+ class="pf-v5-c-check pf-m-standalone"
280
+ id="split-button-checkbox-disabled-example-check"
281
+ for="split-button-checkbox-disabled-example-check-input"
282
+ >
279
283
  <input
280
284
  class="pf-v5-c-check__input"
281
285
  type="checkbox"
286
+ id="split-button-checkbox-disabled-example-check-input"
287
+ name="split-button-checkbox-disabled-example-check-input"
288
+ aria-label="Standalone check"
282
289
  disabled
283
- id="split-button-checkbox-disabled-example-input"
284
- name="split-button-checkbox-disabled-example-input"
285
- aria-label="Standalone input"
286
290
  />
287
291
  </label>
288
292
  <button
@@ -302,13 +306,17 @@ cssPrefix: pf-v5-c-menu-toggle
302
306
  </div>
303
307
  &nbsp;
304
308
  <div class="pf-v5-c-menu-toggle pf-m-split-button">
305
- <label class="pf-v5-c-check pf-m-standalone">
309
+ <label
310
+ class="pf-v5-c-check pf-m-standalone"
311
+ id="split-button-checkbox-example-check"
312
+ for="split-button-checkbox-example-check-input"
313
+ >
306
314
  <input
307
315
  class="pf-v5-c-check__input"
308
316
  type="checkbox"
309
- id="split-button-checkbox-example-input"
310
- name="split-button-checkbox-example-input"
311
- aria-label="Standalone input"
317
+ id="split-button-checkbox-example-check-input"
318
+ name="split-button-checkbox-example-check-input"
319
+ aria-label="Standalone check"
312
320
  />
313
321
  </label>
314
322
  <button
@@ -327,13 +335,17 @@ cssPrefix: pf-v5-c-menu-toggle
327
335
  </div>
328
336
  &nbsp;
329
337
  <div class="pf-v5-c-menu-toggle pf-m-expanded pf-m-split-button">
330
- <label class="pf-v5-c-check pf-m-standalone">
338
+ <label
339
+ class="pf-v5-c-check pf-m-standalone"
340
+ id="split-button-checkbox-expanded-example-check"
341
+ for="split-button-checkbox-expanded-example-check-input"
342
+ >
331
343
  <input
332
344
  class="pf-v5-c-check__input"
333
345
  type="checkbox"
334
- id="split-button-checkbox-expanded-example-input"
335
- name="split-button-checkbox-expanded-example-input"
336
- aria-label="Standalone input"
346
+ id="split-button-checkbox-expanded-example-check-input"
347
+ name="split-button-checkbox-expanded-example-check-input"
348
+ aria-label="Standalone check"
337
349
  />
338
350
  </label>
339
351
  <button
@@ -359,14 +371,15 @@ cssPrefix: pf-v5-c-menu-toggle
359
371
  <div class="pf-v5-c-menu-toggle pf-m-split-button pf-m-disabled">
360
372
  <label
361
373
  class="pf-v5-c-check"
362
- for="split-button-checkbox-with-toggle-text-disabled-example-input"
374
+ id="split-button-checkbox-with-toggle-text-disabled-example-check"
375
+ for="split-button-checkbox-with-toggle-text-disabled-example-check-input"
363
376
  >
364
377
  <input
365
378
  class="pf-v5-c-check__input"
366
379
  type="checkbox"
380
+ id="split-button-checkbox-with-toggle-text-disabled-example-check-input"
381
+ name="split-button-checkbox-with-toggle-text-disabled-example-check-input"
367
382
  disabled
368
- id="split-button-checkbox-with-toggle-text-disabled-example-input"
369
- name="split-button-checkbox-with-toggle-text-disabled-example-input"
370
383
  />
371
384
  <span class="pf-v5-c-check__label pf-m-disabled">10 selected</span>
372
385
  </label>
@@ -389,13 +402,14 @@ cssPrefix: pf-v5-c-menu-toggle
389
402
  <div class="pf-v5-c-menu-toggle pf-m-split-button">
390
403
  <label
391
404
  class="pf-v5-c-check"
392
- for="split-button-checkbox-with-toggle-text-example-input"
405
+ id="split-button-checkbox-with-toggle-text-example-check"
406
+ for="split-button-checkbox-with-toggle-text-example-check-input"
393
407
  >
394
408
  <input
395
409
  class="pf-v5-c-check__input"
396
410
  type="checkbox"
397
- id="split-button-checkbox-with-toggle-text-example-input"
398
- name="split-button-checkbox-with-toggle-text-example-input"
411
+ id="split-button-checkbox-with-toggle-text-example-check-input"
412
+ name="split-button-checkbox-with-toggle-text-example-check-input"
399
413
  />
400
414
  <span class="pf-v5-c-check__label">10 selected</span>
401
415
  </label>
@@ -417,13 +431,14 @@ cssPrefix: pf-v5-c-menu-toggle
417
431
  <div class="pf-v5-c-menu-toggle pf-m-expanded pf-m-split-button">
418
432
  <label
419
433
  class="pf-v5-c-check"
420
- for="split-button-checkbox-with-toggle-text-expanded-example-input"
434
+ id="split-button-checkbox-with-toggle-text-expanded-example-check"
435
+ for="split-button-checkbox-with-toggle-text-expanded-example-check-input"
421
436
  >
422
437
  <input
423
438
  class="pf-v5-c-check__input"
424
439
  type="checkbox"
425
- id="split-button-checkbox-with-toggle-text-expanded-example-input"
426
- name="split-button-checkbox-with-toggle-text-expanded-example-input"
440
+ id="split-button-checkbox-with-toggle-text-expanded-example-check-input"
441
+ name="split-button-checkbox-with-toggle-text-expanded-example-check-input"
427
442
  />
428
443
  <span class="pf-v5-c-check__label">10 selected</span>
429
444
  </label>
@@ -450,14 +465,15 @@ cssPrefix: pf-v5-c-menu-toggle
450
465
  <div class="pf-v5-c-menu-toggle pf-m-split-button pf-m-disabled pf-m-primary">
451
466
  <label
452
467
  class="pf-v5-c-check"
453
- for="split-button-checkbox-primary-disabled-example-input"
468
+ id="split-button-checkbox-primary-disabled-example-check"
469
+ for="split-button-checkbox-primary-disabled-example-check-input"
454
470
  >
455
471
  <input
456
472
  class="pf-v5-c-check__input"
457
473
  type="checkbox"
474
+ id="split-button-checkbox-primary-disabled-example-check-input"
475
+ name="split-button-checkbox-primary-disabled-example-check-input"
458
476
  disabled
459
- id="split-button-checkbox-primary-disabled-example-input"
460
- name="split-button-checkbox-primary-disabled-example-input"
461
477
  />
462
478
  <span class="pf-v5-c-check__label pf-m-disabled">10 selected</span>
463
479
  </label>
@@ -480,13 +496,14 @@ cssPrefix: pf-v5-c-menu-toggle
480
496
  <div class="pf-v5-c-menu-toggle pf-m-split-button pf-m-primary">
481
497
  <label
482
498
  class="pf-v5-c-check"
483
- for="split-button-checkbox-primary-example-input"
499
+ id="split-button-checkbox-primary-example-check"
500
+ for="split-button-checkbox-primary-example-check-input"
484
501
  >
485
502
  <input
486
503
  class="pf-v5-c-check__input"
487
504
  type="checkbox"
488
- id="split-button-checkbox-primary-example-input"
489
- name="split-button-checkbox-primary-example-input"
505
+ id="split-button-checkbox-primary-example-check-input"
506
+ name="split-button-checkbox-primary-example-check-input"
490
507
  />
491
508
  <span class="pf-v5-c-check__label">10 selected</span>
492
509
  </label>
@@ -508,13 +525,14 @@ cssPrefix: pf-v5-c-menu-toggle
508
525
  <div class="pf-v5-c-menu-toggle pf-m-expanded pf-m-split-button pf-m-primary">
509
526
  <label
510
527
  class="pf-v5-c-check"
511
- for="split-button-checkbox-primary-expanded-example-input"
528
+ id="split-button-checkbox-primary-expanded-example-check"
529
+ for="split-button-checkbox-primary-expanded-example-check-input"
512
530
  >
513
531
  <input
514
532
  class="pf-v5-c-check__input"
515
533
  type="checkbox"
516
- id="split-button-checkbox-primary-expanded-example-input"
517
- name="split-button-checkbox-primary-expanded-example-input"
534
+ id="split-button-checkbox-primary-expanded-example-check-input"
535
+ name="split-button-checkbox-primary-expanded-example-check-input"
518
536
  />
519
537
  <span class="pf-v5-c-check__label">10 selected</span>
520
538
  </label>
@@ -541,14 +559,15 @@ cssPrefix: pf-v5-c-menu-toggle
541
559
  <div class="pf-v5-c-menu-toggle pf-m-split-button pf-m-disabled pf-m-secondary">
542
560
  <label
543
561
  class="pf-v5-c-check"
544
- for="split-button-checkbox-secondary-disabled-example-input"
562
+ id="split-button-checkbox-secondary-disabled-example-check"
563
+ for="split-button-checkbox-secondary-disabled-example-check-input"
545
564
  >
546
565
  <input
547
566
  class="pf-v5-c-check__input"
548
567
  type="checkbox"
568
+ id="split-button-checkbox-secondary-disabled-example-check-input"
569
+ name="split-button-checkbox-secondary-disabled-example-check-input"
549
570
  disabled
550
- id="split-button-checkbox-secondary-disabled-example-input"
551
- name="split-button-checkbox-secondary-disabled-example-input"
552
571
  />
553
572
  <span class="pf-v5-c-check__label pf-m-disabled">10 selected</span>
554
573
  </label>
@@ -571,13 +590,14 @@ cssPrefix: pf-v5-c-menu-toggle
571
590
  <div class="pf-v5-c-menu-toggle pf-m-split-button pf-m-secondary">
572
591
  <label
573
592
  class="pf-v5-c-check"
574
- for="split-button-checkbox-secondary-example-input"
593
+ id="split-button-checkbox-secondary-example-check"
594
+ for="split-button-checkbox-secondary-example-check-input"
575
595
  >
576
596
  <input
577
597
  class="pf-v5-c-check__input"
578
598
  type="checkbox"
579
- id="split-button-checkbox-secondary-example-input"
580
- name="split-button-checkbox-secondary-example-input"
599
+ id="split-button-checkbox-secondary-example-check-input"
600
+ name="split-button-checkbox-secondary-example-check-input"
581
601
  />
582
602
  <span class="pf-v5-c-check__label">10 selected</span>
583
603
  </label>
@@ -599,13 +619,14 @@ cssPrefix: pf-v5-c-menu-toggle
599
619
  <div class="pf-v5-c-menu-toggle pf-m-expanded pf-m-split-button pf-m-secondary">
600
620
  <label
601
621
  class="pf-v5-c-check"
602
- for="split-button-checkbox-secondary-expanded-example-input"
622
+ id="split-button-checkbox-secondary-expanded-example-check"
623
+ for="split-button-checkbox-secondary-expanded-example-check-input"
603
624
  >
604
625
  <input
605
626
  class="pf-v5-c-check__input"
606
627
  type="checkbox"
607
- id="split-button-checkbox-secondary-expanded-example-input"
608
- name="split-button-checkbox-secondary-expanded-example-input"
628
+ id="split-button-checkbox-secondary-expanded-example-check-input"
629
+ name="split-button-checkbox-secondary-expanded-example-check-input"
609
630
  />
610
631
  <span class="pf-v5-c-check__label">10 selected</span>
611
632
  </label>
@@ -8,15 +8,17 @@ cssPrefix: pf-v5-c-radio
8
8
  ### Basic
9
9
 
10
10
  ```html
11
- <div class="pf-v5-c-radio">
11
+ <div class="pf-v5-c-radio" id="radio-basic-example">
12
12
  <input
13
13
  class="pf-v5-c-radio__input"
14
14
  type="radio"
15
- id="radio-simple"
16
- name="exampleRadioSimple"
15
+ id="radio-basic-example-input"
16
+ name="radio-basic-example-input"
17
17
  />
18
-
19
- <label class="pf-v5-c-radio__label" for="radio-simple">Radio</label>
18
+ <label
19
+ class="pf-v5-c-radio__label"
20
+ for="radio-basic-example-input"
21
+ >Basic radio</label>
20
22
  </div>
21
23
 
22
24
  ```
@@ -24,16 +26,18 @@ cssPrefix: pf-v5-c-radio
24
26
  ### Checked
25
27
 
26
28
  ```html
27
- <div class="pf-v5-c-radio">
29
+ <div class="pf-v5-c-radio" id="radio-checked-example">
28
30
  <input
29
31
  class="pf-v5-c-radio__input"
30
32
  type="radio"
31
- id="radio-checked"
32
- name="exampleRadioChecked"
33
+ id="radio-checked-example-input"
34
+ name="radio-checked-example-input"
33
35
  checked
34
36
  />
35
-
36
- <label class="pf-v5-c-radio__label" for="radio-checked">Radio checked</label>
37
+ <label
38
+ class="pf-v5-c-radio__label"
39
+ for="radio-checked-example-input"
40
+ >Radio checked</label>
37
41
  </div>
38
42
 
39
43
  ```
@@ -41,14 +45,17 @@ cssPrefix: pf-v5-c-radio
41
45
  ### Label wrapping input
42
46
 
43
47
  ```html
44
- <label class="pf-v5-c-radio" for="radio-wrap">
48
+ <label
49
+ class="pf-v5-c-radio"
50
+ id="radio-label-wrapping-input-example"
51
+ for="radio-label-wrapping-input-example-input"
52
+ >
45
53
  <input
46
54
  class="pf-v5-c-radio__input"
47
55
  type="radio"
48
- id="radio-wrap"
49
- name="exampleRadioWrap"
56
+ id="radio-label-wrapping-input-example-input"
57
+ name="radio-label-wrapping-input-example-input"
50
58
  />
51
-
52
59
  <span class="pf-v5-c-radio__label">Radio label wraps input</span>
53
60
  </label>
54
61
 
@@ -57,14 +64,16 @@ cssPrefix: pf-v5-c-radio
57
64
  ### Reversed
58
65
 
59
66
  ```html
60
- <div class="pf-v5-c-radio">
61
- <label class="pf-v5-c-radio__label" for="radio-rev">Radio reversed</label>
62
-
67
+ <div class="pf-v5-c-radio" id="radio-reversed-example">
68
+ <label
69
+ class="pf-v5-c-radio__label"
70
+ for="radio-reversed-example-input"
71
+ >Radio reversed</label>
63
72
  <input
64
73
  class="pf-v5-c-radio__input"
65
74
  type="radio"
66
- id="radio-rev"
67
- name="exampleRadioReversed"
75
+ id="radio-reversed-example-input"
76
+ name="radio-reversed-example-input"
68
77
  />
69
78
  </div>
70
79
 
@@ -73,35 +82,32 @@ cssPrefix: pf-v5-c-radio
73
82
  ### Disabled
74
83
 
75
84
  ```html
76
- <div class="pf-v5-c-radio">
85
+ <div class="pf-v5-c-radio" id="radio-disabled-example">
77
86
  <input
78
87
  class="pf-v5-c-radio__input"
79
88
  type="radio"
80
- id="radio-disabled"
81
- name="exampleRadioDisabled"
89
+ id="radio-disabled-example-input"
90
+ name="radio-disabled-example-input"
82
91
  disabled
83
92
  />
84
-
85
93
  <label
86
94
  class="pf-v5-c-radio__label pf-m-disabled"
87
- for="radio-disabled"
95
+ for="radio-disabled-example-input"
88
96
  >Radio disabled</label>
89
97
  </div>
90
-
91
- <div class="pf-v5-c-radio">
98
+ <div class="pf-v5-c-radio" id="radio-disabled-checked-example">
92
99
  <input
93
100
  class="pf-v5-c-radio__input"
94
101
  type="radio"
95
- id="radio-disabled-checked"
96
- name="exampleRadioDisabledChecked"
97
- disabled
102
+ id="radio-disabled-checked-example-input"
103
+ name="radio-disabled-checked-example-input"
98
104
  checked
105
+ disabled
99
106
  />
100
-
101
107
  <label
102
108
  class="pf-v5-c-radio__label pf-m-disabled"
103
- for="radio-disabled-checked"
104
- >Radio disabled checked</label>
109
+ for="radio-disabled-checked-example-input"
110
+ >Radio disabled</label>
105
111
  </div>
106
112
 
107
113
  ```
@@ -109,21 +115,21 @@ cssPrefix: pf-v5-c-radio
109
115
  ### With description
110
116
 
111
117
  ```html
112
- <div class="pf-v5-c-radio">
118
+ <div class="pf-v5-c-radio" id="radio-with-description-exmaple">
113
119
  <input
114
120
  class="pf-v5-c-radio__input"
115
121
  type="radio"
116
- id="radio-description"
117
- name="exampleRadioDescription"
122
+ aria-describedby="radio-with-description-exmaple-description"
123
+ id="radio-with-description-exmaple-input"
124
+ name="radio-with-description-exmaple-input"
118
125
  />
119
-
120
126
  <label
121
127
  class="pf-v5-c-radio__label"
122
- for="radio-description"
128
+ for="radio-with-description-exmaple-input"
123
129
  >Radio with description</label>
124
-
125
130
  <span
126
131
  class="pf-v5-c-radio__description"
132
+ id="radio-with-description-exmaple-description"
127
133
  >Single-tenant cloud service hosted and managed by Red Hat that offers high-availability enterprise-grade clusters in a virtual private cloud on AWS od GCP.</span>
128
134
  </div>
129
135
 
@@ -132,16 +138,17 @@ cssPrefix: pf-v5-c-radio
132
138
  ### With body
133
139
 
134
140
  ```html
135
- <div class="pf-v5-c-radio">
141
+ <div class="pf-v5-c-radio" id="radio-with-body-example">
136
142
  <input
137
143
  class="pf-v5-c-radio__input"
138
144
  type="radio"
139
- id="radio-body"
140
- name="exampleRadioBody"
145
+ id="radio-with-body-example-input"
146
+ name="radio-with-body-example-input"
141
147
  />
142
-
143
- <label class="pf-v5-c-radio__label" for="radio-body">Radio with body</label>
144
-
148
+ <label
149
+ class="pf-v5-c-radio__label"
150
+ for="radio-with-body-example-input"
151
+ >Radio with body</label>
145
152
  <span class="pf-v5-c-radio__body">This is where custom content goes.</span>
146
153
  </div>
147
154
 
@@ -150,21 +157,21 @@ cssPrefix: pf-v5-c-radio
150
157
  ### With description and body
151
158
 
152
159
  ```html
153
- <div class="pf-v5-c-radio">
160
+ <div class="pf-v5-c-radio" id="radio-with-description-body-example">
154
161
  <input
155
162
  class="pf-v5-c-radio__input"
156
163
  type="radio"
157
- id="radio-description-body"
158
- name="exampleRadioDescriptionBody"
164
+ aria-describedby="radio-with-description-body-example-description"
165
+ id="radio-with-description-body-example-input"
166
+ name="radio-with-description-body-example-input"
159
167
  />
160
-
161
168
  <label
162
169
  class="pf-v5-c-radio__label"
163
- for="radio-description-body"
170
+ for="radio-with-description-body-example-input"
164
171
  >Radio with description and body</label>
165
-
166
172
  <span
167
173
  class="pf-v5-c-radio__description"
174
+ id="radio-with-description-body-example-description"
168
175
  >Single-tenant cloud service hosted and managed by Red Hat that offers high-availability enterprise-grade clusters in a virtual private cloud on AWS od GCP.</span>
169
176
  <span class="pf-v5-c-radio__body">This is where custom content goes.</span>
170
177
  </div>
@@ -174,15 +181,15 @@ cssPrefix: pf-v5-c-radio
174
181
  ### Standalone input
175
182
 
176
183
  ```html
177
- <div class="pf-v5-c-radio pf-m-standalone">
184
+ <label class="pf-v5-c-radio pf-m-standalone" id="radio-standalon-input-example">
178
185
  <input
179
186
  class="pf-v5-c-radio__input"
180
187
  type="radio"
181
- id="radio-standalone"
182
- name="exampleRadioStandalone"
183
- aria-label="Standalone input"
188
+ id="radio-standalon-input-example-input"
189
+ name="radio-standalon-input-example-input"
190
+ aria-label="Standalone radio"
184
191
  />
185
- </div>
192
+ </label>
186
193
 
187
194
  ```
188
195
 
@@ -199,6 +206,7 @@ If you extend this component or modify the styles of this component, then make s
199
206
  | Attribute | Applied to | Outcome |
200
207
  | -- | -- | -- |
201
208
  | `disabled` | `<input type="radio">` | Indicates that the element is unavailable and removes it from keyboard focus. **Required when input is disabled** |
209
+ | `aria-describedby` | `.pf-v5-c-radio__input` | When using `.pf-v5-c-radio__description` make use of this on the input. |
202
210
 
203
211
  ### Usage
204
212