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:
parent
04731b4e60
commit
460f9e7329
2 changed files with 6 additions and 1 deletions
5
.changeset/tidy-buses-mate.md
Normal file
5
.changeset/tidy-buses-mate.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@astrojs/image": patch
|
||||
---
|
||||
|
||||
Fix duplicate `alt` attribute on Picture component.
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue