Skip to content

Commit

Permalink
fix: inherit viewbox width / height of none provided (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavar committed Jan 26, 2024
1 parent 2aad9d7 commit 81985cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/components/Icon.astro
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ if (props.size) {
props.height = props.size;
delete props.size;
}
const renderData = iconToSVG(iconData);
const renderData = iconToSVG(iconData, { width: "auto", height: "auto" });
const normalizedProps = { ...renderData.attributes, ...props };
const normalizedBody = renderData.body;
---
Expand Down

2 comments on commit 81985cc

@vercel
Copy link

@vercel vercel bot commented on 81985cc Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

api-astroicon – ./packages/service

api-astroicon-nmoo.vercel.app
api-astroicon-git-main-nmoo.vercel.app
api.astroicon.dev

@vercel
Copy link

@vercel vercel bot commented on 81985cc Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.