Skip to content

Commit

Permalink
fix currentColor in Vue and Svelte package (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
codecalm committed Mar 14, 2024
1 parent 4bd5545 commit 9f124f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/icons-solidjs/src/createSolidComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ const createSolidComponent = (
height: () => (localProps.size != null ? localProps.size : attributes.height),
...(type === 'filled'
? {
fill: () => (localProps.color != null ? localProps.color : attributes.stroke),
fill: () => (localProps.color != null ? localProps.color : 'currentColor'),
}
: {
stroke: () => (localProps.color != null ? localProps.color : attributes.stroke),
stroke: () => (localProps.color != null ? localProps.color : 'currentColor'),
'stroke-width': () =>
localProps.stroke != null ? localProps.stroke : attributes['stroke-width'],
}),
Expand Down
2 changes: 1 addition & 1 deletion packages/icons-vue/src/createVueComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const createVueComponent =
iconNamePascal: string,
iconNode: IconNode,
): Icon =>
({ size, color, class: classes, stroke, ...rest }: IconProps, { attrs, slots }) => {
({ size, color = 'currentColor', class: classes, stroke, ...rest }: IconProps, { attrs, slots }) => {
return h(
'svg',
{
Expand Down

0 comments on commit 9f124f4

Please sign in to comment.