mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
add a11y label to SyncStatusIndicator
This commit is contained in:
@@ -29,13 +29,21 @@ export default function SyncStatusIndicator({ status, title }) {
|
|||||||
|
|
||||||
if (status === 'syncing') {
|
if (status === 'syncing') {
|
||||||
return (
|
return (
|
||||||
<PulseWrapper>
|
<>
|
||||||
<CloudIcon color={`var(${color})`} title={title} />
|
<PulseWrapper aria-hidden="true">
|
||||||
</PulseWrapper>
|
<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 = {
|
SyncStatusIndicator.propTypes = {
|
||||||
status: oneOf(['success', 'error', 'disabled', 'syncing']).isRequired,
|
status: oneOf(['success', 'error', 'disabled', 'syncing']).isRequired,
|
||||||
|
|||||||
Reference in New Issue
Block a user