Fix duplicate alt attribute on Picture component. (#6157)

* Fix duplicate alt attribute on Picture component.

* Create tidy-buses-mate.md

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
This commit is contained in:
Charles F. Munat 2023-02-07 15:25:17 +13:00 committed by GitHub
parent 04731b4e60
commit 460f9e7329
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"@astrojs/image": patch
---
Fix duplicate `alt` attribute on Picture component.

View file

@ -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>