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

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 (75) hide show
  1. package/UPGRADE-GUIDE.md +1 -1
  2. package/assets/icons/iconUnicodes.json +129 -128
  3. package/assets/pficon/pf-v5-pficon.woff2 +0 -0
  4. package/assets/pficon/pficon.scss +402 -267
  5. package/base/_icons.scss +1 -1
  6. package/base/patternfly-icons.css +136 -132
  7. package/base/patternfly-pf-icons.css +136 -132
  8. package/base/patternfly-pf-icons.scss +1 -1
  9. package/base/patternfly-variables.css +2 -2
  10. package/components/AboutModalBox/about-modal-box.css +1 -20
  11. package/components/AboutModalBox/about-modal-box.scss +3 -24
  12. package/components/BackgroundImage/background-image.css +1 -2
  13. package/components/BackgroundImage/background-image.scss +1 -2
  14. package/components/FormControl/form-control.css +0 -7
  15. package/components/FormControl/form-control.scss +7 -7
  16. package/components/Icon/icon.css +25 -24
  17. package/components/Icon/icon.scss +30 -31
  18. package/components/NotificationBadge/notification-badge.css +2 -2
  19. package/components/NotificationBadge/notification-badge.scss +2 -2
  20. package/components/ProgressStepper/progress-stepper.css +1 -1
  21. package/components/ProgressStepper/progress-stepper.scss +1 -1
  22. package/components/_all.scss +1 -1
  23. package/docs/components/AboutModalBox/examples/AboutModalBox.md +7 -9
  24. package/docs/components/Avatar/examples/Avatar.css +1 -1
  25. package/docs/components/BackgroundImage/examples/BackgroundImage.md +7 -11
  26. package/docs/components/CodeEditor/examples/CodeEditor.md +1 -1
  27. package/docs/components/Form/examples/Form.md +11 -11
  28. package/docs/components/Label/examples/Label.md +1220 -1
  29. package/docs/components/Login/examples/Login.md +20 -5
  30. package/docs/components/ModalBox/examples/ModalBox.md +1 -1
  31. package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +3 -3
  32. package/docs/components/NotificationBadge/examples/NotificationBadge.css +1 -1
  33. package/docs/components/NotificationBadge/examples/NotificationBadge.md +18 -18
  34. package/docs/components/ProgressStepper/examples/ProgressStepper.md +15 -15
  35. package/docs/components/Table/examples/Table.md +2 -2
  36. package/docs/components/Tabs/examples/Tabs.md +102 -102
  37. package/docs/demos/AboutModal/examples/AboutModal.md +6 -3
  38. package/docs/demos/Alert/examples/Alert.md +6 -6
  39. package/docs/demos/BackToTop/examples/BackToTop.md +2 -2
  40. package/docs/demos/Banner/examples/Banner.md +4 -4
  41. package/docs/demos/CardView/examples/CardView.md +2 -2
  42. package/docs/demos/ContextSelector/examples/ContextSelector.md +6 -6
  43. package/docs/demos/Dashboard/examples/Dashboard.md +7 -7
  44. package/docs/demos/DataList/examples/DataList.md +8 -8
  45. package/docs/demos/DescriptionList/examples/DescriptionList.md +6 -6
  46. package/docs/demos/Drawer/examples/Drawer.md +10 -10
  47. package/docs/demos/Form/examples/BasicForms.md +10 -10
  48. package/docs/demos/JumpLinks/examples/JumpLinks.md +12 -12
  49. package/docs/demos/Masthead/examples/Masthead.md +4 -4
  50. package/docs/demos/Modal/examples/Modal.md +15 -15
  51. package/docs/demos/Nav/examples/Nav.md +16 -16
  52. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +15 -15
  53. package/docs/demos/Page/examples/Page.md +18 -18
  54. package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +1 -1
  55. package/docs/demos/PasswordStrength/examples/PasswordStrength.md +4 -4
  56. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +14 -14
  57. package/docs/demos/Skeleton/examples/Skeleton.md +2 -2
  58. package/docs/demos/Table/examples/Table.md +32 -32
  59. package/docs/demos/Tabs/examples/Tabs.md +12 -12
  60. package/docs/demos/Toolbar/examples/Toolbar.md +4 -4
  61. package/docs/demos/Wizard/examples/Wizard.md +18 -18
  62. package/icons/{pf-icons.mjs → pficons.mjs} +1 -0
  63. package/package.json +1 -1
  64. package/patternfly-base-no-globals.css +138 -134
  65. package/patternfly-base.css +138 -134
  66. package/patternfly-no-globals.css +168 -190
  67. package/patternfly.css +168 -190
  68. package/patternfly.min.css +1 -1
  69. package/patternfly.min.css.map +1 -1
  70. package/sass-utilities/scss-variables.scss +2 -5
  71. package/assets/pficon/pficon.woff2 +0 -0
  72. package/docs/components/LabelGroup/examples/LabelGroup.md +0 -1222
  73. /package/base/{_pf-icons.scss → _pficons.scss} +0 -0
  74. /package/components/{LabelGroup → Label}/label-group.css +0 -0
  75. /package/components/{LabelGroup → Label}/label-group.scss +0 -0
@@ -198,8 +198,8 @@
198
198
  --pf-v5-global--BorderRadius--lg: 30em;
199
199
  --pf-v5-global--icon--Color--light: #6a6e73;
200
200
  --pf-v5-global--icon--Color--dark: #151515;
201
- --pf-v5-global--icon--FontSize--sm: 0.625rem;
202
- --pf-v5-global--icon--FontSize--md: 1.125rem;
201
+ --pf-v5-global--icon--FontSize--sm: 0.75rem;
202
+ --pf-v5-global--icon--FontSize--md: 1rem;
203
203
  --pf-v5-global--icon--FontSize--lg: 1.5rem;
