mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
add a11y label to SyncStatusIndicator
This commit is contained in:
parent
c75c6ae03d
commit
e204325d1d
@ -29,13 +29,21 @@ export default function SyncStatusIndicator({ status, title }) {
|
||||
|
||||
if (status === 'syncing') {
|
||||
return (
|
||||
<PulseWrapper>
|
||||
<CloudIcon color={`var(${color})`} title={title} />
|
||||
</PulseWrapper>
|
||||
<>
|
||||
<PulseWrapper aria-hidden="true">
|
||||
<CloudIcon color={`var(${color})`} title={title} />
|
||||
</PulseWrapper>
|
||||
<span className="pf-screen-reader">{status}</span>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
return <CloudIcon color={`var(${color})`} title={title} />;
|
||||
return (
|
||||
<>
|
||||
<CloudIcon color={`var(${color})`} title={title} aria-hidden="true" />
|
||||
<span className="pf-screen-reader">{status}</span>
|
||||
</>
|
||||
);
|
||||
}
|
||||
SyncStatusIndicator.propTypes = {
|
||||
status: oneOf(['success', 'error', 'disabled', 'syncing']).isRequired,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user