From 8e90da3bf2da059080613197e393b8f85cdbdf92 Mon Sep 17 00:00:00 2001 From: Princesseuh Date: Tue, 26 Apr 2022 11:02:17 -0400 Subject: [PATCH 1/2] Add Astro attributes to svg elements --- packages/astro/astro-jsx.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/astro/astro-jsx.d.ts b/packages/astro/astro-jsx.d.ts index 02dc9a11e876..c9cfd9e17b07 100644 --- a/packages/astro/astro-jsx.d.ts +++ b/packages/astro/astro-jsx.d.ts @@ -621,7 +621,10 @@ declare namespace astroHTML.JSX { // - "number | string" // - "string" // - union of string literals - interface SVGAttributes extends AriaAttributes, DOMAttributes { + interface SVGAttributes + extends AriaAttributes, + DOMAttributes, + AstroBuiltinAttributes { // Attributes which also defined in HTMLAttributes className?: string | undefined | null; class?: string | undefined | null; From dbb15f6d4bdfa1d1f9581e9615344fc5de95eb76 Mon Sep 17 00:00:00 2001 From: Princesseuh Date: Tue, 26 Apr 2022 11:21:54 -0400 Subject: [PATCH 2/2] Add changeset --- .changeset/metal-doors-rhyme.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/metal-doors-rhyme.md diff --git a/.changeset/metal-doors-rhyme.md b/.changeset/metal-doors-rhyme.md new file mode 100644 index 000000000000..cb84bdb471db --- /dev/null +++ b/.changeset/metal-doors-rhyme.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Added Astro attributes to SVG elements in JSX definition