204
204
  --pf-v5-global--icon--FontSize--xl: 3.375rem;
205
205
  --pf-v5-global--FontFamily--sans-serif: "RedHatText", helvetica, arial, sans-serif;
@@ -10,7 +10,6 @@
10
10
 
11
11
  .pf-v5-c-about-modal-box {
12
12
  --pf-v5-c-about-modal-box--BackgroundColor: var(--pf-v5-global--palette--black-1000);
13
- --pf-v5-c-about-modal-box--BackgroundImage: url("../../assets/images/pfbg-icon.svg");
14
13
  --pf-v5-c-about-modal-box--BackgroundPosition: bottom right;
15
14
  --pf-v5-c-about-modal-box--BackgroundSize--min-width: 200px;
16
15
  --pf-v5-c-about-modal-box--BackgroundSize--width: 60%;
@@ -41,9 +40,6 @@
41
40
  --pf-v5-c-about-modal-box__close--c-button--Height: calc(var(--pf-v5-c-about-modal-box__close--c-button--FontSize) * 2);
42
41
  --pf-v5-c-about-modal-box__close--c-button--BackgroundColor: var(--pf-v5-global--palette--black-1000);
43
42
  --pf-v5-c-about-modal-box__close--c-button--hover--BackgroundColor: rgba(3, 3, 3, 0.4);
44
- --pf-v5-c-about-modal-box__hero--sm--BackgroundImage: url("../../assets/images/pfbg_992@2x.jpg");
45
- --pf-v5-c-about-modal-box__hero--sm--BackgroundPosition: top left;
46
- --pf-v5-c-about-modal-box__hero--sm--BackgroundSize: cover;
47
43
  --pf-v5-c-about-modal-box__brand-image--Height: 2.5rem;
48
44
  --pf-v5-c-about-modal-box__header--PaddingRight: var(--pf-v5-global--spacer--xl);
49
45
  --pf-v5-c-about-modal-box__header--PaddingBottom: var(--pf-v5-global--spacer--sm);
@@ -71,7 +67,7 @@
71
67
  overflow-x: hidden;
72
68
  overflow-y: auto;
73
69
  background-color: var(--pf-v5-c-about-modal-box--BackgroundColor);
74
- background-image: var(--pf-v5-c-about-modal-box--BackgroundImage);
70
+ background-image: var(--pf-v5-c-about-modal-box--BackgroundImage, none);
75
71
  background-repeat: no-repeat;
76
72
  background-position: var(--pf-v5-c-about-modal-box--BackgroundPosition);
77
73
  background-size: var(--pf-v5-c-about-modal-box--BackgroundSize);
@@ -208,21 +204,6 @@
208
204
  --pf-v5-c-about-modal-box__close--c-button--BackgroundColor: var(--pf-v5-c-about-modal-box__close--c-button--hover--BackgroundColor);
209
205
  }
210
206
 
