Skip to content

Commit d4c3346

Browse files
authored
Pickers: Spinner has aria label properly applied (#21923)
* picker spinners have aria label properly applied * Change files
1 parent c430be5 commit d4c3346

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "picker spinners have aria label properly applied",
4+
"packageName": "@fluentui/react",
5+
"email": "mgodbolt@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}

packages/react/src/components/pickers/Suggestions/Suggestions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class Suggestions<T> extends React.Component<ISuggestionsProps<T>, ISugge
196196
{forceResolveText}
197197
</CommandButton>
198198
)}
199-
{isLoading && <Spinner {...spinnerClassNameOrStyles} label={loadingText} />}
199+
{isLoading && <Spinner {...spinnerClassNameOrStyles} ariaLabel={loadingText} label={loadingText} />}
200200
{hasNoSuggestions ? noResults() : this._renderSuggestions()}
201201
{searchForMoreText && moreSuggestionsAvailable && (
202202
<CommandButton
@@ -211,7 +211,7 @@ export class Suggestions<T> extends React.Component<ISuggestionsProps<T>, ISugge
211211
{searchForMoreText}
212212
</CommandButton>
213213
)}
214-
{isSearching ? <Spinner {...spinnerClassNameOrStyles} label={searchingText} /> : null}
214+
{isSearching ? <Spinner {...spinnerClassNameOrStyles} ariaLabel={searchingText} label={searchingText} /> : null}
215215
{footerTitle && !moreSuggestionsAvailable && !isMostRecentlyUsedVisible && !isSearching ? (
216216
<div className={this._classNames.title}>{footerTitle(this.props)}</div>
217217
) : null}

0 commit comments

Comments
 (0)