@patternfly/patternfly 5.0.0-alpha.62 → 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.
- package/docs/components/Banner/examples/Banner.md +1 -1
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +1 -1
- package/docs/components/Card/examples/Card.md +3 -3
- package/docs/components/InputGroup/examples/InputGroup.md +1 -1
- package/docs/components/Popover/examples/Popover.md +1 -1
- package/docs/utilities/Accessibility/examples/Accessibility.md +2 -2
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
|
@@ -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` |
|