@patternfly/patternfly 5.0.0-alpha.61 → 5.0.0-alpha.63

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.
@@ -21,7 +21,7 @@
21
21
  --pf-v5-c-form-control--BorderLeftColor: var(--pf-v5-global--BorderColor--300);
22
22
  --pf-v5-c-form-control--BorderRadius: 0;
23
23
  --pf-v5-c-form-control--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
24
- --pf-v5-c-form-control--Width: auto;
24
+ --pf-v5-c-form-control--Width: 100%;
25
25
  --pf-v5-c-form-control--Height: calc(var(--pf-v5-c-form-control--FontSize) * var(--pf-v5-c-form-control--LineHeight) + var(--pf-v5-c-form-control--BorderWidth) * 2 + var(--pf-v5-c-form-control--PaddingTop) + var(--pf-v5-c-form-control--PaddingBottom));
26
26
  --pf-v5-c-form-control--inset--base: var(--pf-v5-global--spacer--sm);
27
27
  --pf-v5-c-form-control--PaddingTop: calc(var(--pf-v5-global--spacer--form-element) - var(--pf-v5-global--BorderWidth--sm));
@@ -12,7 +12,7 @@
12
12
  --#{$form-control}--BorderLeftColor: var(--#{$pf-global}--BorderColor--300);
13
13
  --#{$form-control}--BorderRadius: 0;
14
14
  --#{$form-control}--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
15
- --#{$form-control}--Width: auto;
15
+ --#{$form-control}--Width: 100%;
16
16
  --#{$form-control}--Height: calc(var(--#{$form-control}--FontSize) * var(--#{$form-control}--LineHeight) + var(--#{$form-control}--BorderWidth) * 2 + var(--#{$form-control}--PaddingTop) + var(--#{$form-control}--PaddingBottom)); // Needed for various browsers that compute height of form elements differently
17
17
 
18
18
  // padding
@@ -77,7 +77,7 @@ Banners can be styled with one of 5 different colors. A basic banner should only
77
77
 
78
78
  ### Status
79
79
 
80
- When a banner is used to convey status, it is advised to add an icon that also conveys status visually, and to provide screen reader text using `.pf-screen-reader` or an equivalent.
80
+ When a banner is used to convey status, it is advised to add an icon that also conveys status visually, and to provide screen reader text using `.pf-v5-screen-reader` or an equivalent.
81
81
 
