diff --git a/core/block_svg.js b/core/block_svg.js index 7b56be463..9847c2ea3 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -999,11 +999,11 @@ Blockly.BlockSvg.prototype.setBorderColour_ = function() { * @return {?string} The background colour of the block. */ Blockly.BlockSvg.prototype.setShadowColour_ = function() { - this.svgPathLight_.style.display = 'none'; - this.svgPathDark_.style.display = 'none'; - this.svgPath_.setAttribute('stroke', 'none'); - var shadowColour = this.getColourShadow(); + + this.svgPathLight_.style.display = 'none'; + this.svgPathDark_.setAttribute('fill', shadowColour); + this.svgPath_.setAttribute('stroke', 'none'); this.svgPath_.setAttribute('fill', shadowColour); return shadowColour; };