Skip to content

Commit

Permalink
fix: transform components using fill and stroke
Browse files Browse the repository at this point in the history
  • Loading branch information
marklawlor committed May 23, 2022
1 parent f3c4127 commit f4161ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/babel/visitor.ts
Expand Up @@ -70,7 +70,7 @@ export const visitor: Visitor<VisitorState> = {
return;
}

if (someAttributes(path, ["className", "tw"])) {
if (someAttributes(path, ["className", "tw", "fill", "stroke"])) {
if (canTransform) toStyledComponent(path);
state.hasClassNames = true;
}
Expand Down

0 comments on commit f4161ef

Please sign in to comment.