You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: elements/pf-v6-badge/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ A badge is used to annotate other information like a label or an object name.
28
28
29
29
| React prop | Notes |
30
30
| --- | --- |
31
-
|`screenReaderText`|No built-in screen reader text span. Authors should provide their own visually-hidden text adjacent to the badge. |
31
+
|`screenReaderText`|Authors slot visually-hidden text alongside the badge content for screen reader context, e.g. `<pf-v6-badge>3 <span class="pf-v6-screen-reader">unread messages</span></pf-v6-badge>`. |
returnhtml`${!displayText ? html`<!-- Badge content, typically a number or short text --><slot></slot>` : displayText}`;
47
+
returnhtml`${!displayText ? html`<!-- Badge content, typically a number or short text with visually-hidden screen reader support text --><slot></slot>` : displayText}`;
0 commit comments