Skip to content

Commit 65c2943

Browse files
authored
Merge pull request #459 from mashmatrix/support-slds-2-spinner
Update `Spinner` for SLDS2
2 parents 62f9b43 + 3169727 commit 65c2943

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/scripts/Spinner.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,8 @@ export const Spinner: FC<SpinnerProps> = (props) => {
3030
type ? `slds-spinner_${type}` : null
3131
);
3232
const spinner = (
33-
<div
34-
className={spinnerClassNames}
35-
aria-hidden='false'
36-
role='alert'
37-
{...rprops}
38-
>
33+
<div className={spinnerClassNames} role='status' {...rprops}>
34+
<span className='slds-assistive-text'>Loading</span>
3935
<div className='slds-spinner__dot-a' />
4036
<div className='slds-spinner__dot-b' />
4137
</div>

0 commit comments

Comments
 (0)