From e4bb2767d5f44b0a97bdbd1349b9f329b324b78a Mon Sep 17 00:00:00 2001 From: Erika <3019731+Princesseuh@users.noreply.github.com> Date: Tue, 26 Apr 2022 11:29:25 -0400 Subject: [PATCH] Add Astro attributes to svg elements (#3205) --- .changeset/metal-doors-rhyme.md | 5 +++++ packages/astro/astro-jsx.d.ts | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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 000000000..cb84bdb47 --- /dev/null +++ b/.changeset/metal-doors-rhyme.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Added Astro attributes to SVG elements in JSX definition diff --git a/packages/astro/astro-jsx.d.ts b/packages/astro/astro-jsx.d.ts index 02dc9a11e..c9cfd9e17 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;