@patternfly/patternfly 4.218.0 → 4.219.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.
@@ -9,6 +9,7 @@
9
9
  --pf-c-progress__bar--before--Opacity: .2;
10
10
  --pf-c-progress__indicator--Height: var(--pf-c-progress__bar--Height);
11
11
  --pf-c-progress__indicator--BackgroundColor: var(--pf-c-progress__bar--before--BackgroundColor);
12
+ --pf-c-progress__helper-text--MarginTop: calc(var(--pf-global--spacer--xs) - var(--pf-c-progress--GridGap));
12
13
  --pf-c-progress--m-success__bar--BackgroundColor: var(--pf-global--success-color--100);
13
14
  --pf-c-progress--m-warning__bar--BackgroundColor: var(--pf-global--warning-color--100);
14
15
  --pf-c-progress--m-danger__bar--BackgroundColor: var(--pf-global--danger-color--100);
@@ -156,6 +157,12 @@
156
157
  background-color: var(--pf-c-progress__indicator--BackgroundColor);
157
158
  }
158
159
 
160
+ .pf-c-progress__helper-text {
161
+ grid-column: 1/3;
162
+ grid-row: 3/4;
163
+ margin-top: var(--pf-c-progress__helper-text--MarginTop);
164
+ }
165
+
159
166
  :where(.pf-theme-dark) .pf-c-progress {
160
167
  --pf-c-progress--m-inside__measure--Color: var(--pf-global--palette--black-900);
161
168
  --pf-c-progress--m-success--m-inside__measure--Color: var(--pf-global--palette--black-900);
@@ -12,6 +12,7 @@
12
12
  --pf-c-progress__bar--before--Opacity: .2; // one-off change in opacity to allow progress bar to automatically coordinate with the indicator color
13
13
  --pf-c-progress__indicator--Height: var(--pf-c-progress__bar--Height);
14
14
  --pf-c-progress__indicator--BackgroundColor: var(--pf-c-progress__bar--before--BackgroundColor);
15
+ --pf-c-progress__helper-text--MarginTop: calc(var(--pf-global--spacer--xs) - var(--pf-c-progress--GridGap));
15
16
 
16
17
  // Modifier variables
17
18
  --pf-c-progress--m-success__bar--BackgroundColor: var(--pf-global--success-color--100);
@@ -201,6 +202,12 @@
201
202
  background-color: var(--pf-c-progress__indicator--BackgroundColor);
202
203
  }
203
204
 
205
+ .pf-c-progress__helper-text {
206
+ grid-column: 1 / 3;
207
+ grid-row: 3 / 4;
208
+ margin-top: var(--pf-c-progress__helper-text--MarginTop);
209
+ }
210
+
204
211
  // stylelint-disable no-invalid-position-at-import-rule
205
212
  @import "themes/dark/progress";
206
213
 
@@ -586,6 +586,38 @@ cssPrefix: pf-c-progress
586
586
 
