Skip to content

Commit

Permalink
fix(sankey): fix issue with gradient links and spaces in IDs (#676)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze authored and plouc committed Oct 19, 2019
1 parent 2c9bfc2 commit 52feccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sankey/src/SankeyLinksItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const SankeyLinksItem = ({
/>
)}
<path
fill={enableGradient ? `url(#${linkId})` : color}
fill={enableGradient ? `url(#${encodeURI(linkId)})` : color}
d={path}
fillOpacity={opacity}
onMouseEnter={handleMouseEnter}
Expand Down

0 comments on commit 52feccb

Please sign in to comment.