return (
<>
- <div className="sw-overflow-hidden">
- <StyledSpinner
- aria-live="polite"
- className={classNames(className, { 'a11y-hidden': !loading })}
- role="status"
- >
+ <div className={classNames('sw-overflow-hidden', { 'a11y-hidden': !loading })}>
+ <StyledSpinner aria-live="polite" className={className} role="status">
{loading && <span className="a11y-hidden">{ariaLabel}</span>}
</StyledSpinner>
</div>
class="emotion-0 emotion-1"
>
<div
- class="sw-overflow-hidden"
+ class="sw-overflow-hidden a11y-hidden"
>
<div
aria-live="polite"
- class="a11y-hidden emotion-2 emotion-3"
+ class="emotion-2 emotion-3"
role="status"
/>
</div>
class="emotion-0 emotion-1"
>
<div
- class="sw-overflow-hidden"
+ class="sw-overflow-hidden a11y-hidden"
>
<div
aria-live="polite"
- class="a11y-hidden emotion-2 emotion-3"
+ class="emotion-2 emotion-3"
role="status"
/>
</div>