@patternfly/patternfly 4.206.3 → 4.207.0

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 (59) hide show
  1. package/components/Button/button.css +20 -0
  2. package/components/Button/button.scss +23 -0
  3. package/components/Button/themes/dark/button.scss +1 -0
  4. package/components/Check/check.css +9 -0
  5. package/components/Check/check.scss +11 -0
  6. package/components/ContextSelector/context-selector.css +6 -0
  7. package/components/ContextSelector/context-selector.scss +7 -1
  8. package/components/Dropdown/dropdown.css +6 -0
  9. package/components/Dropdown/dropdown.scss +7 -0
  10. package/components/ExpandableSection/expandable-section.css +18 -1
  11. package/components/ExpandableSection/expandable-section.scss +25 -1
  12. package/components/InputGroup/input-group.css +3 -0
  13. package/components/InputGroup/input-group.scss +4 -0
  14. package/components/Masthead/masthead.css +6 -3
  15. package/components/Masthead/masthead.scss +4 -0
  16. package/components/Menu/menu.css +0 -4
  17. package/components/Menu/menu.scss +0 -4
  18. package/components/Select/select.css +6 -0
  19. package/components/Select/select.scss +7 -0
  20. package/components/Wizard/themes/dark/wizard.scss +2 -2
  21. package/components/Wizard/wizard.css +2 -2
  22. package/docs/components/Avatar/examples/Avatar.md +10 -10
  23. package/docs/components/Button/examples/Button.md +19 -0
  24. package/docs/components/Card/examples/Card.css +3 -3
  25. package/docs/components/Check/examples/Check.md +33 -12
  26. package/docs/components/CodeBlock/examples/CodeBlock.md +8 -6
  27. package/docs/components/Dropdown/examples/Dropdown.md +2 -1
  28. package/docs/components/ExpandableSection/examples/ExpandableSection.md +51 -13
  29. package/docs/components/InputGroup/examples/InputGroup.md +1 -0
  30. package/docs/components/Masthead/examples/masthead.md +5 -6
  31. package/docs/components/MenuToggle/examples/MenuToggle.md +6 -6
  32. package/docs/components/TextInputGroup/examples/TextInputGroup.md +38 -0
  33. package/docs/demos/AboutModal/examples/AboutModal.md +1 -1
  34. package/docs/demos/Alert/examples/Alert.md +3 -3
  35. package/docs/demos/BackToTop/examples/BackToTop.md +1 -1
  36. package/docs/demos/Banner/examples/Banner.md +2 -2
  37. package/docs/demos/CardView/examples/CardView.md +1 -1
  38. package/docs/demos/ContextSelector/examples/ContextSelector.md +3 -3
  39. package/docs/demos/Dashboard/examples/Dashboard.md +1 -1
  40. package/docs/demos/DataList/examples/DataList.md +4 -4
  41. package/docs/demos/DescriptionList/examples/DescriptionList.md +3 -3
  42. package/docs/demos/Drawer/examples/Drawer.md +5 -5
  43. package/docs/demos/JumpLinks/examples/JumpLinks.md +6 -6
  44. package/docs/demos/Masthead/examples/Masthead.md +388 -2
  45. package/docs/demos/Modal/examples/Modal.md +6 -6
  46. package/docs/demos/Nav/examples/Nav.md +8 -8
  47. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +5 -5
  48. package/docs/demos/Page/examples/Page.md +8 -8
  49. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +7 -7
  50. package/docs/demos/Skeleton/examples/Skeleton.md +1 -1
  51. package/docs/demos/Table/examples/Table.md +14 -14
  52. package/docs/demos/Tabs/examples/Tabs.md +8 -8
  53. package/docs/demos/Toolbar/examples/Toolbar.md +1 -1
  54. package/docs/demos/Wizard/examples/Wizard.md +8 -8
  55. package/package.json +1 -1
  56. package/patternfly-no-reset.css +76 -10
  57. package/patternfly.css +76 -10
  58. package/patternfly.min.css +1 -1
  59. package/patternfly.min.css.map +1 -1
@@ -156,6 +156,11 @@
156
156
  --pf-c-button--m-in-progress--m-plain--Color: var(--pf-global--primary-color--100);
157
157
  --pf-c-button--m-in-progress--m-plain__progress--Left: 50%;
158
158
  --pf-c-button--m-in-progress--m-plain__progress--TranslateX: -50%;
159
+ --pf-c-button__count--MarginLeft: var(--pf-global--spacer--sm);
160
+ --pf-c-button--disabled__c-badge--Color: var(--pf-global--Color--dark-100);
161
+ --pf-c-button--disabled__c-badge--BackgroundColor: var(--pf-global--BackgroundColor--200);
162
+ --pf-c-button--m-primary__c-badge--BorderColor: var(--pf-global--BorderColor--300);
163
+ --pf-c-button--m-primary__c-badge--BorderWidth: var(--pf-global--BorderWidth--sm);
159
164
  position: relative;
160
165
  display: inline-block;
