@patternfly/patternfly 6.0.0-alpha.17 → 6.0.0-alpha.18

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 (64) 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/base/_globals.scss +1 -1
  10. package/base/patternfly-variables.css +1 -1
  11. package/base/tokens/_tokens-font.scss +2 -2
  12. package/components/Accordion/accordion.css +10 -1
  13. package/components/Accordion/accordion.scss +13 -1
  14. package/components/Alert/alert.css +1 -1
  15. package/components/Alert/alert.scss +1 -1
  16. package/components/Button/button.css +1 -1
  17. package/components/Button/button.scss +1 -3
  18. package/components/Check/check.css +10 -8
  19. package/components/Check/check.scss +15 -10
  20. package/components/Dropdown/dropdown.css +1 -3
  21. package/components/Dropdown/dropdown.scss +2 -6
  22. package/components/Menu/menu.css +3 -0
  23. package/components/Menu/menu.scss +7 -3
  24. package/components/MenuToggle/menu-toggle.css +2 -3
  25. package/components/MenuToggle/menu-toggle.scss +2 -6
  26. package/components/Page/page.css +1 -1
  27. package/components/Page/page.scss +1 -1
  28. package/components/Radio/radio.css +13 -10
  29. package/components/Radio/radio.scss +17 -11
  30. package/components/Switch/switch.css +1 -1
  31. package/components/Switch/switch.scss +1 -1
  32. package/components/Table/table.css +6 -2
  33. package/components/Table/table.scss +7 -2
  34. package/components/Toolbar/toolbar.css +9 -1
  35. package/components/Toolbar/toolbar.scss +16 -3
  36. package/docs/components/Accordion/examples/Accordion.md +95 -0
  37. package/docs/components/Brand/examples/Brand.css +12 -0
  38. package/docs/components/Brand/examples/Brand.md +75 -32
  39. package/docs/components/Card/examples/Card.md +110 -2
  40. package/docs/components/LogViewer/examples/LogViewer.md +130 -130
  41. package/docs/components/Menu/examples/Menu.md +507 -473
  42. package/docs/components/MenuToggle/examples/MenuToggle.md +106 -114
  43. package/docs/components/Nav/examples/Navigation.md +140 -113
  44. package/docs/components/TextInputGroup/examples/TextInputGroup.md +9 -9
  45. package/docs/components/Toolbar/examples/Toolbar.md +480 -2807
  46. package/docs/demos/CardView/examples/CardView.md +32 -51
  47. package/docs/demos/DataList/examples/DataList.md +184 -320
  48. package/docs/demos/Masthead/examples/Masthead.md +51 -210
  49. package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +2 -1
  50. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +83 -271
  51. package/docs/demos/Table/examples/Table.md +1017 -1800
  52. package/docs/demos/Tabs/examples/Tabs.md +2 -2
  53. package/docs/demos/Toolbar/examples/Toolbar.css +10 -0
  54. package/docs/demos/Toolbar/examples/Toolbar.md +703 -1027
  55. package/package.json +2 -2
  56. package/patternfly-base-no-globals-theme-dark-unversioned.css +1 -1
  57. package/patternfly-base-no-globals.css +1 -1
  58. package/patternfly-base-theme-dark-unversioned.css +1 -1
  59. package/patternfly-base.css +1 -1
  60. package/patternfly-no-globals.css +59 -33
  61. package/patternfly-theme-dark-unversioned.css +59 -33
  62. package/patternfly.css +59 -33
  63. package/patternfly.min.css +1 -1
  64. package/patternfly.min.css.map +1 -1
@@ -5,7 +5,8 @@
5
5
  --pf-v5-c-radio__label--FontWeight: var(--pf-v5-global--FontWeight--normal);
6
6
  --pf-v5-c-radio__label--FontSize: var(--pf-v5-global--FontSize--md);
7
7
  --pf-v5-c-radio__label--LineHeight: var(--pf-v5-global--LineHeight--md);
8
- --pf-v5-c-radio__input--TranslateY--moz: 5px;
8
+ --pf-v5-c-radio__input--TranslateY: calc((var(--pf-v5-c-radio__label--LineHeight) * var(--pf-v5-c-radio__label--FontSize) / 2 ) - 50%);
9
+ --pf-v5-c-radio__input--TranslateY--moz: var(--pf-v5-c-radio__input--TranslateY);
9
10
  --pf-v5-c-radio__input--first-child--MarginLeft: 0.0625rem;
10
11
  --pf-v5-c-radio__input--last-child--MarginRight: 0.0625rem;
11
12
  --pf-v5-c-radio__description--FontSize: var(--pf-v5-global--FontSize--sm);
@@ -18,19 +19,14 @@
18
19
  }
19
20
  .pf-v5-c-radio.pf-m-standalone {
20
21
  --pf-v5-c-radio--GridGap: 0;
21
- --pf-v5-c-radio__input--TranslateY--moz: 0;
22
- width: auto;
23
- }
24
-
25
- .pf-v5-c-radio__label {
26
- font-size: var(--pf-v5-c-radio__label--FontSize);
27
- font-weight: var(--pf-v5-c-radio__label--FontWeight);
28
- line-height: var(--pf-v5-c-radio__label--LineHeight);
29
- color: var(--pf-v5-c-radio__label--Color);
22
+ --pf-v5-c-radio__input--TranslateY: none;
23
+ display: inline-grid;
30
24
  }
