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
* updates Spinner to accept screen reader text
* restricts props, updates prop docs
deprecates aria-label prop
* adds stories and tests
* adds changeset
* updates prop docs
* fixes visual regressions
* improve Storybook examples for announcing compoleted loading
* uses live regions, adapts SelectPanel.Loading
* attempt to resolve circular dependency
* updates Spinner example stories to use live-region-element via Status component
* updates Spinner example stories to use live-region-element via Status component
* removes live region
* updates Storybook imports
Copy file name to clipboardExpand all lines: packages/react/src/Spinner/Spinner.docs.json
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,26 @@
10
10
"name": "size",
11
11
"type": "'small' | 'medium' | 'large'",
12
12
"description": "Sets the width and height of the spinner."
13
+
},
14
+
{
15
+
"name": "srText",
16
+
"type": "string | null",
17
+
"defaultValue": "Loading",
18
+
"description": "Sets the text conveyed by assistive technologies such as screen readers. Set to `null` if the loading state is displayed in a text node somewhere else on the page."
19
+
},
20
+
{
21
+
"name": "aria-label",
22
+
"type": "string | null",
23
+
"description": "Sets the text conveyed by assistive technologies such as screen readers.",
/** Sets the text conveyed by assistive technologies such as screen readers. Set to `null` if the loading state is displayed in a text node somewhere else on the page. */
0 commit comments