mirror of
https://github.com/tabler/tabler-icons.git
synced 2025-08-01 11:50:25 +02:00
fix currentColor in Vue and Svelte package (#1057)
This commit is contained in:
@@ -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'],
|
||||
}),
|
||||
|
@@ -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',
|
||||
{
|
||||
|
Reference in New Issue
Block a user