31
25
 
32
26
  .pf-v5-c-radio__input {
27
+ align-self: start;
33
28
  -moz-transform: translateY(var(--pf-v5-c-radio__input--TranslateY--moz));
29
+ transform: translateY(var(--pf-v5-c-radio__input--TranslateY));
34
30
  }
35
31
  .pf-v5-c-radio__input:first-child {
36
32
  margin-inline-start: var(--pf-v5-c-radio__input--first-child--MarginLeft);
@@ -39,6 +35,13 @@
39
35
  margin-inline-end: var(--pf-v5-c-radio__input--last-child--MarginRight);
40
36
  }
41
37
 
38
+ .pf-v5-c-radio__label {
39
+ font-size: var(--pf-v5-c-radio__label--FontSize);
40
+ font-weight: var(--pf-v5-c-radio__label--FontWeight);
41
+ line-height: var(--pf-v5-c-radio__label--LineHeight);
42
+ color: var(--pf-v5-c-radio__label--Color);
43
+ }
44
+
42
45
  .pf-v5-c-radio__description {
43
46
  grid-column: 2;
44
47
  font-size: var(--pf-v5-c-radio__description--FontSize);
@@ -7,7 +7,8 @@
7
7
  --#{$radio}__label--FontWeight: var(--#{$pf-global}--FontWeight--normal);
8
8
  --#{$radio}__label--FontSize: var(--#{$pf-global}--FontSize--md);
9
9
  --#{$radio}__label--LineHeight: var(--#{$pf-global}--LineHeight--md);
10
- --#{$radio}__input--TranslateY--moz: 5px;
10
+ --#{$radio}__input--TranslateY: calc((var(--pf-v5-c-radio__label--LineHeight) * var(--pf-v5-c-radio__label--FontSize) / 2 ) - 50%); // find height of single label, divide by two, offset by 50% of own height
11
+ --#{$radio}__input--TranslateY--moz: var(--#{$radio}__input--TranslateY); // remove at breaking change
11
12
  --#{$radio}__input--first-child--MarginLeft: #{pf-size-prem(1px)};
12
13
  --#{$radio}__input--last-child--MarginRight: #{pf-size-prem(1px)};
13
14
  --#{$radio}__description--FontSize: var(--#{$pf-global}--FontSize--sm);
@@ -21,24 +22,22 @@
21
22
 
22
23
  &.pf-m-standalone {
23
24
  --#{$radio}--GridGap: 0;
24
- --#{$radio}__input--TranslateY--moz: 0;
25
+ --#{$radio}__input--TranslateY: none;
25
26
 
26
- width: auto;
27
+ display: inline-grid;
27
28
  }
28
29
  }
29
30
 