211
- .pf-v5-c-about-modal-box__hero {
212
- display: none;
213
- }
214
- @media only screen and (min-width: 576px) {
215
- .pf-v5-c-about-modal-box__hero {
216
- display: block;
217
- grid-area: hero;
218
- background-image: var(--pf-v5-c-about-modal-box__hero--sm--BackgroundImage);
219
- background-repeat: no-repeat;
220
- background-attachment: fixed;
221
- background-position: var(--pf-v5-c-about-modal-box__hero--sm--BackgroundPosition);
222
- background-size: var(--pf-v5-c-about-modal-box__hero--sm--BackgroundSize);
223
- }
224
- }
225
-
226
207
  :where(.pf-v5-theme-dark) .pf-v5-c-about-modal-box {
227
208
  --pf-v5-global--Color--100: #e0e0e0;
228
209
  --pf-v5-global--Color--200: #aaabac;
@@ -3,7 +3,6 @@
3
3
  .#{$about-modal-box} {
4
4
  // Component variables
5
5
  --#{$about-modal-box}--BackgroundColor: var(--#{$pf-global}--palette--black-1000); // Modal uses a non-standard background color
6
- --#{$about-modal-box}--BackgroundImage: url("#{$pf-v5-global--image-path}/pfbg-icon.svg");
7
6
  --#{$about-modal-box}--BackgroundPosition: bottom right;
8
7
  --#{$about-modal-box}--BackgroundSize--min-width: 200px;
9
8
  --#{$about-modal-box}--BackgroundSize--width: 60%;
@@ -55,11 +54,6 @@
55
54
  --#{$about-modal-box}__close--c-button--BackgroundColor: var(--#{$pf-global}--palette--black-1000); // Close button uses a non-standard background color
56
55
  --#{$about-modal-box}__close--c-button--hover--BackgroundColor: #{rgba($pf-v5-color-black-1000, .4)};
57
56
 
58
- // hero image
59
- --#{$about-modal-box}__hero--sm--BackgroundImage: url("#{$pf-v5-global--image-path}/pfbg_992@2x.jpg");
60
- --#{$about-modal-box}__hero--sm--BackgroundPosition: top left;
61
- --#{$about-modal-box}__hero--sm--BackgroundSize: cover;
62
-
63
57
  // Brand img
64
58
  --#{$about-modal-box}__brand-image--Height: #{pf-size-prem(40px)};
65
59
 
@@ -116,7 +110,7 @@
116
110
  overflow-x: hidden;
117
111
  overflow-y: auto;
118
112
  background-color: var(--#{$about-modal-box}--BackgroundColor); // Because this component is always dark, set the background color
119
- background-image: var(--#{$about-modal-box}--BackgroundImage);
113
+ background-image: var(--#{$about-modal-box}--BackgroundImage, none);
120
114
  background-repeat: no-repeat;
121
115
  background-position: var(--#{$about-modal-box}--BackgroundPosition);
122
116
  background-size: var(--#{$about-modal-box}--BackgroundSize);
@@ -198,11 +192,11 @@
198
192
 
199
193
  @media only screen and (min-width: $pf-v5-global--breakpoint--sm) {
200
194
  grid-area: 1 / 2;
201
- justify-content: center; // center the close over the narrow hero image
195
+ justify-content: center;
202
196
  }
203
197
 
204
198
  @media only screen and (min-width: $pf-v5-global--breakpoint--lg) {
205
- justify-content: flex-end; // align flex end the close over the narrow hero image
199
+ justify-content: flex-end;
206
200
  }
207
201
 
208
202
  // Close button
@@ -225,21 +219,6 @@
225
219
  }
226
220
  }
227
221
 
228
- // Hero
229
- .#{$about-modal-box}__hero {
230
- display: none; // Don't display the hero at the narrowest breakpoint
231
-
232
- @media only screen and (min-width: $pf-v5-global--breakpoint--sm) {
233
- display: block;
234
- grid-area: hero;
235
- background-image: var(--#{$about-modal-box}__hero--sm--BackgroundImage);
236
- background-repeat: no-repeat;
237
- background-attachment: fixed;
238
- background-position: var(--#{$about-modal-box}__hero--sm--BackgroundPosition);
239
- background-size: var(--#{$about-modal-box}__hero--sm--BackgroundSize);
240
- }
241
- }
242
-
243
222
  // stylelint-disable no-invalid-position-at-import-rule
244
223
  @import "themes/dark/about-modal-box";
245
224
 
@@ -1,6 +1,5 @@
1
1
  .pf-v5-c-background-image {
2
2
  --pf-v5-c-background-image--BackgroundColor: var(--pf-v5-global--BackgroundColor--dark-100);
3
- --pf-v5-c-background-image--BackgroundImage: url("../../assets/images/pfbg-icon.svg");
4
3
  --pf-v5-c-background-image--BackgroundPosition: bottom right;
5
4
  --pf-v5-c-background-image--BackgroundSize--min-width: 200px;
6
5
  --pf-v5-c-background-image--BackgroundSize--width: 60%;
@@ -13,7 +12,7 @@
13
12
  width: 100%;
14
13
  height: 100%;
15
14
  background-color: var(--pf-v5-c-background-image--BackgroundColor);
16
- background-image: var(--pf-v5-c-background-image--BackgroundImage);
15
+ background-image: var(--pf-v5-c-background-image--BackgroundImage, none);
17
16
  background-repeat: no-repeat;
18
17
  background-position: var(--pf-v5-c-background-image--BackgroundPosition);
19
18
  background-size: var(--pf-v5-c-background-image--BackgroundSize);
@@ -2,7 +2,6 @@
2
2
 
3
3
  .#{$background-image} {
4
4
  --#{$background-image}--BackgroundColor: var(--#{$pf-global}--BackgroundColor--dark-100);
5
- --#{$background-image}--BackgroundImage: url("#{$pf-v5-global--image-path}/pfbg-icon.svg");
6
5
  --#{$background-image}--BackgroundPosition: bottom right;
7
6
  --#{$background-image}--BackgroundSize--min-width: 200px;
8
7
  --#{$background-image}--BackgroundSize--width: 60%;
@@ -16,7 +15,7 @@
16
15
  width: 100%;
17
16
  height: 100%;
18
17
  background-color: var(--#{$background-image}--BackgroundColor);
19
- background-image: var(--#{$background-image}--BackgroundImage);
18
+ background-image: var(--#{$background-image}--BackgroundImage, none);
20
19
  background-repeat: no-repeat;
21
20
  background-position: var(--#{$background-image}--BackgroundPosition);
22
21
  background-size: var(--#{$background-image}--BackgroundSize);
@@ -122,13 +122,6 @@
122
122
  --pf-v5-c-form-control--textarea--success--BackgroundPositionY: var(--pf-v5-c-form-control--PaddingLeft);
123
123
  --pf-v5-c-form-control--textarea--m-warning--BackgroundPositionY: var(--pf-v5-c-form-control--PaddingLeft);
124
124
  --pf-v5-c-form-control--textarea--invalid--BackgroundPositionY: var(--pf-v5-c-form-control--PaddingLeft);
125
- --pf-v5-c-form-control--m-icon-sprite--success--BackgroundUrl: url("../../assets/images/status-icon-sprite.svg#success");
126
- --pf-v5-c-form-control--m-icon-sprite--m-warning--BackgroundUrl: url("../../assets/images/status-icon-sprite.svg#warning");
127
- --pf-v5-c-form-control--m-icon-sprite--invalid--BackgroundUrl: url("../../assets/images/status-icon-sprite.svg#invalid");
128
- --pf-v5-c-form-control--m-icon-sprite__select--BackgroundUrl: url("../../assets/images/status-icon-sprite.svg#select");
129
- --pf-v5-c-form-control--m-icon-sprite--m-search--BackgroundUrl: url("../../assets/images/status-icon-sprite.svg#search");
130
- --pf-v5-c-form-control--m-icon-sprite--m-calendar--BackgroundUrl: url("../../assets/images/status-icon-sprite.svg#calendar");
131
- --pf-v5-c-form-control--m-icon-sprite--m-clock--BackgroundUrl: url("../../assets/images/status-icon-sprite.svg#clock");
132
125
  --pf-v5-c-form-control--m-icon-sprite__select--BackgroundSize: var(--pf-v5-c-form-control--FontSize);
133
126
  --pf-v5-c-form-control--m-icon-sprite__select--BackgroundPositionX: calc(100% - var(--pf-v5-global--spacer--md) + 7px);
134
127
  --pf-v5-c-form-control--m-icon-sprite__select--success--BackgroundPosition: calc(100% - var(--pf-v5-global--spacer--md) + 1px - var(--pf-v5-global--spacer--lg));
@@ -191,13 +191,13 @@ $pf-v5-c-form-control--m-clock--Coordinates: "M256 8C119 8 8 119 8 256s111 248 2
191
191
  --#{$form-control}--textarea--invalid--BackgroundPositionY: var(--#{$form-control}--PaddingLeft); // update to use --#{$form-control}--inset--base at breaking change
192
192
 
193
193
  // Icon sprite
194
- --#{$form-control}--m-icon-sprite--success--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#success");
195
- --#{$form-control}--m-icon-sprite--m-warning--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#warning");
196
- --#{$form-control}--m-icon-sprite--invalid--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#invalid");
197
- --#{$form-control}--m-icon-sprite__select--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#select");
198
- --#{$form-control}--m-icon-sprite--m-search--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#search");
199
- --#{$form-control}--m-icon-sprite--m-calendar--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#calendar");
200
- --#{$form-control}--m-icon-sprite--m-clock--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#clock");
194
+ // --#{$form-control}--m-icon-sprite--success--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#success");
195
+ // --#{$form-control}--m-icon-sprite--m-warning--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#warning");
196
+ // --#{$form-control}--m-icon-sprite--invalid--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#invalid");
197
+ // --#{$form-control}--m-icon-sprite__select--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#select");
198
+ // --#{$form-control}--m-icon-sprite--m-search--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#search");
199
+ // --#{$form-control}--m-icon-sprite--m-calendar--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#calendar");
200
+ // --#{$form-control}--m-icon-sprite--m-clock--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#clock");
201
201
  --#{$form-control}--m-icon-sprite__select--BackgroundSize: var(--#{$form-control}--FontSize);
202
202
  --#{$form-control}--m-icon-sprite__select--BackgroundPositionX: calc(100% - var(--#{$pf-global}--spacer--md) + 7px);
203
203
  --#{$form-control}--m-icon-sprite__select--success--BackgroundPosition: calc(100% - var(--#{$pf-global}--spacer--md) + 1px - var(--#{$pf-global}--spacer--lg));
@@ -1,29 +1,30 @@
1
1
  .pf-v5-c-icon {
2
- --pf-v5-c-icon--Width: var(--pf-v5-global--icon--FontSize--md);
3
- --pf-v5-c-icon--Height: var(--pf-v5-global--icon--FontSize--md);
4
- --pf-v5-c-icon--m-inline--Width: 1em;
5
- --pf-v5-c-icon--m-inline--Height: 1em;
2
+ --pf-v5-c-icon--Width: 1em;
3
+ --pf-v5-c-icon--Height: 1em;
6
4
  --pf-v5-c-icon--m-sm--Width: var(--pf-v5-global--icon--FontSize--sm);
7
- --pf-v5-c-icon--m-md--Width: var(--pf-v5-global--icon--FontSize--md);
8
- --pf-v5-c-icon--m-lg--Width: var(--pf-v5-global--icon--FontSize--lg);
9
- --pf-v5-c-icon--m-xl--Width: var(--pf-v5-global--icon--FontSize--xl);
10
5
  --pf-v5-c-icon--m-sm--Height: var(--pf-v5-global--icon--FontSize--sm);
6
+ --pf-v5-c-icon--m-md--Width: var(--pf-v5-global--icon--FontSize--md);
11
7
  --pf-v5-c-icon--m-md--Height: var(--pf-v5-global--icon--FontSize--md);
8
+ --pf-v5-c-icon--m-lg--Width: var(--pf-v5-global--icon--FontSize--lg);
12
9
  --pf-v5-c-icon--m-lg--Height: var(--pf-v5-global--icon--FontSize--lg);
10
+ --pf-v5-c-icon--m-xl--Width: var(--pf-v5-global--icon--FontSize--xl);
13
11
  --pf-v5-c-icon--m-xl--Height: var(--pf-v5-global--icon--FontSize--xl);
14
- --pf-v5-c-icon__content--Color: var(--pf-v5-global--icon--Color--dark);
12
+ --pf-v5-c-icon--m-inline--Width: 1em;
13
+ --pf-v5-c-icon--m-inline--Height: 1em;
14
+ --pf-v5-c-icon__content--svg--VerticalAlign: -.125em;
15
+ --pf-v5-c-icon__content--Color: initial;
15
16
  --pf-v5-c-icon__content--m-danger--Color: var(--pf-v5-global--danger-color--100);
16
17
  --pf-v5-c-icon__content--m-warning--Color: var(--pf-v5-global--warning-color--100);
17
18
  --pf-v5-c-icon__content--m-success--Color: var(--pf-v5-global--success-color--100);
18
19
  --pf-v5-c-icon__content--m-info--Color: var(--pf-v5-global--info-color--100);
19
20
  --pf-v5-c-icon__content--m-custom--Color: var(--pf-v5-global--custom-color--100);
20
- --pf-v5-c-icon__content--FontSize: var(--pf-v5-global--icon--FontSize--md);
21
+ --pf-v5-c-icon--m-inline__content--Color: initial;
22
+ --pf-v5-c-icon__content--FontSize: 1em;
23
+ --pf-v5-c-icon--m-sm__content--FontSize: var(--pf-v5-global--icon--FontSize--sm);
24
+ --pf-v5-c-icon--m-md__content--FontSize: var(--pf-v5-global--icon--FontSize--md);
25
+ --pf-v5-c-icon--m-lg__content--FontSize: var(--pf-v5-global--icon--FontSize--lg);
26
+ --pf-v5-c-icon--m-xl__content--FontSize: var(--pf-v5-global--icon--FontSize--xl);
21
27
  --pf-v5-c-icon--m-inline__content--FontSize: 1em;
22
- --pf-v5-c-icon__content--svg--VerticalAlign: -.125em;
23
- --pf-v5-c-icon--m-sm--content--FontSize: var(--pf-v5-global--icon--FontSize--sm);
24
- --pf-v5-c-icon--m-md--content--FontSize: var(--pf-v5-global--icon--FontSize--md);
25
- --pf-v5-c-icon--m-lg--content--FontSize: var(--pf-v5-global--icon--FontSize--lg);
26
- --pf-v5-c-icon--m-xl--content--FontSize: var(--pf-v5-global--icon--FontSize--xl);
27
28
  position: relative;
28
29
  display: inline-flex;
29
30
  align-items: center;
@@ -35,7 +36,7 @@
35
36
  --pf-v5-c-icon--Width: var(--pf-v5-c-icon--m-inline--Width);
36
37
  --pf-v5-c-icon--Height: var(--pf-v5-c-icon--m-inline--Height);
37
38
  --pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-inline__content--FontSize);
38
- --pf-v5-c-icon__content--Color: currentcolor;
39
+ --pf-v5-c-icon__content--Color: var(--pf-v5-c-icon--m-inline__content--Color);
39
40
  line-height: 1;
40
41
  }
41
42
  .pf-v5-c-icon.pf-m-inline .pf-v5-c-spinner {
@@ -44,22 +45,22 @@
44
45
  .pf-v5-c-icon.pf-m-sm {
45
46
  --pf-v5-c-icon--Width: var(--pf-v5-c-icon--m-sm--Width);
46
47
  --pf-v5-c-icon--Height: var(--pf-v5-c-icon--m-sm--Height);
47
- --pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-sm--content--FontSize);
48
+ --pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-sm__content--FontSize);
48
49
  }
49
50
  .pf-v5-c-icon.pf-m-md {
50
51
  --pf-v5-c-icon--Width: var(--pf-v5-c-icon--m-md--Width);
51
52
  --pf-v5-c-icon--Height: var(--pf-v5-c-icon--m-md--Height);
52
- --pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-md--content--FontSize);
53
+ --pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-md__content--FontSize);
53
54
  }
54
55
  .pf-v5-c-icon.pf-m-lg {
55
56
  --pf-v5-c-icon--Width: var(--pf-v5-c-icon--m-lg--Width);
56
57
  --pf-v5-c-icon--Height: var(--pf-v5-c-icon--m-lg--Height);
57
- --pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-lg--content--FontSize);
58
+ --pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-lg__content--FontSize);
58
59
  }
59
60
  .pf-v5-c-icon.pf-m-xl {
60
61
  --pf-v5-c-icon--Width: var(--pf-v5-c-icon--m-xl--Width);
61
62
  --pf-v5-c-icon--Height: var(--pf-v5-c-icon--m-xl--Height);
62
- --pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-xl--content--FontSize);
63
+ --pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-xl__content--FontSize);
63
64
  }
64
65
  .pf-v5-c-icon.pf-m-in-progress {
65
66
  --pf-v5-c-icon__content--Opacity: 0;
@@ -76,23 +77,23 @@
76
77
  }
77
78
  .pf-v5-c-icon__content.pf-m-sm,
78
79
  .pf-v5-c-icon__progress.pf-m-sm {
79
- --pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-sm--content--FontSize);
80
+ --pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-sm__content--FontSize);
80
81
  }
81
82
  .pf-v5-c-icon__content.pf-m-md,
82
83
  .pf-v5-c-icon__progress.pf-m-md {
83
- --pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-md--content--FontSize);
84
+ --pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-md__content--FontSize);
84
85
  }
