summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Simon He <57086651+Simon-He95@users.noreply.github.com> 2024-02-06 17:28:15 +0800
committerGravatar GitHub <noreply@github.com> 2024-02-06 17:28:15 +0800
commit6e30bef652b23c5ae2e097f003bcc9f7a4f1e5c3 (patch)
tree853085c8738592aef850fb20bb2c4233b8f28134
parent44c72a4f6f14bd6f02ba4904dff016a59a307dee (diff)
downloadastro-6e30bef652b23c5ae2e097f003bcc9f7a4f1e5c3.tar.gz
astro-6e30bef652b23c5ae2e097f003bcc9f7a4f1e5c3.tar.zst
astro-6e30bef652b23c5ae2e097f003bcc9f7a4f1e5c3.zip
chore: typo (#9988)
-rw-r--r--packages/astro/components/Picture.astro6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/astro/components/Picture.astro b/packages/astro/components/Picture.astro
index f42846f18..adfc0fcab 100644
--- a/packages/astro/components/Picture.astro
+++ b/packages/astro/components/Picture.astro
@@ -51,11 +51,11 @@ const fallbackImage = await getImage({
});
const imgAdditionalAttributes: HTMLAttributes<'img'> = {};
-const sourceAdditionaAttributes: HTMLAttributes<'source'> = {};
+const sourceAdditionalAttributes: HTMLAttributes<'source'> = {};
// Propagate the `sizes` attribute to the `source` elements
if (props.sizes) {
- sourceAdditionaAttributes.sizes = props.sizes;
+ sourceAdditionalAttributes.sizes = props.sizes;
}
if (fallbackImage.srcSet.values.length > 0) {
@@ -74,7 +74,7 @@ if (fallbackImage.srcSet.values.length > 0) {
<source
srcset={srcsetAttribute}
type={'image/' + image.options.format}
- {...sourceAdditionaAttributes}
+ {...sourceAdditionalAttributes}
/>
);
})