Skip to content

Commit

Permalink
Fix duplicate alt attribute on Picture component. (#6157)
Browse files Browse the repository at this point in the history
* Fix duplicate alt attribute on Picture component.

* Create tidy-buses-mate.md

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
  • Loading branch information
chasm and natemoo-re authored Feb 7, 2023
1 parent 04731b4 commit 460f9e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tidy-buses-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrojs/image": patch
---

Fix duplicate `alt` attribute on Picture component.
2 changes: 1 addition & 1 deletion packages/integrations/image/components/Picture.astro
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ delete image.height;

<picture>
{sources.map((attrs) => <source {...attrs} {sizes} />)}
<img {...image} {loading} {decoding} {alt} {...attrs} />
<img {...image} {loading} {decoding} {...attrs} />
</picture>

0 comments on commit 460f9e7

Please sign in to comment.