@patternfly/patternfly 5.0.0-prerelease.3 → 5.0.0-prerelease.5

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.
@@ -17,6 +17,9 @@
17
17
  --pf-v5-global--link--Color--hover: var(--pf-v5-global--link--Color--light);
18
18
  --pf-v5-global--BackgroundColor--100: var(--pf-v5-global--BackgroundColor--dark-100);
19
19
  }
20
+ .pf-v5-t-dark .pf-v5-c-button {
21
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--dark-100);
22
+ }
20
23
 
21
24
  .pf-v5-t-light {
22
25
  --pf-v5-global--Color--100: var(--pf-v5-global--Color--dark-100);
@@ -37,6 +40,9 @@
37
40
  --pf-v5-global--link--Color--hover: var(--pf-v5-global--link--Color--light);
38
41
  --pf-v5-global--BackgroundColor--100: var(--pf-v5-global--BackgroundColor--dark-100);
39
42
  }
43
+ .pf-v5-t-dark .pf-v5-c-button {
44
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--dark-100);
45
+ }
40
46
 
41
47
  .pf-v5-t-dark.pf-m-transparent {
42
48
  background-color: transparent;
@@ -7,6 +7,9 @@
7
7
  --pf-v5-global--link--Color--hover: var(--pf-v5-global--link--Color--light);
8
8
  --pf-v5-global--BackgroundColor--100: var(--pf-v5-global--BackgroundColor--dark-100);
9
9
  }
10
+ .pf-v5-c-about-modal-box .pf-v5-c-button {
11
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--dark-100);
12
+ }
10
13
 
11
14
  .pf-v5-c-about-modal-box {
12
15
  --pf-v5-c-about-modal-box--BackgroundColor: var(--pf-v5-global--palette--black-1000);
@@ -213,6 +216,9 @@
213
216
  --pf-v5-global--link--Color--hover: #73bcf7;
214
217
  --pf-v5-global--BackgroundColor--100: #1b1d21;
215
218
  }
219
+ :where(.pf-v5-theme-dark) .pf-v5-c-about-modal-box .pf-v5-c-button {
220
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--300);
221
+ }
216
222
 
217
223
  :where(.pf-v5-theme-dark) .pf-v5-c-about-modal-box {
218
224
  color: var(--pf-v5-global--Color--100);
@@ -17,6 +17,9 @@
17
17
  --pf-v5-global--link--Color--hover: var(--pf-v5-global--link--Color--light);
18
18
  --pf-v5-global--BackgroundColor--100: var(--pf-v5-global--BackgroundColor--dark-100);
19
19
  }
20
+ .pf-v5-c-banner .pf-v5-c-button {
21
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--dark-100);
22
+ }
20
23
 
21
24
  .pf-v5-c-banner {
22
25
  --pf-v5-c-banner--PaddingTop: var(--pf-v5-global--spacer--xs);
@@ -112,6 +115,9 @@
112
115
  --pf-v5-global--link--Color--hover: #73bcf7;
113
116
  --pf-v5-global--BackgroundColor--100: #1b1d21;
114
117
  }
118
+ :where(.pf-v5-theme-dark) .pf-v5-c-banner .pf-v5-c-button {
119
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--300);
120
+ }
115
121
 
116
122
  :where(.pf-v5-theme-dark) .pf-v5-c-banner {
117
123
  color: var(false);
@@ -7,6 +7,9 @@
7
7
  --pf-v5-global--link--Color--hover: var(--pf-v5-global--link--Color--light);
8
8
  --pf-v5-global--BackgroundColor--100: var(--pf-v5-global--BackgroundColor--dark-100);
9
9
  }
10
+ .pf-v5-c-log-viewer.pf-m-dark .pf-v5-c-log-viewer__main .pf-v5-c-button {
11
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--dark-100);
12
+ }
10
13
 
11
14
  .pf-v5-c-log-viewer {
12
15
  --pf-v5-c-log-viewer--Height: 100%;
@@ -192,6 +195,9 @@
192
195
  --pf-v5-global--link--Color--hover: #73bcf7;
193
196
  --pf-v5-global--BackgroundColor--100: #1b1d21;
194
197
  }
198
+ :where(.pf-v5-theme-dark) .pf-v5-c-log-viewer.pf-m-dark .pf-v5-c-log-viewer__main .pf-v5-c-button {
199
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--300);
200
+ }
195
201
 
