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

View File

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

View File

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