Skip to content

Commit 3eba6f0

Browse files
committed
compare colorbar.bgcolor with paper_bgcolor
1 parent 2f09b6e commit 3eba6f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/colorbar/draw.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ function drawColorBar(g, opts, gd) {
701701
if(!isVertical && (
702702
borderwidth || (
703703
tinycolor(bgcolor).getAlpha() &&
704-
!tinycolor.equals(fullLayout.plot_bgcolor, bgcolor)
704+
!tinycolor.equals(fullLayout.paper_bgcolor, bgcolor)
705705
)
706706
)) {
707707
// for horizontal colorbars when there is a border line or having different background color

0 commit comments

Comments
 (0)