196
202
  :where(.pf-v5-theme-dark) .pf-v5-c-log-viewer.pf-m-dark .pf-v5-c-log-viewer__main {
197
203
  color: var(--pf-v5-global--Color--100);
@@ -7,6 +7,9 @@
7
7
  --pf-v5-global--link--Color--hover: var(--pf-v5-global--link--Color--light);
8
8
  --pf-v5-global--BackgroundColor--100: var(--pf-v5-global--BackgroundColor--dark-100);
9
9
  }
10
+ .pf-v5-c-login__footer .pf-v5-c-button, .pf-v5-c-login__header .pf-v5-c-button {
11
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--dark-100);
12
+ }
10
13
 
11
14
  .pf-v5-c-login {
12
15
  --pf-v5-c-login--PaddingTop: var(--pf-v5-global--spacer--lg);
@@ -282,6 +285,10 @@
282
285
  --pf-v5-global--link--Color--hover: #73bcf7;
283
286
  --pf-v5-global--BackgroundColor--100: #1b1d21;
284
287
  }
288
+ :where(.pf-v5-theme-dark) .pf-v5-c-login__header .pf-v5-c-button,
289
+ :where(.pf-v5-theme-dark) .pf-v5-c-login__footer .pf-v5-c-button {
290
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--300);
291
+ }
285
292
 
286
293
  :where(.pf-v5-theme-dark) .pf-v5-c-login {
287
294
  --pf-v5-c-login__main--BackgroundColor: var(--pf-v5-global--BackgroundColor--300);
@@ -17,6 +17,9 @@
17
17
  --pf-v5-global--link--Color--hover: var(--pf-v5-global--link--Color--light);
18
18
  --pf-v5-global--BackgroundColor--100: var(--pf-v5-global--BackgroundColor--dark-100);
19
19
  }
20
+ .pf-v5-c-masthead .pf-v5-c-button.pf-m-plain .pf-v5-c-button, .pf-v5-c-masthead .pf-v5-c-button {
21
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--dark-100);
22
+ }
20
23
 
21
24
  .pf-v5-c-masthead {
22
25
  --pf-v5-c-masthead--PaddingLeft: var(--pf-v5-c-masthead--inset);
@@ -656,6 +659,9 @@
656
659
  --pf-v5-global--link--Color--hover: #73bcf7;
657
660
  --pf-v5-global--BackgroundColor--100: #1b1d21;
658
661
  }
662
+ :where(.pf-v5-theme-dark) .pf-v5-c-masthead .pf-v5-c-button {
663
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--300);
664
+ }
659
665
 
660
666
  :where(.pf-v5-theme-dark) .pf-v5-c-masthead {
661
667
  --pf-v5-c-masthead--BackgroundColor: var(--pf-v5-global--palette--black-1000);
@@ -17,6 +17,9 @@
17
17
  --pf-v5-global--link--Color--hover: var(--pf-v5-global--link--Color--light);
18
18
  --pf-v5-global--BackgroundColor--100: var(--pf-v5-global--BackgroundColor--dark-100);
19
19
  }
20
+ .pf-v5-c-page__main-section[class*=pf-m-dark-] .pf-v5-c-button, .pf-v5-c-page__sidebar-body.pf-m-menu .pf-v5-c-context-selector .pf-v5-c-button, .pf-v5-c-page__sidebar .pf-v5-c-button, .pf-v5-c-page__header .pf-v5-c-button {
21
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--dark-100);
22
+ }
20
23
 
21
24
  .pf-v5-c-page__header-tools-item, .pf-v5-c-page__header-tools-group {
22
25
  --pf-v5-hidden-visible--hidden--Display: none;
@@ -963,6 +966,11 @@
963
966
  --pf-v5-global--link--Color--hover: #73bcf7;
964
967
  --pf-v5-global--BackgroundColor--100: #1b1d21;
965
968
  }
969
+ :where(.pf-v5-theme-dark) .pf-v5-c-page__sidebar-body.pf-m-menu .pf-v5-c-context-selector .pf-v5-c-button,
970
+ :where(.pf-v5-theme-dark) .pf-v5-c-page__main-section[class*=pf-m-dark-] .pf-v5-c-button,
971
+ :where(.pf-v5-theme-dark) .pf-v5-c-page__header .pf-v5-c-button {
972
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--300);
973
+ }
966
974
 
