Skip to content

Commit

Permalink
Make getHoverColor() return the original value if it is CanvasGradient
Browse files Browse the repository at this point in the history
  • Loading branch information
nagix committed Nov 27, 2018
1 parent 08447e9 commit 7309821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/core.helpers.js
Expand Up @@ -647,7 +647,7 @@ module.exports = function() {

helpers.getHoverColor = function(colorValue) {
/* global CanvasPattern */
return (colorValue instanceof CanvasPattern) ?
return (colorValue instanceof CanvasPattern || colorValue instanceof CanvasGradient) ?
colorValue :
helpers.color(colorValue).saturate(0.5).darken(0.1).rgbString();
};
Expand Down

0 comments on commit 7309821

Please sign in to comment.