161
166
  padding: var(--pf-c-button--PaddingTop) var(--pf-c-button--PaddingRight) var(--pf-c-button--PaddingBottom) var(--pf-c-button--PaddingLeft);
@@ -220,6 +225,9 @@
220
225
  --pf-c-button--m-primary--Color: var(--pf-c-button--m-primary--active--Color);
221
226
  --pf-c-button--m-primary--BackgroundColor: var(--pf-c-button--m-primary--active--BackgroundColor);
222
227
  }
228
+ .pf-c-button.pf-m-primary .pf-c-badge.pf-m-unread {
229
+ border: var(--pf-c-button--m-primary__c-badge--BorderWidth) solid var(--pf-c-button--m-primary__c-badge--BorderColor);
230
+ }
223
231
  .pf-c-button.pf-m-secondary {
224
232
  --pf-c-button--after--BorderColor: var(--pf-c-button--m-secondary--after--BorderColor);
225
233
  color: var(--pf-c-button--m-secondary--Color);
@@ -431,6 +439,11 @@
431
439
  .pf-c-button:disabled::after, .pf-c-button.pf-m-disabled::after, .pf-c-button.pf-m-aria-disabled::after {
432
440
  border-color: var(--pf-c-button--disabled--after--BorderColor);
433
441
  }
442
+ .pf-c-button:disabled .pf-c-badge, .pf-c-button.pf-m-disabled .pf-c-badge, .pf-c-button.pf-m-aria-disabled .pf-c-badge {
443
+ --pf-c-badge--m-unread--Color: var(--pf-c-button--disabled__c-badge--Color);
444
+ --pf-c-badge--m-unread--BackgroundColor: var(--pf-c-button--disabled__c-badge--BackgroundColor);
445
+ --pf-c-button--m-primary__c-badge--BorderWidth: 0;
446
+ }
434
447
  .pf-c-button.pf-m-aria-disabled {
435
448
  --pf-c-button--after--BorderWidth: 0;
436
449
  --pf-c-button--m-link--m-inline--hover--TextDecoration: none;
@@ -472,6 +485,12 @@
472
485
  --pf-c-spinner--Color: currentcolor;
473
486
  }
474
487
 
488
+ .pf-c-button__count {
489
+ display: inline-flex;
490
+ align-items: center;
491
+ margin-left: var(--pf-c-button__count--MarginLeft);
492
+ }
493
+
475
494
  .pf-m-overpass-font .pf-c-button {
476
495
  --pf-c-button--FontWeight: var(--pf-global--FontWeight--semi-bold);
477
496
  }
@@ -508,6 +527,7 @@
508
527
  --pf-c-button--m-control--focus--after--BorderBottomColor: var(--pf-global--primary-color--100);
509
528
  --pf-c-button--m-control--m-expanded--after--BorderBottomColor: var(--pf-global--primary-color--100);
510
529
  --pf-c-button--m-control--disabled--BackgroundColor: var(--pf-global--disabled-color--200);
530
+ --pf-c-button--m-primary__c-badge--BorderColor: var(--pf-global--Color--100);
511
531
  }
512
532
  :where(.pf-theme-dark) .pf-c-button.pf-m-control:disabled::after {
513
533
  border: 0;
@@ -192,6 +192,13 @@
192
192
  --pf-c-button--m-in-progress--m-plain__progress--Left: 50%;
193
193
  --pf-c-button--m-in-progress--m-plain__progress--TranslateX: -50%;
194
194
 
195
+ // Count
196
+ --pf-c-button__count--MarginLeft: var(--pf-global--spacer--sm);
197
+ --pf-c-button--disabled__c-badge--Color: var(--pf-global--Color--dark-100);
198
+ --pf-c-button--disabled__c-badge--BackgroundColor: var(--pf-global--BackgroundColor--200);
199
+ --pf-c-button--m-primary__c-badge--BorderColor: var(--pf-global--BorderColor--300);
200
+ --pf-c-button--m-primary__c-badge--BorderWidth: var(--pf-global--BorderWidth--sm); // used only for primary, unread, not disabled
201
+
195
202
  position: relative;
196
203
  display: inline-block;
197
204
  padding: var(--pf-c-button--PaddingTop) var(--pf-c-button--PaddingRight) var(--pf-c-button--PaddingBottom) var(--pf-c-button--PaddingLeft);
@@ -274,6 +281,10 @@
274
281
  --pf-c-button--m-primary--Color: var(--pf-c-button--m-primary--active--Color);
275
282
  --pf-c-button--m-primary--BackgroundColor: var(--pf-c-button--m-primary--active--BackgroundColor);
276
283
  }
284
+
285
+ .pf-c-badge.pf-m-unread {
286
+ border: var(--pf-c-button--m-primary__c-badge--BorderWidth) solid var(--pf-c-button--m-primary__c-badge--BorderColor);
287
+ }
277
288
  }
278
289
 
279
290
  // Secondary buttons
@@ -564,6 +575,12 @@
564
575
 
565
576
  color: var(--pf-c-button--disabled--Color);
566
577
  background-color: var(--pf-c-button--disabled--BackgroundColor);
