Skip to content

Commit

Permalink
Cleanup alt attributes on images (#19000)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Roes authored Nov 7, 2022
1 parent 41a12f6 commit 91bb1bf
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 19 deletions.
2 changes: 1 addition & 1 deletion airbyte-webapp/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</head>
<body>
<noscript>
<img src="%PUBLIC_URL%/logo.png" alt="logo" width="90" height="94"/>
<img src="%PUBLIC_URL%/logo.png" alt="" width="90" height="94"/>
<div class="card">
You need to enable JavaScript to run this app.
</div>
Expand Down
2 changes: 1 addition & 1 deletion airbyte-webapp/src/components/Placeholder/Placeholder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Img = styled.img<PlaceholderProps>`
`;

const Placeholder: React.FC<PlaceholderProps> = ({ resource }) => {
return <Img src={`/empty-${resource}.png`} alt="placeholder" resource={resource} />;
return <Img src={`/empty-${resource}.png`} alt="" resource={resource} />;
};

export default Placeholder;
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface EmptyResourceBlockProps {
export const EmptyResourceBlock: React.FC<EmptyResourceBlockProps> = ({ text, description }) => (
<div className={styles.content}>
<div className={styles.imgBlock}>
<img src="/cactus.png" height={40} alt="cactus" />
<img src="/cactus.png" height={40} alt="" />
</div>
{text}
<div className={styles.description}>{description}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const WorkspacesPage: React.FC = () => {

return (
<div className={styles.container}>
<img className={styles.logo} alt="logo" src="/cloud-main-logo.svg" width={186} />
<img className={styles.logo} alt="" src="/cloud-main-logo.svg" width={186} />
<Heading as="h1" size="lg" centered>
<FormattedMessage id="workspaces.title" />
</Heading>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const LetterLine: React.FC<LetterLineProps> = ({ onRight, exit }) => {
return (
<Line $onRight={onRight}>
<Path exit={exit} />
<Img src="/newsletter.png" alt="newsletter" width={78} height={68} exit={exit} />
<Img src="/newsletter.png" alt="" width={78} height={68} exit={exit} />
</Line>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,7 @@ export const WebHookForm: React.FC<WebHookFormProps> = ({ webhook }) => {
</a>
</li>
</ul>
<img
className={styles.webhookGuideImg}
alt={formatMessage({
id: "settings.notificationGuide.button",
})}
src={help}
/>
<img className={styles.webhookGuideImg} alt="" src={help} />
</div>
<Row className={styles.webhookUrlLabelRow}>
<Cell className={styles.webhookUrlLabelCell}>
Expand All @@ -180,13 +174,7 @@ export const WebHookForm: React.FC<WebHookFormProps> = ({ webhook }) => {
>
<FormattedMessage id="settings.notificationGuide.button" />
</Button>
<img
className={styles.webhookGuideButtonImg}
alt={formatMessage({
id: "settings.notificationGuide.button",
})}
src={help}
/>
<img className={styles.webhookGuideButtonImg} alt="" src={help} />
</>
)}
</Cell>
Expand Down

0 comments on commit 91bb1bf

Please sign in to comment.