<a>
child
</a>
- <i
- aria-live="polite"
- class="deferred-spinner a11y-hidden"
- data-testid="deferred-spinner"
- />
+ <div
+ class="sw-overflow-hidden"
+ >
+ <i
+ aria-live="polite"
+ class="deferred-spinner a11y-hidden"
+ data-testid="deferred-spinner"
+ />
+ </div>
<i
class="icon-checkbox icon-checkbox-checked"
/>
return (
<>
- <i
- aria-live="polite"
- data-testid="deferred-spinner"
- className={classNames('deferred-spinner', className, {
- 'a11y-hidden': !showSpinner,
- 'is-loading': showSpinner,
- })}
- >
- {showSpinner && <span className="a11y-hidden">{ariaLabel}</span>}
- </i>
+ <div className="sw-overflow-hidden">
+ <i
+ aria-live="polite"
+ data-testid="deferred-spinner"
+ className={classNames('deferred-spinner', className, {
+ 'a11y-hidden': !showSpinner,
+ 'is-loading': showSpinner,
+ })}
+ >
+ {showSpinner && <span className="a11y-hidden">{ariaLabel}</span>}
+ </i>
+ </div>
{!showSpinner && children}
</>
);