@patternfly/patternfly 5.1.0-prerelease.27 → 5.1.0-prerelease.29

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.
@@ -117,9 +117,6 @@
117
117
  --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--300);
118
118
  }
119
119
 
120
- :where(.pf-v5-theme-dark) .pf-v5-c-banner {
121
- color: var(false);
122
- }
123
120
  :where(.pf-v5-theme-dark) .pf-v5-c-banner.pf-m-blue, :where(.pf-v5-theme-dark) .pf-v5-c-banner.pf-m-red, :where(.pf-v5-theme-dark) .pf-v5-c-banner.pf-m-green, :where(.pf-v5-theme-dark) .pf-v5-c-banner.pf-m-gold {
124
121
  --pf-v5-c-banner--Color: var(--pf-v5-global--palette--black-900);
125
122
  }
@@ -432,6 +432,9 @@
432
432
  color: var(--pf-v5-c-button--m-plain--Color);
433
433
  background-color: var(--pf-v5-c-button--m-plain--BackgroundColor);
434
434
  }
435
+ .pf-v5-c-button.pf-m-plain.pf-m-no-padding {
436
+ padding: 0;
437
+ }
435
438
  .pf-v5-c-button.pf-m-plain:hover {
436
439
  --pf-v5-c-button--m-plain--Color: var(--pf-v5-c-button--m-plain--hover--Color);
437
440
  --pf-v5-c-button--m-plain--BackgroundColor: var(--pf-v5-c-button--m-plain--hover--BackgroundColor);
@@ -559,6 +559,10 @@
559
559
  color: var(--#{$button}--m-plain--Color);
560
560
  background-color: var(--#{$button}--m-plain--BackgroundColor);
561
561
 
562
+ &.pf-m-no-padding {
563
+ padding: 0;
564
+ }
565
+
562
566
  &:hover {
563
567
  --#{$button}--m-plain--Color: var(--#{$button}--m-plain--hover--Color);
564
568
  --#{$button}--m-plain--BackgroundColor: var(--#{$button}--m-plain--hover--BackgroundColor);
@@ -36,7 +36,7 @@
36
36
  --pf-v5-c-card--m-selectable--m-disabled--BoxShadow: var(--pf-v5-global--BoxShadow--sm);
37
37
  --pf-v5-c-card--m-selectable--m-clickable--hover--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
38
38
  --pf-v5-c-card--m-selectable--m-clickable--hover--BoxShadow: var(--pf-v5-global--BoxShadow--sm);
39
- --pf-v5-c-card--m-selectable--m-clickable--m-selected--BorderColor: var(--pf-v5-global--BorderColor--100);
39
+ --pf-v5-c-card--m-selectable--m-clickable--m-selected--BorderColor: transparent;
40
40
  --pf-v5-c-card--m-selectable--m-clickable--m-selected--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
41
41
  --pf-v5-c-card--m-selectable--m-clickable--m-current--BackgroundColor: var(--pf-v5-global--palette--black-150);
42
42
  --pf-v5-c-card--m-selectable--m-clickable--m-current--BorderColor: var(--pf-v5-global--active-color--100);
@@ -58,7 +58,7 @@
58
58
  --#{$card}--m-selectable--m-clickable--hover--BoxShadow: var(--#{$pf-global}--BoxShadow--sm);
59
59
 
60
60
  // Selected selectable AND clickable card
61
- --#{$card}--m-selectable--m-clickable--m-selected--BorderColor: var(--#{$pf-global}--BorderColor--100);
61
+ --#{$card}--m-selectable--m-clickable--m-selected--BorderColor: transparent;
62
62
  --#{$card}--m-selectable--m-clickable--m-selected--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
63
63
 
64
64
  // Clicked (pf-m-current) selectable AND clickable card
@@ -50,10 +50,20 @@ cssPrefix: pf-v5-c-button
50
50
  <button class="pf-v5-c-button pf-m-inline pf-m-link" type="button">Inline link</button>
51
51
  <br />
52
52
  <br />
53
+ <span>Default plain button:</span>
53
54
  <button class="pf-v5-c-button pf-m-plain" type="button" aria-label="Remove">
54
55
  <i class="fas fa-times" aria-hidden="true"></i>
55
56
  </button>
56
57
  <br />
58
+ <span>No padding plain button:</span>
59
+ <button
60
+ class="pf-v5-c-button pf-m-plain pf-m-no-padding"
61
+ type="button"
62
+ aria-label="Remove"
63
+ >
64
+ <i class="fas fa-times" aria-hidden="true"></i>
65
+ </button>
66
+ <br />
57
67
  <br />
58
68
  <button class="pf-v5-c-button pf-m-control" type="button">Control</button>
59
69
 
@@ -65,10 +75,11 @@ cssPrefix: pf-v5-c-button
65
75
  <i class="fas fa-copy" aria-hidden="true"></i>
66
76
  </button>
67
77
 
68
- <br />
69
- <br />
70
- <br />
78
+ ```
79
+
80
+ ### Small buttons
71
81
 
82
+ ```html
72
83
  <button class="pf-v5-c-button pf-m-primary pf-m-small" type="button">Primary</button>
73
84
 
74
85
  <button class="pf-v5-c-button pf-m-secondary pf-m-small" type="button">Secondary</button>
@@ -533,6 +544,7 @@ Semantic buttons and links are important for usability as well as accessibility.
533
544
  | `.pf-m-warning` | `.pf-v5-c-button` | Modifies for warning styles. |
534
545
  | `.pf-m-link` | `.pf-v5-c-button` | Modifies for link styles. This button has no background or border and is styled as a link. This button would commonly appear in a form and may include an icon. |
535
546
  | `.pf-m-plain` | `.pf-v5-c-button` | Modifies for icon styles. This button has no background or border, uses a standard text color, and is used for `.pf-m-plain` icon buttons such as close, expand, kebab, etc. |
547
+ | `.pf-m-no-padding` | `.pf-v5-c-button.pf-m-plain` | Modifies a plain button to remove padding. This modifier should only be used when the button is inline within a sentence or block of text. Adjacent plain buttons without padding should always have spacing between them. |
536
548
  | `.pf-m-inline` | `.pf-v5-c-button.pf-m-link` | Modifies for inline styles. This button is presented similar to a normal link and has no padding and is displayed inline with other inline content. When used as a `<span>`, the text will flow inline with text around it. |
537
549
  | `.pf-m-block` | `.pf-v5-c-button` | Creates a block level button. |
538
550
  | `.pf-m-control` | `.pf-v5-c-button` | Modifies for control styles. **Note:** This modifier should only be used when using buttons in the Input Group or Clipboard Copy components. |
@@ -510,7 +510,7 @@ cssPrefix: pf-v5-c-card
510
510
 
511
511
  ```
512
512
 
513
- ### Single Selectable
513
+ ### Single selectable
514
514
 
515
515
  ```html
516
516
  <div class="pf-v5-l-gallery pf-m-gutter">
@@ -748,7 +748,7 @@ cssPrefix: pf-v5-c-card
748
748
 
749
749
  ```
750
750
 
751
- ### Clickable and Selectable
751
+ ### Clickable and selectable
752
752
 
753
753
  ```html
754
754
  <div class="pf-v5-l-gallery pf-m-gutter">
@@ -212,6 +212,112 @@ cssPrefix: pf-v5-c-clipboard-copy
212
212
  id="expandable-expanded-readonly-content"
213
213
  >This is an editable version of the copy to clipboard component that has an expandable section. Got a lot of text here, need to see all of it? Click that arrow on the left side and check out the resulting expansion.</div>
214
214
  </div>
215
+ <br />
216
+ <h4>Code</h4>
217
+ <div class="pf-v5-c-clipboard-copy">
218
+ <div class="pf-v5-c-clipboard-copy__group">
219
+ <button
220
+ class="pf-v5-c-button pf-m-control"
221
+ type="button"
222
+ id="expandable-not-expanded-code-toggle"
223
+ aria-labelledby="expandable-not-expanded-code-toggle expandable-not-expanded-code-text-input"
224
+ aria-controls="expandable-not-expanded-code-content"
225
+ >
226
+ <div class="pf-v5-c-clipboard-copy__toggle-icon">
227
+ <i class="fas fa-angle-right" aria-hidden="true"></i>
228
+ </div>
229
+ </button>
230
+ <span class="pf-v5-c-form-control">
231
+ <input
232
+ dir="ltr"
233
+ type="text"
234
+ value="{ &quot;menu&quot;: { &quot;id&quot;: &quot;file&quot;, &quot;value&quot;: &quot;File&quot;, &quot;popup&quot;: { &quot;menuitem&quot;: [ {&quot;value&quot;: &quot;New&quot;, &quot;onclick&quot;: &quot;CreateNewDoc()&quot;}, {&quot;value&quot;: &quot;Open&quot;, &quot;onclick&quot;: &quot;OpenDoc()&quot;}, {&quot;value&quot;: &quot;Close&quot;, &quot;onclick&quot;: &quot;CloseDoc()&quot;} ] } }} "
235
+ id="expandable-not-expanded-code-text-input"
236
+ aria-label="Copyable input"
237
+ />
238
+ </span>
239
+ <button
240
+ class="pf-v5-c-button pf-m-control"
241
+ type="button"
242
+ aria-label="Copy to clipboard"
243
+ id="expandable-not-expanded-code-copy-button"
244
+ aria-labelledby="expandable-not-expanded-code-copy-button expandable-not-expanded-code-text-input"
245
+ >
246
+ <i class="fas fa-copy" aria-hidden="true"></i>
247
+ </button>
248
+ </div>
249
+ <div
250
+ class="pf-v5-c-clipboard-copy__expandable-content"
251
+ hidden
252
+ id="expandable-not-expanded-code-content"
253
+ >
254
+ <pre dir="ltr">{ "menu": {
255
+ "id": "file",
256
+ "value": "File",
257
+ "popup": {
258
+ "menuitem": [
259
+ {"value": "New", "onclick": "CreateNewDoc()"},
260
+ {"value": "Open", "onclick": "OpenDoc()"},
261
+ {"value": "Close", "onclick": "CloseDoc()"}
262
+ ]
263
+ }
264
+ }}
265
+ </pre>
266
+ </div>
267
+ </div>
268
+ <br />
269
+ <div class="pf-v5-c-clipboard-copy pf-m-expanded">
270
+ <div class="pf-v5-c-clipboard-copy__group">
271
+ <button
272
+ class="pf-v5-c-button pf-m-control pf-m-expanded"
273
+ type="button"
274
+ id="expandable-expanded-code-toggle"
275
+ aria-labelledby="expandable-expanded-code-toggle expandable-expanded-code-text-input"
276
+ aria-controls="expandable-expanded-code-content"
277
+ >
278
+ <div class="pf-v5-c-clipboard-copy__toggle-icon">
279
+ <i class="fas fa-angle-right" aria-hidden="true"></i>
280
+ </div>
281
+ </button>
282
+ <span class="pf-v5-c-form-control pf-m-readonly">
283
+ <input
284
+ readonly
285
+ dir="ltr"
286
+ type="text"
287
+ value="{ &quot;menu&quot;: { &quot;id&quot;: &quot;file&quot;, &quot;value&quot;: &quot;File&quot;, &quot;popup&quot;: { &quot;menuitem&quot;: [ {&quot;value&quot;: &quot;New&quot;, &quot;onclick&quot;: &quot;CreateNewDoc()&quot;}, {&quot;value&quot;: &quot;Open&quot;, &quot;onclick&quot;: &quot;OpenDoc()&quot;}, {&quot;value&quot;: &quot;Close&quot;, &quot;onclick&quot;: &quot;CloseDoc()&quot;} ] } }} "
288
+ id="expandable-expanded-code-text-input"
289
+ aria-label="Copyable input"
290
+ />
291
+ </span>
292
+ <button
293
+ class="pf-v5-c-button pf-m-control"
294
+ type="button"
295
+ aria-label="Copy to clipboard"
296
+ id="expandable-expanded-code-copy-button"
297
+ aria-labelledby="expandable-expanded-code-copy-button expandable-expanded-code-text-input"
298
+ >
299
+ <i class="fas fa-copy" aria-hidden="true"></i>
300
+ </button>
301
+ </div>
302
+ <div
303
+ class="pf-v5-c-clipboard-copy__expandable-content"
304
+ contenteditable="true"
305
+ id="expandable-expanded-code-content"
306
+ >
307
+ <pre dir="ltr">{ "menu": {
308
+ "id": "file",
309
+ "value": "File",
310
+ "popup": {
311
+ "menuitem": [
312
+ {"value": "New", "onclick": "CreateNewDoc()"},
313
+ {"value": "Open", "onclick": "OpenDoc()"},
314
+ {"value": "Close", "onclick": "CloseDoc()"}
315
+ ]
316
+ }
317
+ }}
318
+ </pre>
319
+ </div>
320
+ </div>
215
321
 
216
322
  ```
217
323
 
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.1.0-prerelease.27",
4
+ "version": "5.1.0-prerelease.29",
5
5
  "keywords": [],
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -45,7 +45,7 @@
45
45
  "@commitlint/config-conventional": "^17.6.7",
46
46
  "@fortawesome/fontawesome": "^1.1.8",
47
47
  "@octokit/rest": "^20.0.1",
48
- "@patternfly/documentation-framework": "5.2.0",
48
+ "@patternfly/documentation-framework": "5.2.3",
49
49
  "@patternfly/patternfly-a11y": "4.3.1",
50
50
  "@patternfly/react-code-editor": "5.0.1",
51
51
  "@patternfly/react-core": "5.0.1",
@@ -6822,9 +6822,6 @@
6822
6822
  --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--300);
6823
6823
  }
6824
6824
 
6825
- :where(.pf-v5-theme-dark) .pf-v5-c-banner {
6826
- color: var(false);
6827
- }
6828
6825
  :where(.pf-v5-theme-dark) .pf-v5-c-banner.pf-m-blue, :where(.pf-v5-theme-dark) .pf-v5-c-banner.pf-m-red, :where(.pf-v5-theme-dark) .pf-v5-c-banner.pf-m-green, :where(.pf-v5-theme-dark) .pf-v5-c-banner.pf-m-gold {
6829
6826
  --pf-v5-c-banner--Color: var(--pf-v5-global--palette--black-900);
6830
6827
  }
@@ -7425,6 +7422,9 @@ button.pf-v5-c-breadcrumb__link {
7425
7422
  color: var(--pf-v5-c-button--m-plain--Color);
7426
7423
  background-color: var(--pf-v5-c-button--m-plain--BackgroundColor);
7427
7424
  }
7425
+ .pf-v5-c-button.pf-m-plain.pf-m-no-padding {
7426
+ padding: 0;
7427
+ }
7428
7428
  .pf-v5-c-button.pf-m-plain:hover {
7429
7429
  --pf-v5-c-button--m-plain--Color: var(--pf-v5-c-button--m-plain--hover--Color);
7430
7430
  --pf-v5-c-button--m-plain--BackgroundColor: var(--pf-v5-c-button--m-plain--hover--BackgroundColor);
@@ -7824,7 +7824,7 @@ button.pf-v5-c-breadcrumb__link {
7824
7824
  --pf-v5-c-card--m-selectable--m-disabled--BoxShadow: var(--pf-v5-global--BoxShadow--sm);
7825
7825
  --pf-v5-c-card--m-selectable--m-clickable--hover--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
7826
7826
  --pf-v5-c-card--m-selectable--m-clickable--hover--BoxShadow: var(--pf-v5-global--BoxShadow--sm);
7827
- --pf-v5-c-card--m-selectable--m-clickable--m-selected--BorderColor: var(--pf-v5-global--BorderColor--100);
7827
+ --pf-v5-c-card--m-selectable--m-clickable--m-selected--BorderColor: transparent;
7828
7828
  --pf-v5-c-card--m-selectable--m-clickable--m-selected--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
7829
7829
  --pf-v5-c-card--m-selectable--m-clickable--m-current--BackgroundColor: var(--pf-v5-global--palette--black-150);
7830
7830
  --pf-v5-c-card--m-selectable--m-clickable--m-current--BorderColor: var(--pf-v5-global--active-color--100);
@@ -6939,9 +6939,6 @@ button) {
6939
6939
  --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--300);
6940
6940
  }
6941
6941
 
6942
- :where(.pf-theme-dark) .pf-v5-c-banner {
6943
- color: var(false);
6944
- }
6945
6942
  :where(.pf-theme-dark) .pf-v5-c-banner.pf-m-blue, :where(.pf-theme-dark) .pf-v5-c-banner.pf-m-red, :where(.pf-theme-dark) .pf-v5-c-banner.pf-m-green, :where(.pf-theme-dark) .pf-v5-c-banner.pf-m-gold {
6946
6943
  --pf-v5-c-banner--Color: var(--pf-v5-global--palette--black-900);
6947
6944
  }
@@ -7542,6 +7539,9 @@ button.pf-v5-c-breadcrumb__link {
7542
7539
  color: var(--pf-v5-c-button--m-plain--Color);
7543
7540
  background-color: var(--pf-v5-c-button--m-plain--BackgroundColor);
7544
7541
  }
7542
+ .pf-v5-c-button.pf-m-plain.pf-m-no-padding {
7543
+ padding: 0;
7544
+ }
7545
7545
  .pf-v5-c-button.pf-m-plain:hover {
7546
7546
  --pf-v5-c-button--m-plain--Color: var(--pf-v5-c-button--m-plain--hover--Color);
7547
7547
  --pf-v5-c-button--m-plain--BackgroundColor: var(--pf-v5-c-button--m-plain--hover--BackgroundColor);
@@ -7941,7 +7941,7 @@ button.pf-v5-c-breadcrumb__link {
7941
7941
  --pf-v5-c-card--m-selectable--m-disabled--BoxShadow: var(--pf-v5-global--BoxShadow--sm);
7942
7942
  --pf-v5-c-card--m-selectable--m-clickable--hover--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
7943
7943
  --pf-v5-c-card--m-selectable--m-clickable--hover--BoxShadow: var(--pf-v5-global--BoxShadow--sm);
7944
- --pf-v5-c-card--m-selectable--m-clickable--m-selected--BorderColor: var(--pf-v5-global--BorderColor--100);
7944
+ --pf-v5-c-card--m-selectable--m-clickable--m-selected--BorderColor: transparent;
7945
7945
  --pf-v5-c-card--m-selectable--m-clickable--m-selected--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
7946
7946
  --pf-v5-c-card--m-selectable--m-clickable--m-current--BackgroundColor: var(--pf-v5-global--palette--black-150);
7947
7947
  --pf-v5-c-card--m-selectable--m-clickable--m-current--BorderColor: var(--pf-v5-global--active-color--100);
package/patternfly.css CHANGED
@@ -6939,9 +6939,6 @@ button) {
6939
6939
  --pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--300);
6940
6940
  }
6941
6941
 
6942
- :where(.pf-v5-theme-dark) .pf-v5-c-banner {
6943
- color: var(false);
6944
- }
6945
6942
  :where(.pf-v5-theme-dark) .pf-v5-c-banner.pf-m-blue, :where(.pf-v5-theme-dark) .pf-v5-c-banner.pf-m-red, :where(.pf-v5-theme-dark) .pf-v5-c-banner.pf-m-green, :where(.pf-v5-theme-dark) .pf-v5-c-banner.pf-m-gold {
6946
6943
  --pf-v5-c-banner--Color: var(--pf-v5-global--palette--black-900);
6947
6944
  }
@@ -7542,6 +7539,9 @@ button.pf-v5-c-breadcrumb__link {
7542
7539
  color: var(--pf-v5-c-button--m-plain--Color);
7543
7540
  background-color: var(--pf-v5-c-button--m-plain--BackgroundColor);
7544
7541
  }
7542
+ .pf-v5-c-button.pf-m-plain.pf-m-no-padding {
7543
+ padding: 0;
7544
+ }
7545
7545
  .pf-v5-c-button.pf-m-plain:hover {
7546
7546
  --pf-v5-c-button--m-plain--Color: var(--pf-v5-c-button--m-plain--hover--Color);
7547
7547
  --pf-v5-c-button--m-plain--BackgroundColor: var(--pf-v5-c-button--m-plain--hover--BackgroundColor);
@@ -7941,7 +7941,7 @@ button.pf-v5-c-breadcrumb__link {
7941
7941
  --pf-v5-c-card--m-selectable--m-disabled--BoxShadow: var(--pf-v5-global--BoxShadow--sm);
7942
7942
  --pf-v5-c-card--m-selectable--m-clickable--hover--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
7943
7943
  --pf-v5-c-card--m-selectable--m-clickable--hover--BoxShadow: var(--pf-v5-global--BoxShadow--sm);
7944
- --pf-v5-c-card--m-selectable--m-clickable--m-selected--BorderColor: var(--pf-v5-global--BorderColor--100);
7944
+ --pf-v5-c-card--m-selectable--m-clickable--m-selected--BorderColor: transparent;
7945
7945
  --pf-v5-c-card--m-selectable--m-clickable--m-selected--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
7946
7946
  --pf-v5-c-card--m-selectable--m-clickable--m-current--BackgroundColor: var(--pf-v5-global--palette--black-150);
7947
7947
  --pf-v5-c-card--m-selectable--m-clickable--m-current--BorderColor: var(--pf-v5-global--active-color--100);