967
975
  :where(.pf-v5-theme-dark):root {
968
976
  --pf-v5-c-page__main-section--BackgroundColor: var(--pf-v5-global--BackgroundColor--200);
@@ -6,6 +6,7 @@
6
6
  --pf-v5-c-switch__toggle-icon--Color: var(--pf-v5-global--Color--light-100);
7
7
  --pf-v5-c-switch__toggle-icon--Left: calc(var(--pf-v5-c-switch--FontSize) * .4);
8
8
  --pf-v5-c-switch__toggle-icon--Offset: 0.125rem;
9
+ --pf-v5-c-switch__input--disabled__toggle-icon--Color: var(--pf-v5-global--palette--black-150);
9
10
  --pf-v5-c-switch--LineHeight: var(--pf-v5-global--LineHeight--md);
10
11
  --pf-v5-c-switch--Height: auto;
11
12
  --pf-v5-c-switch__input--checked__toggle--BackgroundColor: var(--pf-v5-global--primary-color--100);
@@ -88,6 +89,7 @@
88
89
  cursor: not-allowed;
89
90
  }
90
91
  .pf-v5-c-switch__input:disabled ~ .pf-v5-c-switch__toggle {
92
+ --pf-v5-c-switch__toggle-icon--Color: var(--pf-v5-c-switch__input--disabled__toggle-icon--Color);
91
93
  cursor: not-allowed;
92
94
  background-color: var(--pf-v5-c-switch__input--disabled__toggle--BackgroundColor);
93
95
  }
@@ -140,4 +142,5 @@
140
142
  --pf-v5-c-switch__input--not-checked__label--Color: var(--pf-v5-global--Color--100);
141
143
  --pf-v5-c-switch__input--disabled__toggle--before--BackgroundColor: var(--pf-v5-global--disabled-color--100);
142
144
  --pf-v5-c-switch__toggle--before--BoxShadow: none;
145
+ --pf-v5-c-switch__input--disabled__toggle-icon--Color: var(--pf-v5-global--disabled-color--100);
143
146
  }
@@ -11,6 +11,7 @@
11
11
  --#{$switch}__toggle-icon--Color: var(--#{$pf-global}--Color--light-100);
12
12
  --#{$switch}__toggle-icon--Left: calc(var(--#{$switch}--FontSize) * .4);
13
13
  --#{$switch}__toggle-icon--Offset: #{pf-size-prem(2px)}; // this value is created to handle sizing of the toggle and therefore the width of the toggle and its transform value.
14
+ --#{$switch}__input--disabled__toggle-icon--Color: var(--#{$pf-global}--palette--black-150);
14
15
 
15
16
  // Switch
16
17
  --#{$switch}--LineHeight: var(--#{$pf-global}--LineHeight--md);
@@ -121,6 +122,8 @@
121
122
  }
122
123
 
123
124
  ~ .#{$switch}__toggle {
125
+ --#{$switch}__toggle-icon--Color: var(--#{$switch}__input--disabled__toggle-icon--Color);
126
+
124
127
  cursor: not-allowed;
125
128
  background-color: var(--#{$switch}__input--disabled__toggle--BackgroundColor);
126
129
 
@@ -6,5 +6,6 @@
6
6
  --#{$switch}__input--not-checked__label--Color: var(--#{$pf-global}--Color--100);
7
7
  --#{$switch}__input--disabled__toggle--before--BackgroundColor: var(--#{$pf-global}--disabled-color--100);
8
8
  --#{$switch}__toggle--before--BoxShadow: none;
9
+ --#{$switch}__input--disabled__toggle-icon--Color: var(--#{$pf-global}--disabled-color--100);
9
10
  }
10
11
  }
@@ -7,6 +7,9 @@
7
7
  --pf-v5-global--link--Color--hover: var(--pf-v5-global--link--Color--light);
8
8
  --pf-v5-global--BackgroundColor--100: var(--pf-v5-global--BackgroundColor--dark-100);
9
9
  }
10
+ .pf-v5-c-wizard__header .pf-v5-c-button {
11
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--dark-100);
12
+ }
10
13
 
11
14
  .pf-v5-c-wizard {
12
15
  --pf-v5-c-wizard--Height: 100%;
@@ -506,6 +509,9 @@
506
509
  --pf-v5-global--link--Color--hover: #73bcf7;
507
510
  --pf-v5-global--BackgroundColor--100: #1b1d21;
508
511
  }
512
+ :where(.pf-v5-theme-dark) .pf-v5-c-wizard__header .pf-v5-c-button {
513
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--300);
514
+ }
509
515
 
510
516
  :where(.pf-v5-theme-dark) .pf-v5-c-wizard {
511
517
  --pf-v5-c-wizard__header--BackgroundColor: var(--pf-v5-global--palette--black-1000);
@@ -261,6 +261,42 @@ cssPrefix: pf-v5-c-switch
261
261
  >Message when off</span>
262
262
  </label>
263
263
 
264
+ <br />
265
+ <br />
266
+ <label class="pf-v5-c-switch" for="switch-with-icon-disabled-1">
267
+ <input
268
+ class="pf-v5-c-switch__input"
269
+ type="checkbox"
270
+ id="switch-with-icon-disabled-1"
271
+ aria-label="switch is off"
272
+ disabled
273
+ checked
274
+ />
275
+
276
+ <span class="pf-v5-c-switch__toggle">
277
+ <span class="pf-v5-c-switch__toggle-icon">
278
+ <i class="fas fa-check" aria-hidden="true"></i>
279
+ </span>
280
+ </span>
281
+ </label>
282
+
283
+ <br />
284
+ <br />
285
+ <label class="pf-v5-c-switch" for="switch-with-icon-disabled-2">
286
+ <input
287
+ class="pf-v5-c-switch__input"
288
+ type="checkbox"
289
+ id="switch-with-icon-disabled-2"
290
+ aria-label="switch is off"
291
+ disabled
292
+ />
293
+ <span class="pf-v5-c-switch__toggle">
294
+ <span class="pf-v5-c-switch__toggle-icon">
295
+ <i class="fas fa-check" aria-hidden="true"></i>
296
+ </span>
297
+ </span>
298
+ </label>
299
+
264
300
  ```
265
301
 
266
302
  ## Documentation
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@patternfly/patternfly",
3
3
  "description": "Assets, source, tooling, and content for PatternFly 4",
4
- "version": "5.0.0-prerelease.3",
4
+ "version": "5.0.0-prerelease.5",
5
5
  "keywords": [],
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -17,6 +17,9 @@
17
17
  --pf-v5-global--link--Color--hover: var(--pf-v5-global--link--Color--light);
18
18
  --pf-v5-global--BackgroundColor--100: var(--pf-v5-global--BackgroundColor--dark-100);
19
19
  }
20
+ .pf-t-dark .pf-v5-c-button {
21
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--dark-100);
22
+ }
20
23
 
21
24
  :where(:root) {
22
25
  --pf-v5-global--palette--black-100: #fafafa;
@@ -17,6 +17,9 @@
17
17
  --pf-v5-global--link--Color--hover: var(--pf-v5-global--link--Color--light);
18
18
  --pf-v5-global--BackgroundColor--100: var(--pf-v5-global--BackgroundColor--dark-100);
19
19
  }
20
+ .pf-v5-t-dark .pf-v5-c-button {
21
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--dark-100);
22
+ }
20
23
 
21
24
  :where(:root) {
22
25
  --pf-v5-global--palette--black-100: #fafafa;
@@ -17,6 +17,9 @@
17
17
  --pf-v5-global--link--Color--hover: var(--pf-v5-global--link--Color--light);
18
18
  --pf-v5-global--BackgroundColor--100: var(--pf-v5-global--BackgroundColor--dark-100);
19
19
  }
20
+ .pf-t-dark .pf-v5-c-button {
21
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--dark-100);
22
+ }
20
23
 
21
24
  :where(:root) {
22
25
  --pf-v5-global--palette--black-100: #fafafa;
@@ -17,6 +17,9 @@
17
17
  --pf-v5-global--link--Color--hover: var(--pf-v5-global--link--Color--light);
18
18
  --pf-v5-global--BackgroundColor--100: var(--pf-v5-global--BackgroundColor--dark-100);
19
19
  }
20
+ .pf-v5-t-dark .pf-v5-c-button {
21
+ --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--dark-100);
22
+ }
20
23
 
21
24
  :where(:root) {
22
25
  --pf-v5-global--palette--black-100: #fafafa;