From a7ec185c69ee2c7a11b71830a7a799d6c2b21915 Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Wed, 3 Jul 2019 14:10:56 -0700 Subject: [PATCH] Adds fill to svg dark path --- core/block_svg.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; };