diff options
author | 2023-02-07 15:25:17 +1300 | |
---|---|---|
committer | 2023-02-06 20:25:17 -0600 | |
commit | 460f9e7329482429172883e99dcee95a3a9fb1a5 (patch) | |
tree | 0240a276375dee6d2fac80a2b24bec83350a7446 | |
parent | 04731b4e60e1068faaf12d92634aae148d8c8cd2 (diff) | |
download | astro-460f9e7329482429172883e99dcee95a3a9fb1a5.tar.gz astro-460f9e7329482429172883e99dcee95a3a9fb1a5.tar.zst astro-460f9e7329482429172883e99dcee95a3a9fb1a5.zip |
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>
-rw-r--r-- | .changeset/tidy-buses-mate.md | 5 | ||||
-rw-r--r-- | packages/integrations/image/components/Picture.astro | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/tidy-buses-mate.md b/.changeset/tidy-buses-mate.md new file mode 100644 index 000000000..af4460b99 --- /dev/null +++ b/.changeset/tidy-buses-mate.md @@ -0,0 +1,5 @@ +--- +"@astrojs/image": patch +--- + +Fix duplicate `alt` attribute on Picture component. diff --git a/packages/integrations/image/components/Picture.astro b/packages/integrations/image/components/Picture.astro index f099eae23..f8958f8fe 100644 --- a/packages/integrations/image/components/Picture.astro +++ b/packages/integrations/image/components/Picture.astro @@ -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> |