578
+
579
+ .pf-c-badge {
580
+ --pf-c-badge--m-unread--Color: var(--pf-c-button--disabled__c-badge--Color);
581
+ --pf-c-badge--m-unread--BackgroundColor: var(--pf-c-button--disabled__c-badge--BackgroundColor);
582
+ --pf-c-button--m-primary__c-badge--BorderWidth: 0;
583
+ }
567
584
  }
568
585
 
569
586
  &.pf-m-aria-disabled {
@@ -620,6 +637,12 @@
620
637
  }
621
638
  }
622
639
 
640
+ .pf-c-button__count {
641
+ display: inline-flex;
642
+ align-items: center;
643
+ margin-left: var(--pf-c-button__count--MarginLeft);
644
+ }
645
+
623
646
  // RedHat Font overrides
624
647
  @include pf-m-overpass-font {
625
648
  .pf-c-button {
@@ -33,6 +33,7 @@
33
33
  --pf-c-button--m-control--focus--after--BorderBottomColor: var(--pf-global--primary-color--100);
34
34
  --pf-c-button--m-control--m-expanded--after--BorderBottomColor: var(--pf-global--primary-color--100);
35
35
  --pf-c-button--m-control--disabled--BackgroundColor: var(--pf-global--disabled-color--200);
36
+ --pf-c-button--m-primary__c-badge--BorderColor: var(--pf-global--Color--100);
36
37
 
37
38
  &.pf-m-control:disabled {
38
39
  &::after {
@@ -10,6 +10,9 @@
10
10
  --pf-c-check__description--FontSize: var(--pf-global--FontSize--sm);
11
11
  --pf-c-check__description--Color: var(--pf-global--Color--200);
12
12
  --pf-c-check__body--MarginTop: var(--pf-global--spacer--sm);
13
+ --pf-c-check__label-required--MarginLeft: var(--pf-global--spacer--xs);
14
+ --pf-c-check__label-required--FontSize: var(--pf-global--FontSize--sm);
15
+ --pf-c-check__label-required--Color: var(--pf-global--danger-color--100);
13
16
  display: grid;
14
17
  grid-template-columns: auto 1fr;
15
18
  grid-gap: var(--pf-c-check--GridGap);
@@ -57,4 +60,10 @@ label.pf-c-check, .pf-c-check__label,
57
60
  .pf-c-check__input.pf-m-disabled {
58
61
  --pf-c-check__label--Color: var(--pf-c-check__label--disabled--Color);
59
62
  cursor: not-allowed;
63
+ }
64
+
65
+ .pf-c-check__label-required {
66
+ margin-left: var(--pf-c-check__label-required--MarginLeft);
67
+ font-size: var(--pf-c-check__label-required--FontSize);
68
+ color: var(--pf-c-check__label-required--Color);
60
69
  }
@@ -11,6 +11,11 @@
11
11
  --pf-c-check__description--Color: var(--pf-global--Color--200);
12
12
  --pf-c-check__body--MarginTop: var(--pf-global--spacer--sm);
13
13
 
14
+ // Required checkbox
15
+ --pf-c-check__label-required--MarginLeft: var(--pf-global--spacer--xs);
16
+ --pf-c-check__label-required--FontSize: var(--pf-global--FontSize--sm);
17
+ --pf-c-check__label-required--Color: var(--pf-global--danger-color--100);
18
+
14
19
  display: grid;
15
20
  grid-template-columns: auto 1fr;
16
21
  grid-gap: var(--pf-c-check--GridGap);
@@ -64,3 +69,9 @@
64
69
  cursor: not-allowed;
65
70
  }
66
71
  }
72
+
73
+ .pf-c-check__label-required {
74
+ margin-left: var(--pf-c-check__label-required--MarginLeft);
75
+ font-size: var(--pf-c-check__label-required--FontSize);
76
+ color: var(--pf-c-check__label-required--Color);
77
+ }
@@ -248,6 +248,12 @@
248
248
  background-clip: padding-box;
249
249
  box-shadow: var(--pf-c-context-selector__menu--BoxShadow);
250
250
  }
251
+ .pf-c-context-selector__menu.pf-m-static {
252
+ position: static;
253
+ top: auto;
254
+ z-index: auto;
255
+ min-width: min-content;
256
+ }
251
257
 
252
258
  .pf-c-context-selector__menu-search {
253
259
  position: relative;
@@ -65,7 +65,6 @@
65
65
  --pf-c-context-selector__menu-list--PaddingTop: var(--pf-c-context-selector__menu--PaddingTop); // reference spacer directly at breaking change
66
66
  --pf-c-context-selector__menu-list--PaddingBottom: var(--pf-global--spacer--sm);
67
67
 
68
-
69
68
  // Menu item
70
69
  --pf-c-context-selector__menu-list-item--Color: var(--pf-global--Color--dark-100);
71
70
  --pf-c-context-selector__menu-list-item--PaddingTop: var(--pf-global--spacer--sm);
@@ -299,6 +298,13 @@
299
298
  background-color: var(--pf-c-context-selector__menu--BackgroundColor);
300
299
  background-clip: padding-box;
301
300
  box-shadow: var(--pf-c-context-selector__menu--BoxShadow);
301
+
302
+ &.pf-m-static {
303
+ position: static;
304
+ top: auto;
305
+ z-index: auto;
306
+ min-width: min-content;
307
+ }
302
308
  }
303
309
 
304
310
  .pf-c-context-selector__menu-search {
@@ -469,6 +469,12 @@
469
469
  background-clip: padding-box;
470
470
  box-shadow: var(--pf-c-dropdown__menu--BoxShadow);
471
471
  }
472
+ .pf-c-dropdown__menu.pf-m-static {
473
+ position: static;
474
+ top: auto;
475
+ z-index: auto;
476
+ min-width: min-content;
477
+ }
472
478
 
473
479
  .pf-c-dropdown .pf-c-menu,
474
480
  .pf-c-dropdown__menu {
@@ -631,6 +631,13 @@ $pf-c-dropdown--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "
631
631
  background: var(--pf-c-dropdown__menu--BackgroundColor);
632
632
  background-clip: padding-box;
633
633
  box-shadow: var(--pf-c-dropdown__menu--BoxShadow);
634
+
635
+ &.pf-m-static {
636
+ position: static;
637
+ top: auto;
638
+ z-index: auto;
639
+ min-width: min-content;
640
+ }
634
641
  }
635
642
 
636
643
  .pf-c-dropdown .pf-c-menu,
@@ -3,6 +3,7 @@
3
3
  --pf-c-expandable-section__toggle--PaddingRight: var(--pf-global--spacer--md);
4
4
  --pf-c-expandable-section__toggle--PaddingBottom: var(--pf-global--spacer--form-element);
5
5
  --pf-c-expandable-section__toggle--PaddingLeft: 0;
6
+ --pf-c-expandable-section__toggle--MarginTop: 0;
6
7
  --pf-c-expandable-section__toggle--Color: var(--pf-global--link--Color);
7
8
  --pf-c-expandable-section__toggle--hover--Color: var(--pf-global--link--Color--hover);
8
9
  --pf-c-expandable-section__toggle--active--Color: var(--pf-global--link--Color--hover);
@@ -32,6 +33,8 @@
32
33
  --pf-c-expandable-section--m-display-lg--after--Width: var(--pf-global--BorderWidth--lg);
33
34
  --pf-c-expandable-section--m-display-lg--m-expanded--after--BackgroundColor: var(--pf-global--primary-color--100);
34
35
  --pf-c-expandable-section--m-indented__content--PaddingLeft: calc(var(--pf-c-expandable-section__toggle-text--MarginLeft) + var(--pf-c-expandable-section__toggle-icon--MinWidth));
36
+ --pf-c-expandable-section--m-truncate__content--LineClamp: 3;
37
+ --pf-c-expandable-section--m-truncate__toggle--MarginTop: var(--pf-global--spacer--xs);
35
38
  }