30
- .#{$radio}__label {
31
- font-size: var(--#{$radio}__label--FontSize);
32
- font-weight: var(--#{$radio}__label--FontWeight);
33
- line-height: var(--#{$radio}__label--LineHeight);
34
- color: var(--#{$radio}__label--Color);
35
- }
36
-
37
31
  .#{$radio}__input {
32
+ align-self: start;
33
+
38
34
  // stylelint-disable property-no-vendor-prefix
39
- -moz-transform: translateY(var(--#{$radio}__input--TranslateY--moz));
35
+ -moz-transform: translateY(var(--#{$radio}__input--TranslateY--moz)); // remove at breaking change - no longer needed
40
36
  // stylelint-enable
41
37
 
38
+ // find height of single label, divide by two, offset by 50% of own height
39
+ transform: translateY(var(--#{$radio}__input--TranslateY));
40
+
42
41
  // fixes a chrome issue where the left edge is cut off in a container with overflow hidden
43
42
  &:first-child {
44
43
  margin-inline-start: var(--#{$radio}__input--first-child--MarginLeft);
@@ -50,6 +49,13 @@
50
49
  }
51
50
  }
52
51
 
52
+ .#{$radio}__label {
53
+ font-size: var(--#{$radio}__label--FontSize);
54
+ font-weight: var(--#{$radio}__label--FontWeight);
55
+ line-height: var(--#{$radio}__label--LineHeight);
56
+ color: var(--#{$radio}__label--Color);
57
+ }
58
+
53
59
  .#{$radio}__description {
54
60
  grid-column: 2;
55
61
  font-size: var(--#{$radio}__description--FontSize);
@@ -56,7 +56,7 @@
56
56
  cursor: pointer;
57
57
  opacity: 0;
58
58
  }
59
- .pf-v5-c-switch__input:focus ~ .pf-v5-c-switch__toggle {
59
+ .pf-v5-c-switch__input:focus-visible ~ .pf-v5-c-switch__toggle {
60
60
  outline: var(--pf-v5-c-switch__input--focus__toggle--OutlineWidth) solid var(--pf-v5-c-switch__input--focus__toggle--OutlineColor);
61
61
  outline-offset: var(--pf-v5-c-switch__input--focus__toggle--OutlineOffset);
62
62
  }
@@ -74,7 +74,7 @@
74
74
  cursor: pointer;
75
75
  opacity: 0;
76
76
 
77
- &:focus ~ .#{$switch}__toggle {
77
+ &:focus-visible ~ .#{$switch}__toggle {
78
78
  outline: var(--#{$switch}__input--focus__toggle--OutlineWidth) solid var(--#{$switch}__input--focus__toggle--OutlineColor);
79
79
  outline-offset: var(--#{$switch}__input--focus__toggle--OutlineOffset);
80
80
  }
@@ -117,7 +117,8 @@
117
117
  --pf-v5-c-table__button--OutlineOffset: calc(var(--pf-v5-global--BorderWidth--lg) * -1);
118
118
  --pf-v5-c-table--m-compact__toggle--PaddingTop: 0;
119
119
  --pf-v5-c-table--m-compact__toggle--PaddingBottom: 0;
120
- --pf-v5-c-table__check--input--MarginTop: 0.25rem;
120
+ --pf-v5-c-table__check--input--MarginTop: 0.1875rem;
121
+ --pf-v5-c-table__thead__check--input--TranslateY: var(--pf-v5-c-table__check--input--MarginTop);
121
122
  --pf-v5-c-table__check--input--FontSize: var(--pf-t--global--font--size--body);
122
123
  --pf-v5-c-table--cell--m-favorite--Color: var(--pf-t--global--text--color--subtle);
123
124
  --pf-v5-c-table__favorite--c-button--Color: var(--pf-t--global--text--color--subtle);
@@ -741,13 +742,16 @@
741
742
  cursor: pointer;
742
743
  }
743
744
  .pf-v5-c-table__check label {
744
- display: block;
745
+ display: inline-flex;
745
746
  padding: inherit;
746
747
  margin-block-start: calc(var(--pf-v5-c-table--cell--PaddingTop) * -1);
747
748
  margin-block-end: calc(var(--pf-v5-c-table--cell--PaddingBottom) * -1);
748
749
  margin-inline-start: calc(var(--pf-v5-c-table--cell--PaddingLeft) * -1);
749
750
  margin-inline-end: calc(var(--pf-v5-c-table--cell--PaddingRight) * -1);
750
751
  }
752
+ .pf-v5-c-table__thead .pf-v5-c-check.pf-m-standalone {
753
+ --pf-v5-c-check__input--TranslateY: var(--pf-v5-c-table__thead__check--input--TranslateY);
754
+ }
751
755
 
752
756
  .pf-v5-c-table__favorite .pf-v5-c-button {
753
757
  --pf-v5-c-button--m-plain--Color: var(--pf-v5-c-table__favorite--c-button--Color);
@@ -106,7 +106,8 @@
106
106
  --#{$table}--m-compact__toggle--PaddingBottom: 0;
107
107
 
108
108
  // Check
109
- --#{$table}__check--input--MarginTop: #{pf-size-prem(4px)};
109
+ --#{$table}__check--input--MarginTop: #{pf-size-prem(3px)};
110
+ --#{$table}__thead__check--input--TranslateY: var(--#{$table}__check--input--MarginTop);
110
111
  --#{$table}__check--input--FontSize: var(--pf-t--global--font--size--body);
111
112
 
112
113
  // Favorite
@@ -979,13 +980,17 @@
979
980
  }
980
981
 
981
982
  label {
982
- display: block;
983
+ display: inline-flex;
983
984
  padding: inherit;
984
985
  margin-block-start: calc(var(--#{$table}--cell--PaddingTop) * -1);
985
986
  margin-block-end: calc(var(--#{$table}--cell--PaddingBottom) * -1);
986
987
  margin-inline-start: calc(var(--#{$table}--cell--PaddingLeft) * -1);
987
988
  margin-inline-end: calc(var(--#{$table}--cell--PaddingRight) * -1);
988
989
  }
990
+
991
+ @at-root .#{$table}__thead .#{$check}.pf-m-standalone {
992
+ --#{$check}__input--TranslateY: var(--#{$table}__thead__check--input--TranslateY);
993
+ }
989
994
  }
990
995
 
991
996
  // Favorite body cell
@@ -114,6 +114,9 @@
114
114
  --pf-v5-c-toolbar__item--m-label--spacer: var(--pf-v5-c-toolbar__item--spacer);
115
115
  --pf-v5-c-toolbar__item--m-label--TranslateY: var(--pf-v5-global--spacer--form-element);
116
116
  --pf-v5-c-toolbar__item--m-label--FontWeight: var(--pf-v5-global--FontWeight--bold);
117
+ --pf-v5-c-toolbar__item--m-form-element--spacer: var(--pf-v5-c-toolbar__item--spacer);
118
+ --pf-v5-c-toolbar__item--m-form-element--TranslateY: var(--pf-v5-global--spacer--form-element);
119
+ --pf-v5-c-toolbar__item--m-form-element--FontWeight: var(--pf-v5-global--FontWeight--bold);
117
120
  --pf-v5-c-toolbar__item--m-form-control--TranslateY: var(--pf-v5-global--spacer--form-element);
118
121
  --pf-v5-c-toolbar__expandable-content__item--m-label--MarginBottom: calc(-1 * var(--pf-v5-c-toolbar__expandable-content--m-expanded--GridRowGap) + var(--pf-v5-global--spacer--sm));
119
122
  --pf-v5-c-toolbar__expandable-content__item--m-label--FontSize: var(--pf-v5-global--FontSize--sm);
@@ -363,7 +366,12 @@
363
366
  .pf-v5-c-toolbar__item.pf-m-label {
364
367
  --pf-v5-c-toolbar--spacer: var(--pf-v5-c-toolbar__item--m-label--spacer);
365
368
  font-weight: var(--pf-v5-c-toolbar__item--m-label--FontWeight);
366
- transform: translateY(var(--pf-v5-global--spacer--form-element));
369
+ transform: translateY(var(--pf-v5-c-toolbar__item--m-label--TranslateY));
370
+ }
371
+ .pf-v5-c-toolbar__item.pf-m-form-element {
372
+ --pf-v5-c-toolbar--spacer: var(--pf-v5-c-toolbar__item--m-form-element--spacer);
373
+ font-weight: var(--pf-v5-c-toolbar__item--m-form-element--FontWeight);
374
+ transform: translateY(var(--pf-v5-c-toolbar__item--m-form-element--TranslateY));
367
375
  }
368
376
  .pf-v5-c-toolbar__item.pf-m-pagination {
369
377
  margin-inline-start: auto;
@@ -116,11 +116,16 @@ $pf-v5-c-toolbar--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2
116
116
 
117
117
  // Label
118
118
  --#{$toolbar}__item--m-label--spacer: var(--#{$toolbar}__item--spacer);
119
- --#{$toolbar}__item--m-label--TranslateY: var(--pf-v5-global--spacer--form-element);
119
+ --#{$toolbar}__item--m-label--TranslateY: var(--#{$pf-global}--spacer--form-element);
120
120
  --#{$toolbar}__item--m-label--FontWeight: var(--#{$pf-global}--FontWeight--bold);
121
121
 
122
+ // Form control inline
123
+ --#{$toolbar}__item--m-form-element--spacer: var(--#{$toolbar}__item--spacer);
124
+ --#{$toolbar}__item--m-form-element--TranslateY: var(--#{$pf-global}--spacer--form-element);
125
+ --#{$toolbar}__item--m-form-element--FontWeight: var(--#{$pf-global}--FontWeight--bold);
126
+
122
127
  // Input
123
- --#{$toolbar}__item--m-form-control--TranslateY: var(--pf-v5-global--spacer--form-element);
128
+ --#{$toolbar}__item--m-form-control--TranslateY: var(--#{$pf-global}--spacer--form-element);
124
129
 
125
130
  // Label in expanded content
126
131
  --#{$toolbar}__expandable-content__item--m-label--MarginBottom: calc(-1 * var(--#{$toolbar}__expandable-content--m-expanded--GridRowGap) + var(--#{$pf-global}--spacer--sm));
@@ -380,7 +385,15 @@ $pf-v5-c-toolbar--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2
380
385
  --#{$toolbar}--spacer: var(--#{$toolbar}__item--m-label--spacer);
381
386
 
382
387
  font-weight: var(--#{$toolbar}__item--m-label--FontWeight);
383
- transform: translateY(var(--#{$pf-global}--spacer--form-element));
388
+ transform: translateY(var(--#{$toolbar}__item--m-label--TranslateY));
389
+ }
390
+
391
+ // Form element
392
+ &.pf-m-form-element {
393
+ --#{$toolbar}--spacer: var(--#{$toolbar}__item--m-form-element--spacer);
394
+
395
+ font-weight: var(--#{$toolbar}__item--m-form-element--FontWeight);
396
+ transform: translateY(var(--#{$toolbar}__item--m-form-element--TranslateY));
384
397
  }
385
398
 
386
399
  // Total items
@@ -499,6 +499,100 @@ cssPrefix: pf-v5-c-accordion
499
499
 
500
500
  ```
501
501
 
502
+ ### Toggle icon at start
503
+
504
+ ```html isBeta
505
+ <div class="pf-v5-c-accordion pf-m-toggle-start">
506
+ <h3>
507
+ <button
508
+ class="pf-v5-c-accordion__toggle"
509
+ type="button"
510
+ aria-expanded="false"
511
+ >
512
+ <span class="pf-v5-c-accordion__toggle-icon">
513
+ <i class="fas fa-angle-right" aria-hidden="true"></i>
514
+ </span>
515
+
516
+ <span class="pf-v5-c-accordion__toggle-text">Item one</span>
517
+ </button>
518
+ </h3>
519
+ <div class="pf-v5-c-accordion__expandable-content" hidden>
520
+ <div class="pf-v5-c-accordion__expandable-content-body">This text is hidden</div>
521
+ </div>
522
+
523
+ <h3>
524
+ <button
525
+ class="pf-v5-c-accordion__toggle"
526
+ type="button"
527
+ aria-expanded="false"
528
+ >
529
+ <span class="pf-v5-c-accordion__toggle-icon">
530
+ <i class="fas fa-angle-right" aria-hidden="true"></i>
531
+ </span>
532
+
533
+ <span class="pf-v5-c-accordion__toggle-text">Item two</span>
534
+ </button>
535
+ </h3>
536
+ <div class="pf-v5-c-accordion__expandable-content" hidden>
537
+ <div class="pf-v5-c-accordion__expandable-content-body">This text is hidden</div>
538
+ </div>
539
+
540
+ <h3>
541
+ <button
542
+ class="pf-v5-c-accordion__toggle"
543
+ type="button"
544
+ aria-expanded="false"
545
+ >
546
+ <span class="pf-v5-c-accordion__toggle-icon">
547
+ <i class="fas fa-angle-right" aria-hidden="true"></i>
548
+ </span>
549
+
550
+ <span class="pf-v5-c-accordion__toggle-text">Item three</span>
551
+ </button>
552
+ </h3>
553
+ <div class="pf-v5-c-accordion__expandable-content" hidden>
554
+ <div class="pf-v5-c-accordion__expandable-content-body">This text is hidden</div>
555
+ </div>
556
+
557
+ <h3>
558
+ <button
559
+ class="pf-v5-c-accordion__toggle pf-m-expanded"
560
+ type="button"
561
+ aria-expanded="true"
562
+ >
563
+ <span class="pf-v5-c-accordion__toggle-icon">
564
+ <i class="fas fa-angle-right" aria-hidden="true"></i>
565
+ </span>
566
+
567
+ <span class="pf-v5-c-accordion__toggle-text">Item four</span>
568
+ </button>
569
+ </h3>
570
+ <div class="pf-v5-c-accordion__expandable-content pf-m-expanded">
571
+ <div
572
+ class="pf-v5-c-accordion__expandable-content-body"
573
+ >Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis molestie lorem lacinia dolor aliquet faucibus. Suspendisse gravida imperdiet accumsan. Aenean auctor lorem justo, vitae tincidunt enim blandit vel. Aenean quis tempus dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>
574
+ </div>
575
+
576
+ <h3>
577
+ <button
578
+ class="pf-v5-c-accordion__toggle"
579
+ type="button"
580
+ aria-expanded="false"
581
+ >
582
+ <span class="pf-v5-c-accordion__toggle-icon">
583
+ <i class="fas fa-angle-right" aria-hidden="true"></i>
584
+ </span>
585
+
586
+ <span class="pf-v5-c-accordion__toggle-text">Item five</span>
587
+ </button>
588
+ </h3>
589
+ <div class="pf-v5-c-accordion__expandable-content" hidden>
590
+ <div class="pf-v5-c-accordion__expandable-content-body">This text is hidden</div>
591
+ </div>
592
+ </div>
593
+
594
+ ```
595
+
502
596
  ## Documentation
503
597
 
504
598
  ### Overview
@@ -522,5 +616,6 @@ In these examples `.pf-v5-c-accordion` uses `<dl>`, `.pf-v5-c-accordion__toggle`
522
616
  | `.pf-v5-c-accordion__expandable-content-body` | `<div>` | Initiates expandable content body. **Required** |
523
617
  | `.pf-m-bordered` | `.pf-v5-c-accordion` | Modifies the accordion to add borders between items. |
524
618
  | `.pf-m-display-lg` | `.pf-v5-c-accordion` | Modifies the accordion for large display styling. This variation is for marketing/web use cases. |
619
+ | `.pf-m-toggle-start` | `.pf-v5-c-accordion` | Modifies accordion styling when accordion toggle icons are rendered at the start of the toggle, before the toggle text. |
525
620
  | `.pf-m-expanded` | `.pf-v5-c-accordion__toggle`, `.pf-v5-c-accordion__expandable-content` | Modifies the accordion button and expandable content for the expanded state. |
526
621
  | `.pf-m-fixed` | `.pf-v5-c-accordion__expandable-content` | Modifies the expandable content for the fixed state. |
@@ -0,0 +1,12 @@
1
+ .show-dark,
2
+ :where(.pf-v5-theme-dark) .show-light {
3
+ display: none;
4
+ }
5
+
6
+ :where(.pf-v5-theme-dark) .show-dark {
7
+ display: revert;
8
+ }
9
+
10
+ :where(.pf-v5-theme-dark) .show-dark .pf-m-picture {
11
+ display: inline-flex;
12
+ }
@@ -1,48 +1,91 @@
1
1
  ---
2
2
  id: Brand
3
3
  section: components
4
- ---## Examples
4
+ ---import './Brand.css'
5
+
6
+ ## Examples
5
7
 
6
8
  ### Basic
7
9
 
8
10
  ```html
9
- <img
10
- class="pf-v5-c-brand"
11
- src="/assets/images/pf_logo.svg"
12
- alt="PatternFly logo"
13
- />
11
+ <div class="show-light">
12
+ <img
13
+ class="pf-v5-c-brand"
14
+ src="/assets/images/pf_logo.svg"
15
+ alt="PatternFly logo"
16
+ />
17
+ </div>
18
+
19
+ <div class="show-dark">
20
+ <img
21
+ class="pf-v5-c-brand"
22
+ src="/assets/images/pf_logo_white.svg"
23
+ alt="PatternFly logo"
24
+ />
25
+ </div>
14
26
 
15
27
  ```
16
28
 
17
29
  ### Responsive
18
30
 
19
31
  ```html
20
- <picture
21
- class="pf-v5-c-brand pf-m-picture"
22
- style="--pf-v5-c-brand--Width: 40px; --pf-v5-c-brand--Width-on-sm: 60px; --pf-v5-c-brand--Width-on-md: 220px;"
23
- >
24
- <source
25
- media="(min-width: 1200px)"
26
- srcset="/assets/images/pf-c-brand__logo-on-xl.svg"
27
- />
28
- <source
29
- media="(min-width: 992px)"
30
- srcset="/assets/images/pf-c-brand__logo-on-lg.svg"
31
- />
32
- <source
33
- media="(min-width: 768px)"
34
- srcset="/assets/images/pf-c-brand__logo-on-md.svg"
35
- />
36
- <source
37
- media="(min-width: 576px)"
38
- srcset="/assets/images/pf-c-brand__logo-on-sm.svg"
39
- />
40
- <source srcset="/assets/images/pf-c-brand__logo.svg" />
41
- <img
42
- src="/assets/images/pf-c-brand__logo-base.jpg"
43
- alt="Fallback patternFly default logo"
44
- />
45
- </picture>
32
+ <div class="show-light">
33
+ <picture
34
+ class="pf-v5-c-brand pf-m-picture"
35
+ style="--pf-v5-c-brand--Width: 40px; --pf-v5-c-brand--Width-on-sm: 60px; --pf-v5-c-brand--Width-on-md: 220px;"
36
+ >
37
+ <source
38
+ media="(min-width: 1200px)"
39
+ srcset="/assets/images/pf-c-brand__logo-on-xl.svg"
40
+ />
41
+ <source
42
+ media="(min-width: 992px)"
43
+ srcset="/assets/images/pf-c-brand__logo-on-lg.svg"
44
+ />
45
+ <source
46
+ media="(min-width: 768px)"
47
+ srcset="/assets/images/pf-c-brand__logo-on-md.svg"
48
+ />
49
+ <source
50
+ media="(min-width: 576px)"
51
+ srcset="/assets/images/pf-c-brand__logo-on-sm.svg"
52
+ />
53
+ <source srcset="/assets/images/pf-c-brand__logo.svg" />
54
+ <img
55
+ src="/assets/images/pf_logo.svg"
56
+ alt="Fallback patternFly default logo"
57
+ />
58
+ </picture>
59
+ </div>
60
+
61
+ <div class="show-dark">
62
+ <picture
63
+ class="pf-v5-c-brand pf-m-picture"
64
+ style="--pf-v5-c-brand--Width: 40px; --pf-v5-c-brand--Width-on-sm: 60px; --pf-v5-c-brand--Width-on-md: 220px;"
65
+ >
66
+ <source
67
+ media="(min-width: 1200px)"
68
+ srcset="/assets/images/pf-c-brand__logo-on-xl-white.svg"
69
+ />
70
+ <source
71
+ media="(min-width: 992px)"
72
+ srcset="/assets/images/pf-c-brand__logo-on-lg-white.svg"
73
+ />
74
+ <source
75
+ media="(min-width: 768px)"
76
+ srcset="/assets/images/pf-c-brand__logo-on-md-white.svg"
77
+ />
78
+ <source
79
+ media="(min-width: 576px)"
80
+ srcset="/assets/images/pf-c-brand__logo-on-sm-white.svg"
81
+ />
82
+ <source srcset="/assets/images/pf-c-brand__logo-white.svg" />
83
+ <img
84
+ src="/assets/images/pf_logo-white.svg"
85
+ alt="Fallback patternFly default logo"
86
+ />
87
+ </picture>
88
+ </div>
46
89
 
47
90
  ```
48
91
 
@@ -25,7 +25,61 @@ cssPrefix: pf-v5-c-card
25
25
  <div class="pf-v5-c-card" id="card-action-example-1">
26
26
  <div class="pf-v5-c-card__header">
27
27
  <div class="pf-v5-c-card__header-main">
28
- <img src="/assets/images/pf_logo.svg" width="300px" alt="Logo" />
28
+ <svg
29
+ version="1.1"
30
+ xmlns="http://www.w3.org/2000/svg"
31
+ viewBox="0 0 706.3 132.5"
32
+ fill="currentColor"
33
+ width="300px"
34
+ >
35
+ <g>
36
+ <path
37
+ d="M197.2,83.9V48.6h15.2c2.2,0,4.1,0.3,5.6,1c1.5,0.7,2.8,1.5,3.7,2.6c1,1.1,1.6,2.3,2.1,3.6
38
+ c0.4,1.3,0.6,2.7,0.6,4c0,0.9-0.1,1.7-0.3,2.6c-0.2,0.9-0.5,1.7-0.9,2.6c-0.4,0.8-0.9,1.6-1.6,2.3c-0.6,0.7-1.4,1.4-2.3,1.9
39
+ c-0.9,0.5-1.9,1-3.1,1.3c-1.2,0.3-2.5,0.5-3.9,0.5h-8.3v13H197.2z M212.7,64.4c0.9,0,1.6-0.1,2.2-0.4c0.6-0.3,1.1-0.6,1.4-1.1
40
+ c0.4-0.4,0.6-0.9,0.8-1.5c0.2-0.6,0.3-1.1,0.3-1.7c0-0.5-0.1-1-0.2-1.6c-0.1-0.5-0.4-1-0.7-1.5c-0.4-0.5-0.8-0.8-1.4-1.1
41
+ c-0.6-0.3-1.4-0.4-2.3-0.4h-8.6v9.4H212.7z"
42
+ />
43
+ <path
44
+ d="M271.6,83.9l-2.7-7.3h-13.6l-2.7,7.3h-7.3l13.5-35.4h6.7l13.5,35.4H271.6z M263.2,61.2
45
+ c-0.2-0.4-0.4-0.9-0.6-1.5c-0.2-0.6-0.4-1.1-0.5-1.7c-0.1,0.5-0.3,1.1-0.5,1.7c-0.2,0.6-0.4,1.1-0.6,1.5l-3.5,9.2h9.2L263.2,61.2z"
46
+ />
47
+ <path d="M317.3,55.2v28.8h-6.8V55.2h-10.1v-6.6h27v6.6H317.3z" />
48
+ <path d="M370.2,55.2v28.8h-6.8V55.2h-10.1v-6.6h27v6.6H370.2z" />
49
+ <path
50
+ d="M408.5,83.9V48.6h24.1v6.5h-17.3v7.4h10.2v6.5h-10.2v8.5h18.4v6.5H408.5z"
51
+ />
52
+ <path
53
+ d="M462.4,83.9V48.6h16.4c2.2,0,4.1,0.3,5.6,0.9c1.5,0.6,2.7,1.4,3.6,2.5c0.9,1,1.6,2.2,2,3.5
54
+ c0.4,1.3,0.6,2.7,0.6,4.2c0,1-0.1,2-0.4,3c-0.3,1-0.7,2-1.3,2.9c-0.6,0.9-1.3,1.8-2.1,2.5c-0.9,0.7-1.8,1.3-3,1.7l6.9,14.1H483
55
+ l-6.6-13.2h-7.1v13.2H462.4z M478.9,64.3c0.9,0,1.6-0.1,2.2-0.4c0.6-0.3,1.1-0.6,1.4-1c0.4-0.4,0.6-0.9,0.8-1.5
56
+ c0.2-0.6,0.2-1.1,0.2-1.7c0-0.6-0.1-1.1-0.2-1.7c-0.1-0.6-0.4-1-0.7-1.5c-0.3-0.4-0.8-0.8-1.4-1c-0.6-0.3-1.4-0.4-2.3-0.4h-9.7v9.2
57
+ H478.9z"
58
+ />
59
+ <path
60
+ d="M541.9,83.9l-14-20.6c-0.2-0.3-0.5-0.8-0.8-1.3c-0.3-0.5-0.5-1-0.7-1.4c0.1,0.4,0.1,0.8,0.1,1.3
61
+ c0,0.5,0,1,0,1.3v20.6h-6.8V48.6h6.4l13.7,20.4c0.2,0.3,0.5,0.7,0.7,1.2c0.3,0.5,0.5,1,0.7,1.4c0-0.5-0.1-1-0.1-1.4
62
+ c0-0.5,0-0.9,0-1.2V48.6h6.8v35.4H541.9z"
63
+ />
64
+ <path
65
+ d="M578.4,83.9V48.6h23.7v6.5h-16.9v7.4H596v6.5h-10.7v15H578.4z"
66
+ />
67
+ <path d="M629.8,83.9V48.6h6.8v28.8h17.1v6.6H629.8z" />
68
+ <path
69
+ d="M686.4,83.9V70.2l-13.1-21.6h7.7l8.7,14.5l8.7-14.5h7.7l-13.1,21.6v13.8H686.4z"
70
+ />
71
+ </g>
72
+ <g>
73
+ <path
74
+ d="M49,103l-21.2,4.9L0,68.4L70,0l70,68.4l-27.8,39.4L91,103l-21,29.5L49,103z M70,128.7l18.6-26.2l-7.2-1.7
75
+ l-11,16.2l-11.9-16.2l-7.2,1.7L70,128.7z M70.4,113.1l9.2-13.5L70,6.7l-9.5,92.9L70.4,113.1z M28.8,105.4l18.8-4.3L33.8,81.7
76
+ l4.1-9.3L25.2,55L58,14.9L2.9,68.7L28.8,105.4z M111.2,105.4l16.3-23.1l9.6-13.6L82,14.9L114.9,55l-12.8,17.4l4.1,9.3L92.4,101
77
+ L111.2,105.4z M90.1,100.5l13.6-19.1l-3-6.9L82.7,98.8L90.1,100.5z M50,100.5l7.3-1.7L39.4,74.5l-3,6.9L50,100.5z M81.9,96.2
78
+ l17.6-24.1L72.9,11.6L81.9,96.2z M58.1,96.2l9-84.6L40.5,72.1L58.1,96.2z M39,70L66.1,8.5L28,55.1L39,70z M101.1,70l11-15L74,8.5
79
+ L101.1,70z"
80
+ />
81
+ </g>
82
+ </svg>
29
83
  </div>
30
84
  <div class="pf-v5-c-card__actions">
31
85
  <div class="pf-v5-c-dropdown">
@@ -293,7 +347,61 @@ cssPrefix: pf-v5-c-card
293
347
  <div class="pf-v5-c-card" id="card-image-head-example">
294
348
  <div class="pf-v5-c-card__header">
295
349
  <div class="pf-v5-c-card__header-main">
296
- <img src="/assets/images/pf_logo.svg" width="300px" alt="Logo" />
350
+ <svg
351
+ version="1.1"
352
+ xmlns="http://www.w3.org/2000/svg"
353
+ viewBox="0 0 706.3 132.5"
354
+ fill="currentColor"
355
+ width="300px"
356
+ >
357
+ <g>
358
+ <path
359
+ d="M197.2,83.9V48.6h15.2c2.2,0,4.1,0.3,5.6,1c1.5,0.7,2.8,1.5,3.7,2.6c1,1.1,1.6,2.3,2.1,3.6
360
+ c0.4,1.3,0.6,2.7,0.6,4c0,0.9-0.1,1.7-0.3,2.6c-0.2,0.9-0.5,1.7-0.9,2.6c-0.4,0.8-0.9,1.6-1.6,2.3c-0.6,0.7-1.4,1.4-2.3,1.9
361
+ c-0.9,0.5-1.9,1-3.1,1.3c-1.2,0.3-2.5,0.5-3.9,0.5h-8.3v13H197.2z M212.7,64.4c0.9,0,1.6-0.1,2.2-0.4c0.6-0.3,1.1-0.6,1.4-1.1
362
+ c0.4-0.4,0.6-0.9,0.8-1.5c0.2-0.6,0.3-1.1,0.3-1.7c0-0.5-0.1-1-0.2-1.6c-0.1-0.5-0.4-1-0.7-1.5c-0.4-0.5-0.8-0.8-1.4-1.1
363
+ c-0.6-0.3-1.4-0.4-2.3-0.4h-8.6v9.4H212.7z"
364
+ />
365
+ <path
366
+ d="M271.6,83.9l-2.7-7.3h-13.6l-2.7,7.3h-7.3l13.5-35.4h6.7l13.5,35.4H271.6z M263.2,61.2
367
+ c-0.2-0.4-0.4-0.9-0.6-1.5c-0.2-0.6-0.4-1.1-0.5-1.7c-0.1,0.5-0.3,1.1-0.5,1.7c-0.2,0.6-0.4,1.1-0.6,1.5l-3.5,9.2h9.2L263.2,61.2z"
368
+ />
369
+ <path d="M317.3,55.2v28.8h-6.8V55.2h-10.1v-6.6h27v6.6H317.3z" />
370
+ <path d="M370.2,55.2v28.8h-6.8V55.2h-10.1v-6.6h27v6.6H370.2z" />
371
+ <path
372
+ d="M408.5,83.9V48.6h24.1v6.5h-17.3v7.4h10.2v6.5h-10.2v8.5h18.4v6.5H408.5z"
373
+ />
374
+ <path
375
+ d="M462.4,83.9V48.6h16.4c2.2,0,4.1,0.3,5.6,0.9c1.5,0.6,2.7,1.4,3.6,2.5c0.9,1,1.6,2.2,2,3.5
376
+ c0.4,1.3,0.6,2.7,0.6,4.2c0,1-0.1,2-0.4,3c-0.3,1-0.7,2-1.3,2.9c-0.6,0.9-1.3,1.8-2.1,2.5c-0.9,0.7-1.8,1.3-3,1.7l6.9,14.1H483
377
+ l-6.6-13.2h-7.1v13.2H462.4z M478.9,64.3c0.9,0,1.6-0.1,2.2-0.4c0.6-0.3,1.1-0.6,1.4-1c0.4-0.4,0.6-0.9,0.8-1.5
378
+ c0.2-0.6,0.2-1.1,0.2-1.7c0-0.6-0.1-1.1-0.2-1.7c-0.1-0.6-0.4-1-0.7-1.5c-0.3-0.4-0.8-0.8-1.4-1c-0.6-0.3-1.4-0.4-2.3-0.4h-9.7v9.2
379
+ H478.9z"
380
+ />
381
+ <path
382
+ d="M541.9,83.9l-14-20.6c-0.2-0.3-0.5-0.8-0.8-1.3c-0.3-0.5-0.5-1-0.7-1.4c0.1,0.4,0.1,0.8,0.1,1.3
383
+ c0,0.5,0,1,0,1.3v20.6h-6.8V48.6h6.4l13.7,20.4c0.2,0.3,0.5,0.7,0.7,1.2c0.3,0.5,0.5,1,0.7,1.4c0-0.5-0.1-1-0.1-1.4
384
+ c0-0.5,0-0.9,0-1.2V48.6h6.8v35.4H541.9z"
385
+ />
386
+ <path
387
+ d="M578.4,83.9V48.6h23.7v6.5h-16.9v7.4H596v6.5h-10.7v15H578.4z"
388
+ />
389
+ <path d="M629.8,83.9V48.6h6.8v28.8h17.1v6.6H629.8z" />
390
+ <path
391
+ d="M686.4,83.9V70.2l-13.1-21.6h7.7l8.7,14.5l8.7-14.5h7.7l-13.1,21.6v13.8H686.4z"
392
+ />
393
+ </g>
394
+ <g>
395
+ <path
396
+ d="M49,103l-21.2,4.9L0,68.4L70,0l70,68.4l-27.8,39.4L91,103l-21,29.5L49,103z M70,128.7l18.6-26.2l-7.2-1.7
397
+ l-11,16.2l-11.9-16.2l-7.2,1.7L70,128.7z M70.4,113.1l9.2-13.5L70,6.7l-9.5,92.9L70.4,113.1z M28.8,105.4l18.8-4.3L33.8,81.7
398
+ l4.1-9.3L25.2,55L58,14.9L2.9,68.7L28.8,105.4z M111.2,105.4l16.3-23.1l9.6-13.6L82,14.9L114.9,55l-12.8,17.4l4.1,9.3L92.4,101
399
+ L111.2,105.4z M90.1,100.5l13.6-19.1l-3-6.9L82.7,98.8L90.1,100.5z M50,100.5l7.3-1.7L39.4,74.5l-3,6.9L50,100.5z M81.9,96.2
400
+ l17.6-24.1L72.9,11.6L81.9,96.2z M58.1,96.2l9-84.6L40.5,72.1L58.1,96.2z M39,70L66.1,8.5L28,55.1L39,70z M101.1,70l11-15L74,8.5
401
+ L101.1,70z"
402
+ />
403
+ </g>
404
+ </svg>
297
405
  </div>
298
406
  </div>
299
407
  <div class="pf-v5-c-card__title">