82
82
  ```html
83
83
  <div class="pf-v5-c-banner">
@@ -1664,7 +1664,7 @@ cssPrefix: pf-v5-c-calendar-month
1664
1664
  | -- | -- | -- |
1665
1665
  | `aria-hidden="true"` | `.pf-v5-c-calendar-month__header-nav-control > button > [icon]` | Hides the nav control icon from assistive technologies. **Required** |
1666
1666
  | `aria-hidden="true"` | `.pf-v5-c-calendar-month__day > span` | Hides the visual day of the month label from assistive technologies. **Required** |
1667
- | `.pf-screen-reader` | `.pf-v5-c-calendar-month__day > span` | Hides the full day of the month text visually. **Required** |
1667
+ | `.pf-v5-screen-reader` | `.pf-v5-c-calendar-month__day > span` | Hides the full day of the month text visually. **Required** |
1668
1668
  | `aria-label="[Prev/Next] month"` | `.pf-v5-c-calendar-month__header-nav-control` | Provides an accessible label for the nav controls. **Required** |
1669
1669
  | `disabled` | `.pf-v5-c-calendar-month__date` | Indicates that a date is selected. **Required when the parent is `.pf-v5-c-calendar-month__dates-cell.pf-m-disabled`** |
1670
1670
  | `aria-label="[date] [month] [year]"` | `.pf-v5-c-calendar-month__date` | Provides an accessible label for the date button. **Required** |
@@ -608,7 +608,7 @@ cssPrefix: pf-v5-c-card
608
608
  <div class="pf-v5-c-card__selectable-actions">
609
609
  <div class="pf-v5-c-radio pf-m-standalone">
610
610
  <input
611
- class="pf-v5-c-radio__input {{pfv &#x27;unset-prefix&#x27;}}screen-reader"
611
+ class="pf-v5-c-radio__input pf-v5-screen-reader"
612
612
  type="radio"
613
613
  id="card-clickable-example-sr-only-radio"
614
614
  name="card-clickable-example-sr-only-radio"
@@ -643,7 +643,7 @@ cssPrefix: pf-v5-c-card
643
643
  <div class="pf-v5-c-card__selectable-actions">
644
644
  <div class="pf-v5-c-radio pf-m-standalone">
645
645
  <input
646
- class="pf-v5-c-radio__input {{pfv &#x27;unset-prefix&#x27;}}screen-reader"
646
+ class="pf-v5-c-radio__input pf-v5-screen-reader"
647
647
  type="radio"
648
648
  id="card-clickable-example-disabled-sr-only-radio"
649
649
  name="card-clickable-example-disabled-sr-only-radio"
@@ -682,7 +682,7 @@ cssPrefix: pf-v5-c-card
682
682
  <div class="pf-v5-c-card__selectable-actions">
683
683
  <div class="pf-v5-c-radio pf-m-standalone">
684
684
  <input
685
- class="pf-v5-c-radio__input {{pfv &#x27;unset-prefix&#x27;}}screen-reader"
685
+ class="pf-v5-c-radio__input pf-v5-screen-reader"
686
686
  type="radio"
687
687
  id="card-clickable-example-selected-disabled-sr-only-radio"
688
688
  name="card-clickable-example-selected-disabled-sr-only-radio"
@@ -282,7 +282,7 @@ Use the input group to extend form controls by adding text, buttons, selects, et
282
282
 
283
283
  ### Accessibility
284
284
 
285
- When using the `.pf-v5-c-input-group` always ensure labels are used outside the input group with the `.pf-screen-reader` class applied. You can also make use of the `aria-describedby`, `aria-label`, or `aria-labelledby` attributes. For more information on accessibility and forms see the [form component](/components/form).
285
+ When using the `.pf-v5-c-input-group` always ensure labels are used outside the input group with the `.pf-v5-screen-reader` class applied. You can also make use of the `aria-describedby`, `aria-label`, or `aria-labelledby` attributes. For more information on accessibility and forms see the [form component](/components/form).
286
286
 
287
287
  | Attribute | Applied to | Outcome |
288
288
  | -- | -- | -- |
@@ -653,7 +653,7 @@ A popover is used to provide contextual information for another component on cli
653
653
  | `aria-modal="true"` | `.pf-v5-c-popover` | Tells assistive technologies that the windows underneath the current popover are not available for interaction. **Required**|
654
654
  | `aria-label="Close"` | `.pf-v5-c-button` | Provides an accessible name for the close button as it uses an icon instead of text. **Required**|
655
655
  | `aria-hidden="true"` | Parent element containing the page contents when the popover is open. | Hides main contents of the page from screen readers. The element with `.pf-v5-c-popover` must not be a descendent of the element with `aria-hidden="true"`. For more info, see [trapping focus](/accessibility/product-development-guide#trapping-focus). **Required** |
656
- | `.pf-screen-reader` | `.pf-v5-c-popover__title-text <span>` | Adds text to be read saying the alert status before the title. If `.pf-v5-c-popover__title-text` is not used to create a title, this must be added within the title. **Required for popovers that are alerts** |
656
+ | `.pf-v5-screen-reader` | `.pf-v5-c-popover__title-text <span>` | Adds text to be read saying the alert status before the title. If `.pf-v5-c-popover__title-text` is not used to create a title, this must be added within the title. **Required for popovers that are alerts** |
657
657
 
658
658
  ### Usage
659
659
 
@@ -414,7 +414,7 @@ cssPrefix: pf-v5-c-slider
414
414
  <div class="pf-v5-c-slider__value pf-m-floating">
415
415
  <div class="pf-v5-c-input-group">
416
416
  <div class="pf-v5-c-input-group__item pf-m-fill">
417
- <div class="pf-v5-c-form-control">
417
+ <div class="pf-v5-c-form-control pf-m-disabled">
418
418
  <input
419
419
  disabled
420
420
  type="number"
@@ -615,7 +615,7 @@ cssPrefix: pf-v5-c-slider
615
615
  <div class="pf-v5-c-slider__value">
616
616
  <div class="pf-v5-c-input-group">
617
617
  <div class="pf-v5-c-input-group__item pf-m-fill">
618
- <div class="pf-v5-c-form-control">
618
+ <div class="pf-v5-c-form-control pf-m-disabled">
619
619
  <input
620
620
  disabled
621
621
  type="number"
@@ -18,7 +18,7 @@ Content available only to screen reader, open inspector to investigate
18
18
  ```html
