Skip to content

Commit 7309821

Browse files
committed
Make getHoverColor() return the original value if it is CanvasGradient
1 parent 08447e9 commit 7309821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/core.helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ module.exports = function() {
647647

648648
helpers.getHoverColor = function(colorValue) {
649649
/* global CanvasPattern */
650-
return (colorValue instanceof CanvasPattern) ?
650+
return (colorValue instanceof CanvasPattern || colorValue instanceof CanvasGradient) ?
651651
colorValue :
652652
helpers.color(colorValue).saturate(0.5).darken(0.1).rgbString();
653653
};

0 commit comments

Comments
 (0)