Skip to content

Commit c27eff8

Browse files
authored
field_dropdown.js -- make dropdown items have text color
1 parent 1dbf3bd commit c27eff8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

core/field_dropdown.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ Blockly.FieldDropdown.prototype.showEditor_ = function() {
205205
menuItem.setRightToLeft(this.sourceBlock_.RTL);
206206
menuItem.setValue(value);
207207
menuItem.setCheckable(true);
208+
if (this.sourceBlock_.textColour) {
209+
menuItem.element_.style.color = this.sourceBlock_.textColour;
210+
}
211+
208212
menu.addChild(menuItem, true);
209213
var checked = (value == this.value_);
210214
menuItem.setChecked(checked);

0 commit comments

Comments
 (0)