19
19
  <span
20
20
  class="pf-v5-u-visible"
21
- >This unsets .pf-v5-u-screen-reader and .pf-screen-reader. It will be visible.</span>
21
+ >This unsets .pf-v5-u-screen-reader and .pf-v5-screen-reader. It will be visible.</span>
22
22
 
23
23
  ```
24
24
 
@@ -41,4 +41,4 @@ The text underneath is hidden.
41
41
  | Class | Applied to | Outcome |
42
42
  | -- | -- | -- |
43
43
  | `.pf-v5-u-screen-reader{-on-[breakpoint]}` | `*` | Visually hides element, but leaves accessible to assistive technologies |
44
- | `.pf-v5-u-visible{-on-[breakpoint]}` | `*` | Unsets `.pf-v5-u-screen-reader` and `.pf-screen-reader` |
44
+ | `.pf-v5-u-visible{-on-[breakpoint]}` | `*` | Unsets `.pf-v5-u-screen-reader` and `.pf-v5-screen-reader` |
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-alpha.61",
4
+ "version": "5.0.0-alpha.63",
5
5
  "keywords": [],
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -14750,7 +14750,7 @@ label.pf-v5-c-check, .pf-v5-c-check__label,
14750
14750
  --pf-v5-c-form-control--BorderLeftColor: var(--pf-v5-global--BorderColor--300);
14751
14751
  --pf-v5-c-form-control--BorderRadius: 0;
14752
14752
  --pf-v5-c-form-control--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
14753
- --pf-v5-c-form-control--Width: auto;
14753
+ --pf-v5-c-form-control--Width: 100%;
14754
14754
  --pf-v5-c-form-control--Height: calc(var(--pf-v5-c-form-control--FontSize) * var(--pf-v5-c-form-control--LineHeight) + var(--pf-v5-c-form-control--BorderWidth) * 2 + var(--pf-v5-c-form-control--PaddingTop) + var(--pf-v5-c-form-control--PaddingBottom));
14755
14755
  --pf-v5-c-form-control--inset--base: var(--pf-v5-global--spacer--sm);
14756
14756
  --pf-v5-c-form-control--PaddingTop: calc(var(--pf-v5-global--spacer--form-element) - var(--pf-v5-global--BorderWidth--sm));
package/patternfly.css CHANGED
@@ -14867,7 +14867,7 @@ label.pf-v5-c-check, .pf-v5-c-check__label,
14867
14867
  --pf-v5-c-form-control--BorderLeftColor: var(--pf-v5-global--BorderColor--300);
14868
14868
  --pf-v5-c-form-control--BorderRadius: 0;
14869
14869
  --pf-v5-c-form-control--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
14870
- --pf-v5-c-form-control--Width: auto;
14870
+ --pf-v5-c-form-control--Width: 100%;
14871
14871
  --pf-v5-c-form-control--Height: calc(var(--pf-v5-c-form-control--FontSize) * var(--pf-v5-c-form-control--LineHeight) + var(--pf-v5-c-form-control--BorderWidth) * 2 + var(--pf-v5-c-form-control--PaddingTop) + var(--pf-v5-c-form-control--PaddingBottom));
14872
14872
  --pf-v5-c-form-control--inset--base: var(--pf-v5-global--spacer--sm);
14873
14873
  --pf-v5-c-form-control--PaddingTop: calc(var(--pf-v5-global--spacer--form-element) - var(--pf-v5-global--BorderWidth--sm));