Skip to content

Commit

Permalink
Fix custom color stroke in Text
Browse files Browse the repository at this point in the history
This fixes an issue where Text's stroke was taking on the `color` prop, which isn't quite right. Text should always have a mafs-bg stroke to separate it from other foreground elements and keep it readable.

Fixes #85
  • Loading branch information
stevenpetryk committed Jan 13, 2023
1 parent 7d86d79 commit 8e1a6ba
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/display/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export function Text({
dominantBaseline={dominantBaseline}
textAnchor={textAnchor}
style={{
stroke: color || "var(--mafs-bg)",
fill: color || "var(--mafs-fg)",
vectorEffect: "non-scaling-stroke",
}}
Expand Down

0 comments on commit 8e1a6ba

Please sign in to comment.