Skip to content

Commit

Permalink
Revert sizing change (#198)
Browse files Browse the repository at this point in the history
* fix(#196): revert sizing change

* chore: add changeset
  • Loading branch information
natemoo-re committed Jan 30, 2024
1 parent 38e16fb commit aac1ca3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/afraid-rivers-agree.md
@@ -0,0 +1,5 @@
---
"astro-icon": patch
---

Fixes a regression in `1.0.3` that changed how icons were sized
2 changes: 1 addition & 1 deletion packages/core/components/Icon.astro
Expand Up @@ -108,7 +108,7 @@ if (props.size) {
props.height = props.size;
delete props.size;
}
const renderData = iconToSVG(iconData, { width: "auto", height: "auto" });
const renderData = iconToSVG(iconData);
const normalizedProps = { ...renderData.attributes, ...props };
const normalizedBody = renderData.body;
---
Expand Down

0 comments on commit aac1ca3

Please sign in to comment.