From c9b865323419fdb3b6ffcf5e364bf4b4be7cf6c9 Mon Sep 17 00:00:00 2001 From: Artem Zhirov Date: Thu, 5 Sep 2024 13:19:55 +0500 Subject: [PATCH] always include viewBox in symbol element --- packages/core/components/Icon.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/components/Icon.astro b/packages/core/components/Icon.astro index 96e580f..76d4ef6 100644 --- a/packages/core/components/Icon.astro +++ b/packages/core/components/Icon.astro @@ -113,7 +113,7 @@ if (props.size) { const renderData = iconToSVG(iconData); const normalizedProps = { ...renderData.attributes, ...props }; const normalizedBody = renderData.body; -const symbolProps = isSymbol ? { viewBox: renderData.attributes.viewBox } : {}; +const symbolProps = { viewBox: renderData.attributes.viewBox }; --- { isSymbol && !inline @@ -125,7 +125,7 @@ const symbolProps = isSymbol ? { viewBox: renderData.attributes.viewBox } : {}; ) : ( - {includeSymbol && } + {includeSymbol && } )