mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Fix the text input field colouring in full block fields. (#3489)
This commit is contained in:
@@ -237,12 +237,12 @@ Blockly.FieldTextInput.prototype.doValueUpdate_ = function(newValue) {
|
|||||||
*/
|
*/
|
||||||
Blockly.FieldTextInput.prototype.applyColour = function() {
|
Blockly.FieldTextInput.prototype.applyColour = function() {
|
||||||
if (this.sourceBlock_ && this.constants_.FULL_BLOCK_FIELDS) {
|
if (this.sourceBlock_ && this.constants_.FULL_BLOCK_FIELDS) {
|
||||||
if (this.sourceBlock_.isShadow()) {
|
if (this.borderRect_) {
|
||||||
this.sourceBlock_.pathObject.svgPath.setAttribute('fill', '#fff');
|
|
||||||
} else if (this.borderRect_) {
|
|
||||||
this.borderRect_.setAttribute('stroke',
|
this.borderRect_.setAttribute('stroke',
|
||||||
this.sourceBlock_.style.colourTertiary);
|
this.sourceBlock_.style.colourTertiary);
|
||||||
this.borderRect_.setAttribute('fill', '#fff');
|
this.borderRect_.setAttribute('fill', '#fff');
|
||||||
|
} else if (this.sourceBlock_.isShadow()) {
|
||||||
|
this.sourceBlock_.pathObject.svgPath.setAttribute('fill', '#fff');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user