Skip to content

Commit

Permalink
add alt text to images
Browse files Browse the repository at this point in the history
  • Loading branch information
DrewMcArthur committed Feb 2, 2024
1 parent 6692761 commit 9292132
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/SimpleIcon.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ const { name } = Astro.props;

<img
class={`social-icon ${name}`}
alt={`${name}-icon`}
height="32"
width="32"
{/* TODO: remove condition once #8856 is merged in simple-icons */}
src={name === "bluesky"
? "https://raw.githubusercontent.com/simple-icons/simple-icons/29300bc89dfc8e652020338ad3a399fdfb9019fd/icons/bluesky.svg"
: `https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/${name}.svg`}
/>
src={`https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/${name}.svg`}
/>

0 comments on commit 9292132

Please sign in to comment.