85
86
  .pf-v5-c-icon__content.pf-m-lg,
86
87
  .pf-v5-c-icon__progress.pf-m-lg {
87
- --pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-lg--content--FontSize);
88
+ --pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-lg__content--FontSize);
88
89
  }
89
90
  .pf-v5-c-icon__content.pf-m-xl,
90
91
  .pf-v5-c-icon__progress.pf-m-xl {
91
- --pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-xl--content--FontSize);
92
+ --pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-xl__content--FontSize);
92
93
  }
93
94
 
94
95
  .pf-v5-c-icon__content {
95
- color: var(--pf-v5-c-icon__content--Color);
96
+ color: var(--pf-v5-c-icon__content--Color, inherit);
96
97
  opacity: var(--pf-v5-c-icon__content--Opacity, 1);
97
98
  }
98
99
  .pf-v5-c-icon__content.pf-m-danger {
@@ -1,40 +1,39 @@
1
1
  // @debug $icon; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
2
2
 
3
3
  .#{$icon} {
4
- // Size
5
- --#{$icon}--Width: var(--#{$pf-global}--icon--FontSize--md);
6
- --#{$icon}--Height: var(--#{$pf-global}--icon--FontSize--md);
7
-
8
- // When inline, use the parent's size
9
- --#{$icon}--m-inline--Width: 1em;
10
- --#{$icon}--m-inline--Height: 1em;
11
-
12
- // Size modifiers
4
+ // Sizes
5
+ --#{$icon}--Width: 1em;
6
+ --#{$icon}--Height: 1em;
13
7
  --#{$icon}--m-sm--Width: var(--#{$pf-global}--icon--FontSize--sm);
14
- --#{$icon}--m-md--Width: var(--#{$pf-global}--icon--FontSize--md);
15
- --#{$icon}--m-lg--Width: var(--#{$pf-global}--icon--FontSize--lg);
16
- --#{$icon}--m-xl--Width: var(--#{$pf-global}--icon--FontSize--xl);
17
8
  --#{$icon}--m-sm--Height: var(--#{$pf-global}--icon--FontSize--sm);
9
+ --#{$icon}--m-md--Width: var(--#{$pf-global}--icon--FontSize--md);
18
10
  --#{$icon}--m-md--Height: var(--#{$pf-global}--icon--FontSize--md);
11
+ --#{$icon}--m-lg--Width: var(--#{$pf-global}--icon--FontSize--lg);
19
12
  --#{$icon}--m-lg--Height: var(--#{$pf-global}--icon--FontSize--lg);
13
+ --#{$icon}--m-xl--Width: var(--#{$pf-global}--icon--FontSize--xl);
20
14
  --#{$icon}--m-xl--Height: var(--#{$pf-global}--icon--FontSize--xl);
15
+ --#{$icon}--m-inline--Width: 1em;
16
+ --#{$icon}--m-inline--Height: 1em;
21
17
 
22
- // Content variables
23
- --#{$icon}__content--Color: var(--#{$pf-global}--icon--Color--dark);
18
+ // Content
19
+ --#{$icon}__content--svg--VerticalAlign: -.125em;
24
20
 
25
- // Content status
21
+ // Content color
22
+ --#{$icon}__content--Color: initial;
26
23
  --#{$icon}__content--m-danger--Color: var(--#{$pf-global}--danger-color--100);
27
24
  --#{$icon}__content--m-warning--Color: var(--#{$pf-global}--warning-color--100);
28
25
  --#{$icon}__content--m-success--Color: var(--#{$pf-global}--success-color--100);
29
26
  --#{$icon}__content--m-info--Color: var(--#{$pf-global}--info-color--100);
30
27
  --#{$icon}__content--m-custom--Color: var(--#{$pf-global}--custom-color--100);
31
- --#{$icon}__content--FontSize: var(--#{$pf-global}--icon--FontSize--md);
28
+ --#{$icon}--m-inline__content--Color: initial;
29
+
30
+ // Content sizes
31
+ --#{$icon}__content--FontSize: 1em;
32
+ --#{$icon}--m-sm__content--FontSize: var(--#{$pf-global}--icon--FontSize--sm);
33
+ --#{$icon}--m-md__content--FontSize: var(--#{$pf-global}--icon--FontSize--md);
34
+ --#{$icon}--m-lg__content--FontSize: var(--#{$pf-global}--icon--FontSize--lg);
35
+ --#{$icon}--m-xl__content--FontSize: var(--#{$pf-global}--icon--FontSize--xl);
32
36
  --#{$icon}--m-inline__content--FontSize: 1em;
33
- --#{$icon}__content--svg--VerticalAlign: -.125em;
34
- --#{$icon}--m-sm--content--FontSize: var(--#{$pf-global}--icon--FontSize--sm);
35
- --#{$icon}--m-md--content--FontSize: var(--#{$pf-global}--icon--FontSize--md);
36
- --#{$icon}--m-lg--content--FontSize: var(--#{$pf-global}--icon--FontSize--lg);
37
- --#{$icon}--m-xl--content--FontSize: var(--#{$pf-global}--icon--FontSize--xl);
38
37
 
39
38
  position: relative;
40
39
  display: inline-flex;
@@ -48,7 +47,7 @@
48
47
  --#{$icon}--Width: var(--#{$icon}--m-inline--Width);
49
48
  --#{$icon}--Height: var(--#{$icon}--m-inline--Height);
50
49
  --#{$icon}__content--FontSize: var(--#{$icon}--m-inline__content--FontSize);
51
- --#{$icon}__content--Color: currentcolor;
50
+ --#{$icon}__content--Color: var(--#{$icon}--m-inline__content--Color);
52
51
 
53
52
  line-height: 1;
54
53
 
@@ -61,25 +60,25 @@
61
60
  &.pf-m-sm {
62
61
  --#{$icon}--Width: var(--#{$icon}--m-sm--Width);
63
62
  --#{$icon}--Height: var(--#{$icon}--m-sm--Height);
64
- --#{$icon}__content--FontSize: var(--#{$icon}--m-sm--content--FontSize);
63
+ --#{$icon}__content--FontSize: var(--#{$icon}--m-sm__content--FontSize);
65
64
  }
66
65
 
67
66
  &.pf-m-md {
68
67
  --#{$icon}--Width: var(--#{$icon}--m-md--Width);
69
68
  --#{$icon}--Height: var(--#{$icon}--m-md--Height);
70
- --#{$icon}__content--FontSize: var(--#{$icon}--m-md--content--FontSize);
69
+ --#{$icon}__content--FontSize: var(--#{$icon}--m-md__content--FontSize);
71
70
  }
72
71
 
73
72
  &.pf-m-lg {
74
73
  --#{$icon}--Width: var(--#{$icon}--m-lg--Width);
75
74
  --#{$icon}--Height: var(--#{$icon}--m-lg--Height);
76
- --#{$icon}__content--FontSize: var(--#{$icon}--m-lg--content--FontSize);
75
+ --#{$icon}__content--FontSize: var(--#{$icon}--m-lg__content--FontSize);
77
76
  }
78
77
 
79
78
  &.pf-m-xl {
80
79
  --#{$icon}--Width: var(--#{$icon}--m-xl--Width);
81
80
  --#{$icon}--Height: var(--#{$icon}--m-xl--Height);
82
- --#{$icon}__content--FontSize: var(--#{$icon}--m-xl--content--FontSize);
81
+ --#{$icon}__content--FontSize: var(--#{$icon}--m-xl__content--FontSize);
83
82
  }
84
83
 
85
84
  &.pf-m-in-progress {
@@ -99,25 +98,25 @@
99
98
 
100
99
  // Size modifiers
101
100
  &.pf-m-sm {
102
- --#{$icon}__content--FontSize: var(--#{$icon}--m-sm--content--FontSize);
101
+ --#{$icon}__content--FontSize: var(--#{$icon}--m-sm__content--FontSize);
103
102
  }
104
103
 
105
104
  &.pf-m-md {
106
- --#{$icon}__content--FontSize: var(--#{$icon}--m-md--content--FontSize);
105
+ --#{$icon}__content--FontSize: var(--#{$icon}--m-md__content--FontSize);
107
106
  }
108
107
 
109
108
  &.pf-m-lg {
110
- --#{$icon}__content--FontSize: var(--#{$icon}--m-lg--content--FontSize);
109
+ --#{$icon}__content--FontSize: var(--#{$icon}--m-lg__content--FontSize);
111
110
  }
112
111
 
113
112
  &.pf-m-xl {
114
- --#{$icon}__content--FontSize: var(--#{$icon}--m-xl--content--FontSize);
113
+ --#{$icon}__content--FontSize: var(--#{$icon}--m-xl__content--FontSize);
115
114
  }
116
115
  }
117
116
 
118
117
  // Content element
119
118
  .#{$icon}__content {
120
- color: var(--#{$icon}__content--Color);
119
+ color: var(--#{$icon}__content--Color, inherit);
121
120
  opacity: var(--#{$icon}__content--Opacity, 1);
122
121
 
123
122
  // Status modifiers
@@ -31,7 +31,7 @@
31
31
  --pf-v5-c-notification-badge--m-attention--hover--after--BackgroundColor: var(--pf-v5-global--danger-color--200);
32
32
  --pf-v5-c-notification-badge--m-attention--m-expanded--after--BackgroundColor: var(--pf-v5-global--danger-color--200);
33
33
  --pf-v5-c-notification-badge__count--MarginLeft: var(--pf-v5-global--spacer--xs);
34
- --pf-v5-c-notification-badge--pf-v5-c-icon-attention-bell--LineHeight: var(--pf-v5-global--LineHeight--sm);
34
+ --pf-v5-c-notification-badge--pf-v5-pficon-attention-bell--LineHeight: var(--pf-v5-global--LineHeight--sm);
35
35
  position: relative;
36
36
  display: inline-block;
37
37
  padding: var(--pf-v5-c-notification-badge--PaddingTop) var(--pf-v5-c-notification-badge--PaddingRight) var(--pf-v5-c-notification-badge--PaddingBottom) var(--pf-v5-c-notification-badge--PaddingLeft);
@@ -62,7 +62,7 @@
62
62
  .pf-v5-c-notification-badge .pf-v5-c-icon-attention-bell,
63
63
  .pf-v5-c-notification-badge .pf-v5-c-icon-bell {
64
64
  display: inline-block;
65
- line-height: var(--pf-v5-c-notification-badge--pf-v5-c-icon-attention-bell--LineHeight);
65
+ line-height: var(--pf-v5-c-notification-badge--pf-v5-pficon-attention-bell--LineHeight);
66
66
  }
67
67
  .pf-v5-c-notification-badge .pf-v5-c-icon-attention-bell::before,
68
68
  .pf-v5-c-notification-badge .pf-v5-c-icon-bell::before {
@@ -49,7 +49,7 @@
49
49
  --#{$notification-badge}__count--MarginLeft: var(--#{$pf-global}--spacer--xs);
50
50
 
51
51
  // Attention icon
52
- --#{$notification-badge}--pf-v5-c-icon-attention-bell--LineHeight: var(--#{$pf-global}--LineHeight--sm);
52
+ --#{$notification-badge}--pf-v5-pficon-attention-bell--LineHeight: var(--#{$pf-global}--LineHeight--sm);
53
53
 
54
54
  position: relative;
55
55
  display: inline-block;
@@ -85,7 +85,7 @@
85
85
  .#{$icon}-attention-bell,
86
86
  .#{$icon}-bell {
87
87
  display: inline-block;
88
- line-height: var(--#{$notification-badge}--pf-v5-c-icon-attention-bell--LineHeight);
88
+ line-height: var(--#{$notification-badge}--pf-v5-pficon-attention-bell--LineHeight);
89
89
 
90
90
  &::before {
91
91
  vertical-align: bottom;
@@ -271,7 +271,7 @@
271
271
  border: var(--pf-v5-c-progress-stepper__step-icon--BorderWidth) solid var(--pf-v5-c-progress-stepper__step-icon--BorderColor);
272
272
  border-radius: 50%;
273
273
  }
274
- .pf-v5-c-progress-stepper__step-icon .pf-v5-c-icon {
274
+ .pf-v5-c-progress-stepper__step-icon .pf-v5-pficon {
275
275
  margin-top: var(--pf-v5-c-progress-stepper__pficon--MarginTop);
276
276
  }
277
277
  .pf-v5-c-progress-stepper__step-icon .fa-exclamation-triangle {
@@ -354,7 +354,7 @@ $pf-v5-c-progress-stepper--breakpoint-map: build-breakpoint-map();
354
354
 
355
355
  // Align pficons with the font awesome icons
356
356
  // stylelint-disable
357
- .pf-v5-c-icon {
357
+ .pf-v5-pficon {
358
358
  margin-top: var(--#{$progress}-stepper__pficon--MarginTop);
359
359
  }
360
360
 
@@ -44,7 +44,7 @@
44
44
  @import "./InputGroup/input-group";
45
45
  @import "./JumpLinks/jump-links";
46
46
  @import "./Label/label";
47
- @import "./LabelGroup/label-group";
47
+ @import "./Label/label-group";
48
48
  @import "./List/list";
49
49
  @import "./LogViewer/log-viewer";
50
50
  @import "./Login/login";
@@ -7,7 +7,10 @@ cssPrefix: pf-v5-c-about-modal-box
7
7
  ### Basic
8
8
 
9
9
  ```html isFullscreen
10
- <div class="pf-v5-c-about-modal-box">
10
+ <div
11
+ class="pf-v5-c-about-modal-box"
12
+ style="--pf-v5-c-about-modal-box--BackgroundImage: url(/assets/images/pfbg-icon.svg)"
13
+ >
11
14
  <div class="pf-v5-c-about-modal-box__brand">
12
15
  <img
13
16
  class="pf-v5-c-about-modal-box__brand-image"
@@ -39,20 +42,14 @@ cssPrefix: pf-v5-c-about-modal-box
39
42
 
40
43
  ## Documentation
41
44
 
45
+ In order to add a background image, set the `--pf-v5-c-about-modal-box--BackgroundImage` CSS variable to the path of the image. For example: `--pf-v5-c-about-modal-box--BackgroundImage: url(custom/path/image.jpg);`
46
+
42
47
  ### Accessibility
43
48
 
44
49
  | Attribute | Applies to | Outcome |
45
50
  | -- | -- | -- |
46
51
  | `aria-label="Close Dialog"` | `.pf-v5-c-modal-box__close .pf-v5-c-button` | Provides an accessible name for the close button as it uses an icon instead of text. **Required** |
47
52
 
48
- ### Customizing the background image
49
-
50
- In order to use a custom image, pass a new value to the `--pf-v5-c-about-modal-box--BackgroundImage` CSS variable. For example:
51
-
52
- ```css
53
- --pf-v5-c-about-modal-box--BackgroundImage: url("custom/image/path");
54
- ```
55
-
56
53
  ### Usage
57
54
 
58
55
  | Class | Applied to | Outcome |
@@ -65,3 +62,4 @@ In order to use a custom image, pass a new value to the `--pf-v5-c-about-modal-b
65
62
  | `.pf-v5-c-about-modal-box__content` | `<div>` | Initiates a modal box content cell. |
66
63
  | `.pf-v5-c-about-modal-box__body` | `<div>` | Initiates a modal box body cell. |
67
64
  | `.pf-v5-c-about-modal-box__strapline` | `<p>` | Initiates a modal box strapline cell. |
65
+ | `--pf-v5-c-about-modal-box--BackgroundImage` | `.pf-v5-c-about-modal-box` | Sets the background image for the about modal. |
@@ -1,3 +1,3 @@
1
1
  #ws-core-c-avatar-bordered---dark {
2
- background: var(--#{$pf-global}--BackgroundColor--dark-100);
2
+ background: var(--pf-v5-global--BackgroundColor--dark-100);
3
3
  }
@@ -7,7 +7,10 @@ cssPrefix: pf-v5-c-background-image
7
7
  ### Basic
8
8
 
9
9
  ```html isFullscreen
10
- <div class="pf-v5-c-background-image"></div>
10
+ <div
11
+ class="pf-v5-c-background-image"
12
+ style="--pf-v5-c-background-image--BackgroundImage: url(/assets/images/pfbg-icon.svg)"
13
+ ></div>
11
14
 
12
15
  ```
13
16
 
@@ -15,18 +18,11 @@ cssPrefix: pf-v5-c-background-image
15
18
 
16
19
  ### Overview
17
20
 
18
- This component puts an image on the background.
19
-
20
- ### Customizing the background image
21
-
22
- In order to use a custom image, pass a new value to the `--pf-v5-c-background-image--BackgroundImage` CSS variable. For example:
23
-
24
- ```css
25
- --pf-v5-c-background-image--BackgroundImage: url("custom/image/path");
26
- ```
21
+ In order to set the background image to be used, set the `--pf-v5-c-background-image--BackgroundImage` CSS variable to the path of the image. For example: `--pf-v5-c-background-image--BackgroundImage: url(custom/path/image.jpg);`
27
22
 
28
23
  ### Usage
29
24
 
30
25
  | Class | Applied to | Outcome |
31
26
  | -- | -- | -- |
32
- | `.pf-v5-c-background-image` | `*` | A fixed background image is applied to the background of the page. |
27
+ | `.pf-v5-c-background-image` | `*` | A fixed background image is applied to the background of the page. |
28
+ | `--pf-v5-c-background-image--BackgroundImage` | `.pf-v5-c-background-image` | Sets the background image to be used. **Required** |
@@ -225,7 +225,7 @@ cssPrefix: pf-v5-c-code-editor
225
225
  <div class="pf-v5-c-code-editor__keyboard-shortcuts">
226
226
  <button class="pf-v5-c-button pf-m-link" type="button">
227
227
  <span class="pf-v5-c-button__icon pf-m-start">
228
- <i class="pf-v5-c-icon pf-v5-c-icon-help" aria-hidden="true"></i>
228
+ <i class="pf-v5-pficon pf-v5-pficon-help" aria-hidden="true"></i>
229
229
  </span>
230
230
  View shortcuts
231
231
  </button>