1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-14 00:19:16 +01:00

refactor: improve image labels (#885)

This commit is contained in:
olav 2022-04-20 12:17:24 +02:00 committed by GitHub
parent 9bb0ce8cad
commit 787494fd80
3 changed files with 9 additions and 13 deletions

View File

@ -25,7 +25,7 @@ const getAddonIcon = (name: string): ReactElement => {
return (
<img
style={style}
alt="Slack Logo"
alt="Slack logo"
src={formatAssetPath(slackIcon)}
/>
);
@ -33,7 +33,7 @@ const getAddonIcon = (name: string): ReactElement => {
return (
<img
style={style}
alt="JIRA Logo"
alt="JIRA logo"
src={formatAssetPath(jiraIcon)}
/>
);
@ -49,7 +49,7 @@ const getAddonIcon = (name: string): ReactElement => {
return (
<img
style={style}
alt="Microsoft Teams Logo"
alt="Microsoft Teams logo"
src={formatAssetPath(teamsIcon)}
/>
);
@ -57,7 +57,7 @@ const getAddonIcon = (name: string): ReactElement => {
return (
<img
style={style}
alt="Datadog"
alt="Datadog logo"
src={formatAssetPath(dataDogIcon)}
/>
);

View File

@ -6,12 +6,8 @@ const Loader = () => {
const styles = useStyles();
return (
<div className={styles.loader}>
<img
className={styles.img}
src={formatAssetPath(logo)}
alt="loading..."
/>
<div className={styles.loader} role="alert" aria-label="Loading">
<img className={styles.img} src={formatAssetPath(logo)} alt="" />
</div>
);
};

View File

@ -70,7 +70,7 @@ const FeatureOverviewTags: React.FC<IFeatureOverviewTagsProps> = ({
return (
<img
style={style}
alt="slack"
alt="Slack"
src={formatAssetPath(slackIcon)}
/>
);
@ -78,7 +78,7 @@ const FeatureOverviewTags: React.FC<IFeatureOverviewTagsProps> = ({
return (
<img
style={style}
alt="jira"
alt="JIRA"
src={formatAssetPath(jiraIcon)}
/>
);
@ -86,7 +86,7 @@ const FeatureOverviewTags: React.FC<IFeatureOverviewTagsProps> = ({
return (
<img
style={style}
alt="webhook"
alt="Webhook"
src={formatAssetPath(webhookIcon)}
/>
);