From abb74eda831238403879d83a0618bad7c6c2dd8e Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Fri, 6 Dec 2019 10:01:03 -0800 Subject: [PATCH] Fix the text input field colouring in full block fields. (#3489) --- core/field_textinput.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/field_textinput.js b/core/field_textinput.js index a38b418ed..41ca7bd1a 100644 --- a/core/field_textinput.js +++ b/core/field_textinput.js @@ -237,12 +237,12 @@ Blockly.FieldTextInput.prototype.doValueUpdate_ = function(newValue) { */ Blockly.FieldTextInput.prototype.applyColour = function() { if (this.sourceBlock_ && this.constants_.FULL_BLOCK_FIELDS) { - if (this.sourceBlock_.isShadow()) { - this.sourceBlock_.pathObject.svgPath.setAttribute('fill', '#fff'); - } else if (this.borderRect_) { + if (this.borderRect_) { this.borderRect_.setAttribute('stroke', this.sourceBlock_.style.colourTertiary); this.borderRect_.setAttribute('fill', '#fff'); + } else if (this.sourceBlock_.isShadow()) { + this.sourceBlock_.pathObject.svgPath.setAttribute('fill', '#fff'); } } };