36
39
  .pf-c-expandable-section.pf-m-expanded {
37
40
  --pf-c-expandable-section__toggle--Color: var(--pf-c-expandable-section__toggle--m-expanded--Color);
@@ -39,7 +42,7 @@
39
42
  --pf-c-expandable-section__toggle-icon--m-expand-top--Rotate: var(--pf-c-expandable-section--m-expanded__toggle-icon--m-expand-top--Rotate);
40
43
  --pf-c-expandable-section--m-display-lg--after--BackgroundColor: var(--pf-c-expandable-section--m-display-lg--m-expanded--after--BackgroundColor);
41
44
  }
42
- .pf-c-expandable-section.pf-m-detached {
45
+ .pf-c-expandable-section.pf-m-detached, .pf-c-expandable-section.pf-m-truncate {
43
46
  --pf-c-expandable-section__content--MarginTop: 0;
44
47
  }
45
48
  .pf-c-expandable-section.pf-m-limit-width {
@@ -69,10 +72,24 @@
69
72
  .pf-c-expandable-section.pf-m-indented {
70
73
  --pf-c-expandable-section__content--PaddingLeft: var(--pf-c-expandable-section--m-indented__content--PaddingLeft);
71
74
  }
75
+ .pf-c-expandable-section.pf-m-truncate {
76
+ --pf-c-expandable-section__toggle--MarginTop: var(--pf-c-expandable-section--m-truncate__toggle--MarginTop);
77
+ --pf-c-expandable-section__toggle--PaddingTop: 0;
78
+ --pf-c-expandable-section__toggle--PaddingRight: 0;
79
+ --pf-c-expandable-section__toggle--PaddingBottom: 0;
80
+ --pf-c-expandable-section__toggle-text--MarginLeft: 0;
81
+ }
82
+ .pf-c-expandable-section.pf-m-truncate:not(.pf-m-expanded) .pf-c-expandable-section__content {
83
+ display: -webkit-box;
84
+ -webkit-box-orient: vertical;
85
+ -webkit-line-clamp: var(--pf-c-expandable-section--m-truncate__content--LineClamp);
86
+ overflow: hidden;
87
+ }
72
88
 
73
89
  .pf-c-expandable-section__toggle {
74
90
  display: flex;
75
91
  padding: var(--pf-c-expandable-section__toggle--PaddingTop) var(--pf-c-expandable-section__toggle--PaddingRight) var(--pf-c-expandable-section__toggle--PaddingBottom) var(--pf-c-expandable-section__toggle--PaddingLeft);
92
+ margin-top: var(--pf-c-expandable-section__toggle--MarginTop);
76
93
  color: var(--pf-c-expandable-section__toggle--Color);
77
94
  border: none;
78
95
  }
@@ -4,6 +4,7 @@
4
4
  --pf-c-expandable-section__toggle--PaddingRight: var(--pf-global--spacer--md);
5
5
  --pf-c-expandable-section__toggle--PaddingBottom: var(--pf-global--spacer--form-element);
6
6
  --pf-c-expandable-section__toggle--PaddingLeft: 0;
7
+ --pf-c-expandable-section__toggle--MarginTop: 0;
7
8
  --pf-c-expandable-section__toggle--Color: var(--pf-global--link--Color);
8
9
  --pf-c-expandable-section__toggle--hover--Color: var(--pf-global--link--Color--hover);
9
10
  --pf-c-expandable-section__toggle--active--Color: var(--pf-global--link--Color--hover);
@@ -46,6 +47,10 @@
46
47
  // Indented
47
48
  --pf-c-expandable-section--m-indented__content--PaddingLeft: calc(var(--pf-c-expandable-section__toggle-text--MarginLeft) + var(--pf-c-expandable-section__toggle-icon--MinWidth));
48
49
 
50
+ // Truncate
51
+ --pf-c-expandable-section--m-truncate__content--LineClamp: 3;
52
+ --pf-c-expandable-section--m-truncate__toggle--MarginTop: var(--pf-global--spacer--xs);
53
+
49
54
 
50
55
  &.pf-m-expanded {
51
56
  --pf-c-expandable-section__toggle--Color: var(--pf-c-expandable-section__toggle--m-expanded--Color);
@@ -54,7 +59,8 @@
54
59
  --pf-c-expandable-section--m-display-lg--after--BackgroundColor: var(--pf-c-expandable-section--m-display-lg--m-expanded--after--BackgroundColor);
55
60
  }
56
61
 
57
- &.pf-m-detached {
62
+ &.pf-m-detached,
63
+ &.pf-m-truncate {
58
64
  --pf-c-expandable-section__content--MarginTop: 0;
59
65
  }
60
66
 
@@ -89,11 +95,29 @@
89
95
  &.pf-m-indented {
90
96
  --pf-c-expandable-section__content--PaddingLeft: var(--pf-c-expandable-section--m-indented__content--PaddingLeft);
91
97
  }
98
+
99
+ &.pf-m-truncate {
100
+ --pf-c-expandable-section__toggle--MarginTop: var(--pf-c-expandable-section--m-truncate__toggle--MarginTop);
101
+ --pf-c-expandable-section__toggle--PaddingTop: 0;
102
+ --pf-c-expandable-section__toggle--PaddingRight: 0;
103
+ --pf-c-expandable-section__toggle--PaddingBottom: 0;
104
+ --pf-c-expandable-section__toggle-text--MarginLeft: 0;
105
+
106
+ &:not(.pf-m-expanded) .pf-c-expandable-section__content {
107
+ // stylelint-disable
108
+ display: -webkit-box;
109
+ -webkit-box-orient: vertical;
110
+ -webkit-line-clamp: var(--pf-c-expandable-section--m-truncate__content--LineClamp);
111
+ // stylelint-enable
112
+ overflow: hidden;
113
+ }
114
+ }
92
115
  }
93
116
 
94
117
  .pf-c-expandable-section__toggle {
95
118
  display: flex;
96
119
  padding: var(--pf-c-expandable-section__toggle--PaddingTop) var(--pf-c-expandable-section__toggle--PaddingRight) var(--pf-c-expandable-section__toggle--PaddingBottom) var(--pf-c-expandable-section__toggle--PaddingLeft);
120
+ margin-top: var(--pf-c-expandable-section__toggle--MarginTop);
97
121
  color: var(--pf-c-expandable-section__toggle--Color);
98
122
  border: none;
99
123
 
@@ -29,6 +29,9 @@
29
29
  width: 100%;
30
30
  background-color: var(--pf-c-input-group--BackgroundColor);
31
31
  }
32
+ .pf-c-input-group.pf-m-plain {
33
+ --pf-c-input-group--BackgroundColor: transparent;
34
+ }
32
35
  .pf-c-input-group > * + * {
33
36
  margin-left: -1px;
34
37
  }
@@ -27,6 +27,10 @@
27
27
  width: 100%;
28
28
  background-color: var(--pf-c-input-group--BackgroundColor);
29
29
 
30
+ &.pf-m-plain {
31
+ --pf-c-input-group--BackgroundColor: transparent; // make default at breaking change
32
+ }
33
+
30
34
  // stylelint-disable
31
35
  > * + * {
32
36
  margin-left: -1px;
@@ -8,7 +8,7 @@
8
8
  --pf-global--BackgroundColor--100: var(--pf-global--BackgroundColor--light-100);
9
9
  }
10
10
 
11
- .pf-c-masthead {
11
+ .pf-c-masthead .pf-c-button.pf-m-plain, .pf-c-masthead {
12
12
  --pf-global--Color--100: var(--pf-global--Color--light-100);
13
13
  --pf-global--Color--200: var(--pf-global--Color--light-200);
14
14
  --pf-global--BorderColor--100: var(--pf-global--BorderColor--light-100);
@@ -17,10 +17,10 @@
17
17
  --pf-global--link--Color--hover: var(--pf-global--link--Color--light);
18
18
  --pf-global--BackgroundColor--100: var(--pf-global--BackgroundColor--dark-100);
19
19
  }
20
- .pf-c-masthead .pf-c-card {
20
+ .pf-c-masthead .pf-c-button.pf-m-plain .pf-c-card, .pf-c-masthead .pf-c-card {
21
21
  --pf-c-card--BackgroundColor: var(--pf-global--BackgroundColor--dark-transparent-200);
22
22
  }
23
- .pf-c-masthead .pf-c-button {
23
+ .pf-c-masthead .pf-c-button.pf-m-plain .pf-c-button, .pf-c-masthead .pf-c-button {
24
24
  --pf-c-button--m-primary--Color: var(--pf-global--primary-color--dark-100);
25
25
  --pf-c-button--m-primary--hover--Color: var(--pf-global--primary-color--dark-100);
26
26
  --pf-c-button--m-primary--focus--Color: var(--pf-global--primary-color--dark-100);
@@ -227,6 +227,9 @@
227
227
  .pf-c-masthead .pf-c-nav {
228
228
  align-self: stretch;
229
229
  }
230
+ .pf-c-masthead .pf-c-button.pf-m-plain {
231
+ color: var(--pf-global--Color--200);
232
+ }
230
233
 
231
234
  .pf-c-masthead__main {
232
235
  position: relative;
@@ -243,6 +243,10 @@ $pf-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
243
243
  .pf-c-nav {
244
244
  align-self: stretch;
245
245
  }
246
+
247
+ .pf-c-button.pf-m-plain {
248
+ @include pf-t-dark(--pf-global--Color--200); // for all plain buttons, especially inside other components (.pf-c-input-group), for dark mode
249
+ }
246
250
  }
247
251
 
248
252
  // Main
@@ -192,8 +192,6 @@
192
192
  --pf-c-menu__footer--BoxShadow: none;
193
193
  --pf-c-menu__footer--after--BorderTopWidth: var(--pf-global--BorderWidth--sm);
194
194
  --pf-c-menu__footer--after--BorderTopColor: var(--pf-global--BorderColor--100);
195
- --pf-c-menu__footer--after--BorderBottomWidth: 0;
196
- --pf-c-menu__footer--after--BorderBottomColor: var(--pf-global--BorderColor--100);
197
195
  --pf-c-menu--m-scrollable__footer--BoxShadow: var(--pf-global--BoxShadow--sm-top);
198
196
  --pf-c-menu--m-scrollable__footer--after--BorderTopWidth: 0;
199
197
  --pf-c-menu--m-scrollable__footer--after--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
@@ -325,7 +323,6 @@
325
323
  --pf-c-menu__content--MaxHeight: var(--pf-c-menu--m-scrollable__content--MaxHeight);
326
324
  --pf-c-menu__footer--BoxShadow: var(--pf-c-menu--m-scrollable__footer--BoxShadow);
327
325
  --pf-c-menu__footer--after--BorderTopWidth: var(--pf-c-menu--m-scrollable__footer--after--BorderTopWidth);
328
- --pf-c-menu__footer--after--BorderBottomWidth: var(--pf-c-menu--m-scrollable__footer--after--BorderBottomWidth);
329
326
  }
330
327
  .pf-c-menu.pf-m-scrollable .pf-c-menu__content {
331
328
  overflow-y: auto;
@@ -627,7 +624,6 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
627
624
  pointer-events: none;
628
625
  content: "";
629
626
  border-top: var(--pf-c-menu__footer--after--BorderTopWidth) solid var(--pf-c-menu__footer--after--BorderTopColor);
630
- border-bottom: var(--pf-c-menu__footer--after--BorderBottomWidth) solid var(--pf-c-menu__footer--after--BorderBottomColor);
631
627
  }
632
628
 
633
629
  :where(.pf-theme-dark) .pf-c-menu {
@@ -182,8 +182,6 @@
182
182
  --pf-c-menu__footer--BoxShadow: none;
183
183
  --pf-c-menu__footer--after--BorderTopWidth: var(--pf-global--BorderWidth--sm);
184
184
  --pf-c-menu__footer--after--BorderTopColor: var(--pf-global--BorderColor--100);
185
- --pf-c-menu__footer--after--BorderBottomWidth: 0;
186
- --pf-c-menu__footer--after--BorderBottomColor: var(--pf-global--BorderColor--100);
187
185
  --pf-c-menu--m-scrollable__footer--BoxShadow: var(--pf-global--BoxShadow--sm-top);
188
186
  --pf-c-menu--m-scrollable__footer--after--BorderTopWidth: 0;
189
187
  --pf-c-menu--m-scrollable__footer--after--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
@@ -334,7 +332,6 @@
334
332
  --pf-c-menu__content--MaxHeight: var(--pf-c-menu--m-scrollable__content--MaxHeight);
335
333
  --pf-c-menu__footer--BoxShadow: var(--pf-c-menu--m-scrollable__footer--BoxShadow);
336
334
  --pf-c-menu__footer--after--BorderTopWidth: var(--pf-c-menu--m-scrollable__footer--after--BorderTopWidth);
337
- --pf-c-menu__footer--after--BorderBottomWidth: var(--pf-c-menu--m-scrollable__footer--after--BorderBottomWidth);
338
335
 
339
336
  .pf-c-menu__content {
340
337
  overflow-y: auto;
@@ -738,7 +735,6 @@
738
735
  pointer-events: none;
739
736
  content: "";
740
737
  border-top: var(--pf-c-menu__footer--after--BorderTopWidth) solid var(--pf-c-menu__footer--after--BorderTopColor);
741
- border-bottom: var(--pf-c-menu__footer--after--BorderBottomWidth) solid var(--pf-c-menu__footer--after--BorderBottomColor);
742
738
  }
743
739
  }
744
740
 
@@ -389,6 +389,12 @@
389
389
  top: 0;
390
390
  transform: translateY(var(--pf-c-select__menu--m-top--TranslateY));
391
391
  }
392
+ .pf-c-select__menu.pf-m-static {
393
+ position: static;
394
+ top: auto;
395
+ z-index: auto;
396
+ min-width: min-content;
397
+ }
392
398
 
393
399
  .pf-c-select__menu-fieldset {
394
400
  border: 0;
@@ -484,6 +484,13 @@
484
484
  top: 0;
485
485
  transform: translateY(var(--pf-c-select__menu--m-top--TranslateY));
486
486
  }
487
+
488
+ &.pf-m-static {
489
+ position: static;
490
+ top: auto;
491
+ z-index: auto;
492
+ min-width: min-content;
493
+ }
487
494
  }
488
495
 
489
496
  .pf-c-select__menu-fieldset {
@@ -2,10 +2,10 @@
2
2
 
3
3
  @mixin pf-theme-dark-wizard() {
4
4
  .pf-c-wizard {
5
+ --pf-c-wizard__header--BackgroundColor: var(--pf-global--palette--black-1000);
6
+ --pf-c-wizard__nav-link--before--BackgroundColor: var(--pf-global--palette--black-500);
5
7
  --pf-c-wizard__nav-link--m-disabled--Color: var(--pf-global--disabled-color--300);
6
8
  --pf-c-wizard__nav-link--m-disabled--before--Color: var(--pf-global--disabled-color--300);
7
- --pf-c-wizard__nav--BackgroundColor: var(--pf-global--BackgroundColor--300);
8
- --pf-c-wizard__outer-wrap--BackgroundColor: var(--pf-global--BackgroundColor--300);
9
9
  }
10
10
 
11
11
  .pf-c-wizard__header {
@@ -540,10 +540,10 @@
540
540
  }
541
541
 
542
542
  :where(.pf-theme-dark) .pf-c-wizard {
543
+ --pf-c-wizard__header--BackgroundColor: var(--pf-global--palette--black-1000);
544
+ --pf-c-wizard__nav-link--before--BackgroundColor: var(--pf-global--palette--black-500);
543
545
  --pf-c-wizard__nav-link--m-disabled--Color: var(--pf-global--disabled-color--300);
544
546
  --pf-c-wizard__nav-link--m-disabled--before--Color: var(--pf-global--disabled-color--300);
545
- --pf-c-wizard__nav--BackgroundColor: var(--pf-global--BackgroundColor--300);
546
- --pf-c-wizard__outer-wrap--BackgroundColor: var(--pf-global--BackgroundColor--300);
547
547
  }
548
548
  :where(.pf-theme-dark) .pf-c-wizard__header {
549
549
  color: var(--pf-global--Color--100);
@@ -11,8 +11,8 @@ cssPrefix: pf-c-avatar
11
11
  ```html
12
12
  <img
13
13
  class="pf-c-avatar"
14
- src="/assets/images/img_avatar-light.svg"
15
14
  alt="Avatar image"
15
+ src="/assets/images/img_avatar-light.svg"
16
16
  />
17
17
 
18
18
  ```
@@ -22,8 +22,8 @@ cssPrefix: pf-c-avatar
22
22
  ```html
23
23
  <img
24
24
  class="pf-c-avatar pf-m-light"
25
- src="/assets/images/img_avatar-light.svg"
26
25
  alt="Avatar image light"
26
+ src="/assets/images/img_avatar-light.svg"
27
27
  />
28
28
 
29
29
  ```
@@ -33,8 +33,8 @@ cssPrefix: pf-c-avatar
33
33
  ```html
34
34
  <img
35
35
  class="pf-c-avatar pf-m-dark"
36
- src="/assets/images/img_avatar-dark.svg"
37
36
  alt="Avatar image dark"
37
+ src="/assets/images/img_avatar-dark.svg"
38
38
  />
39
39
 
40
40
  ```
@@ -44,8 +44,8 @@ cssPrefix: pf-c-avatar
44
44
  ```html
45
45
  <img
46
46
  class="pf-c-avatar pf-m-sm"
47
- src="/assets/images/img_avatar-light.svg"
48
47
  alt="Avatar image small"
48
+ src="/assets/images/img_avatar-light.svg"
49
49
  />
50
50
 
51
51
  ```
@@ -55,8 +55,8 @@ cssPrefix: pf-c-avatar
55
55
  ```html
56
56
  <img
57
57
  class="pf-c-avatar pf-m-md"
58
- src="/assets/images/img_avatar-light.svg"
59
58
  alt="Avatar image medium"
59
+ src="/assets/images/img_avatar-light.svg"
60
60
  />
61
61
 
62
62
  ```
@@ -66,8 +66,8 @@ cssPrefix: pf-c-avatar
66
66
  ```html
67
67
  <img
68
68
  class="pf-c-avatar pf-m-lg"
69
- src="/assets/images/img_avatar-light.svg"
70
69
  alt="Avatar image large"
70
+ src="/assets/images/img_avatar-light.svg"
71
71
  />
72
72
 
73
73
  ```
@@ -77,8 +77,8 @@ cssPrefix: pf-c-avatar
77
77
  ```html
78
78
  <img
79
79
  class="pf-c-avatar pf-m-xl"
80
- src="/assets/images/img_avatar-light.svg"
81
80
  alt="Avatar image extra large"
81
+ src="/assets/images/img_avatar-light.svg"
82
82
  />
83
83
 
84
84
  ```
@@ -91,9 +91,9 @@ The avatar component provides a default SVG icon. If an image is used it should
91
91
 
92
92
  ### Accessibility
93
93
 
94
- | Attribute | Applied to | Outcome |
95
- | --------- | -------------- | ---------------------------------------------------------------------------------------------------------- |
96
- | `alt` | `.pf-c-avatar` | The alt attribute specifies an alternate text for an image, if the image cannot be displayed. **Required** |
94
+ | Attribute | Applied to | Outcome |
95
+ | --------- | -------------- | ----------------------------------------------------------------------------------------- |
96
+ | `alt` | `.pf-c-avatar` | The alt attribute describes the appearance and function of the avatar image. **Required** |
97
97
 
98
98
  ### Usage
99
99
 
@@ -429,6 +429,24 @@ Sed hendrerit nisi in cursus maximus. Ut malesuada nisi turpis, in condimentum v
429
429
 
430
430
  ```
431
431
 
432
+ ### Link button with a count
433
+
434
+ ```html isBeta
435
+ <button class="pf-c-button pf-m-link" type="button" aria-label="View 7 issues">
436
+ View issues
437
+ <span class="pf-c-button__count">
438
+ <span class="pf-c-badge pf-m-unread">7</span>
439
+ </span>
440
+ </button>
441
+ <button class="pf-c-button pf-m-link" type="button" aria-label="View 7 issues">
442
+ View issues
443
+ <span class="pf-c-button__count">
444
+ <span class="pf-c-badge pf-m-read">7</span>
445
+ </span>
446
+ </button>
447
+
448
+ ```
449
+
432
450
  ## Documentation
433
451
 
434
452
  ### Overview
@@ -460,6 +478,7 @@ Semantic buttons and links are important for usability as well as accessibility.
460
478
  | `.pf-c-button` | `<button>` | Initiates a button. Always use it with a modifier class. **Required** |
461
479
  | `.pf-c-button__icon` | `<span>` | Initiates a button icon. |
462
480
  | `.pf-c-button__progress` | `<span>` | Initiates a button progress container. |
481
+ | `.pf-c-button__count` | `<span>` | Initiates a button count container. **Note:** Count should only be used on link buttons. |
463
482
  | `.pf-m-primary` | `.pf-c-button` | Modifies for primary styles. |
464
483
  | `.pf-m-secondary` | `.pf-c-button` | Modifies for secondary styles. |
465
484
  | `.pf-m-tertiary` | `.pf-c-button` | Modifies for tertiary styles. |
@@ -1,7 +1,7 @@
1
- #ws-core-c-card-full-height-card {
1
+ #ws-core-c-card-full-height-card .ws-preview-html {
2
2
  height: 300px;
3
3
  }
4
4
 
5
- #ws-core-c-card-full-height-card .ws-preview-html {
6
- height: 100%;
5
+ #card-body-fill-example {
6
+ min-height: 30em;
7
7
  }