Skip to content

Commit d8863d8

Browse files
committed
take into account paper_bgcolor in sankey text shadow
1 parent 5eb3e73 commit d8863d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/sankey/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ module.exports = function(gd, svg, calcData, layout, callbacks) {
10251025

10261026
nodeLabel
10271027
.style('text-shadow', function(d) {
1028-
return d.horizontal ? svgTextUtils.makeTextShadow('#fff') : 'none';
1028+
return d.horizontal ? svgTextUtils.makeTextShadow(gd._fullLayout.paper_bgcolor) : 'none';
10291029
})
10301030
.each(function(d) {Drawing.font(nodeLabel, d.textFont);});
10311031

0 commit comments

Comments
 (0)