587
587
  ```
588
588
 
589
+ ### Helper text
590
+
591
+ ```html
592
+ <div class="pf-c-progress" id="progress-helper-text-example">
593
+ <div
594
+ class="pf-c-progress__description"
595
+ id="progress-helper-text-example-description"
596
+ >Title</div>
597
+ <div class="pf-c-progress__status" aria-hidden="true">
598
+ <span class="pf-c-progress__measure">33%</span>
599
+ </div>
600
+ <div
601
+ class="pf-c-progress__bar"
602
+ role="progressbar"
603
+ aria-valuemin="0"
604
+ aria-valuemax="100"
605
+ aria-valuenow="33"
606
+ aria-labelledby="progress-helper-text-example-description"
607
+ >
608
+ <div class="pf-c-progress__indicator" style="width:33%;"></div>
609
+ </div>
610
+ <div class="pf-c-progress__helper-text">
611
+ <div class="pf-c-helper-text">
612
+ <div class="pf-c-helper-text__item">
613
+ <span class="pf-c-helper-text__item-text">Progress helper text</span>
614
+ </div>
615
+ </div>
616
+ </div>
617
+ </div>
618
+
619
+ ```
620
+
589
621
  ### Non-percantage progress
590
622
 
591
623
  If the status that displays with the bar is not a percentage, then the ARIA tag `aria-valuetext` should be used to provide this status to screen reader users. This is the only case when setting the `aria-valuemax` to a value other than "100" is recommended, given how different screen readers handle these attributes.
@@ -647,6 +679,7 @@ If this component is describing the loading progress of a particular region of a
647
679
  | `.pf-c-progress__status-icon` | `<span>` | Displays the status icon. (optional) |
648
680
  | `.pf-c-progress__bar` | `<div>` | Displays across the entire width and represents the completed state. |
649
681
  | `.pf-c-progress__indicator` | `<div>` | Displays with the `.pf-c-progress__bar` to indicate the progress so far. |
682
+ | `.pf-c-progress__helper-text` | `<div>` | Displays additional text below the progress bar. (optional) |
650
683
  | `.pf-m-lg` | `.pf-c-progress` | Modifies the progress bar to be larger. |
651
684
  | `.pf-m-sm` | `.pf-c-progress` | Modifies the progress bar to be smaller. |
652
685
  | `.pf-m-inside` | `.pf-c-progress` | Shows the measure within the progress indicator. NOTE: This option requires `.pf-m-lg`. |
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": "4.218.0",
4
+ "version": "4.219.0",
5
5
  "keywords": [],
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -23268,6 +23268,7 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
23268
23268
  --pf-c-progress__bar--before--Opacity: .2;
23269
23269
  --pf-c-progress__indicator--Height: var(--pf-c-progress__bar--Height);
23270
23270
  --pf-c-progress__indicator--BackgroundColor: var(--pf-c-progress__bar--before--BackgroundColor);
23271
+ --pf-c-progress__helper-text--MarginTop: calc(var(--pf-global--spacer--xs) - var(--pf-c-progress--GridGap));
23271
23272
  --pf-c-progress--m-success__bar--BackgroundColor: var(--pf-global--success-color--100);
23272
23273
  --pf-c-progress--m-warning__bar--BackgroundColor: var(--pf-global--warning-color--100);
23273
23274
  --pf-c-progress--m-danger__bar--BackgroundColor: var(--pf-global--danger-color--100);
@@ -23415,6 +23416,12 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
23415
23416
  background-color: var(--pf-c-progress__indicator--BackgroundColor);
23416
23417
  }
23417
23418
 
23419
+ .pf-c-progress__helper-text {
23420
+ grid-column: 1/3;
23421
+ grid-row: 3/4;
23422
+ margin-top: var(--pf-c-progress__helper-text--MarginTop);
23423
+ }
23424
+
23418
23425
  :where(.pf-theme-dark) .pf-c-wizard__header, :where(.pf-theme-dark) .pf-c-about-modal-box, :where(.pf-theme-dark) .pf-c-banner, :where(.pf-theme-dark) .pf-c-log-viewer.pf-m-dark .pf-c-log-viewer__main, :where(.pf-theme-dark) .pf-c-login__header,
23419
23426
  :where(.pf-theme-dark) .pf-c-login__footer, :where(.pf-theme-dark) .pf-c-masthead, :where(.pf-theme-dark) .pf-c-page__sidebar-body.pf-m-menu .pf-c-context-selector,
23420
23427
  :where(.pf-theme-dark) .pf-c-page__main-section[class*=pf-m-dark-],
package/patternfly.css CHANGED
@@ -23395,6 +23395,7 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
23395
23395
  --pf-c-progress__bar--before--Opacity: .2;
23396
23396
  --pf-c-progress__indicator--Height: var(--pf-c-progress__bar--Height);
23397
23397
  --pf-c-progress__indicator--BackgroundColor: var(--pf-c-progress__bar--before--BackgroundColor);
23398
+ --pf-c-progress__helper-text--MarginTop: calc(var(--pf-global--spacer--xs) - var(--pf-c-progress--GridGap));
23398
23399
  --pf-c-progress--m-success__bar--BackgroundColor: var(--pf-global--success-color--100);
23399
23400
  --pf-c-progress--m-warning__bar--BackgroundColor: var(--pf-global--warning-color--100);
23400
23401
  --pf-c-progress--m-danger__bar--BackgroundColor: var(--pf-global--danger-color--100);
@@ -23542,6 +23543,12 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
23542
23543
  background-color: var(--pf-c-progress__indicator--BackgroundColor);
23543
23544
  }
23544
23545
 
23546
+ .pf-c-progress__helper-text {
23547
+ grid-column: 1/3;
23548
+ grid-row: 3/4;
23549
+ margin-top: var(--pf-c-progress__helper-text--MarginTop);
23550
+ }
23551
+
23545
23552
  :where(.pf-theme-dark) .pf-c-wizard__header, :where(.pf-theme-dark) .pf-c-about-modal-box, :where(.pf-theme-dark) .pf-c-banner, :where(.pf-theme-dark) .pf-c-log-viewer.pf-m-dark .pf-c-log-viewer__main, :where(.pf-theme-dark) .pf-c-login__header,
23546
23553
  :where(.pf-theme-dark) .pf-c-login__footer, :where(.pf-theme-dark) .pf-c-masthead, :where(.pf-theme-dark) .pf-c-page__sidebar-body.pf-m-menu .pf-c-context-selector,
23547
23554
  :where(.pf-theme-dark) .pf-c-page__main-section[class*=pf-m-dark-],