Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 7ad83a5

Browse files
committed
feat: use viewbox of icon itself
1 parent e82a7de commit 7ad83a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/c-icon/src/icon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const CIcon = defineComponent({
4646
color: 'currentColor',
4747
innerHTML: icon.value.path,
4848
focusable: false,
49-
viewBox: fallbackIcon.viewBox,
49+
viewBox: icon.value.viewBox || fallbackIcon.viewBox,
5050
}))
5151

5252
return () =>

0 commit comments

Comments
 (0)