Skip to content

Commit aac1ca3

Browse files
authored
Revert sizing change (#198)
* fix(#196): revert sizing change * chore: add changeset
1 parent 38e16fb commit aac1ca3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/afraid-rivers-agree.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"astro-icon": patch
3+
---
4+
5+
Fixes a regression in `1.0.3` that changed how icons were sized

packages/core/components/Icon.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ if (props.size) {
108108
props.height = props.size;
109109
delete props.size;
110110
}
111-
const renderData = iconToSVG(iconData, { width: "auto", height: "auto" });
111+
const renderData = iconToSVG(iconData);
112112
const normalizedProps = { ...renderData.attributes, ...props };
113113
const normalizedBody = renderData.body;
114114
---

0 commit comments

Comments
 (0)