mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
make blocklyDropDownArrow inherit background-color and border-color (#502)
This commit is contained in:
parent
6059460a60
commit
b494a0365e
2 changed files with 2 additions and 2 deletions
|
@ -246,6 +246,8 @@ Blockly.Css.CONTENT = [
|
|||
'width: 16px;',
|
||||
'height: 16px;',
|
||||
'z-index: -1;',
|
||||
'background-color: inherit;',
|
||||
'border-color: inherit;',
|
||||
'}',
|
||||
|
||||
'.blocklyDropDownButton {',
|
||||
|
|
|
@ -160,9 +160,7 @@ Blockly.DropDownDiv.clearContent = function() {
|
|||
*/
|
||||
Blockly.DropDownDiv.setColour = function(backgroundColour, borderColour) {
|
||||
Blockly.DropDownDiv.DIV_.style.backgroundColor = backgroundColour;
|
||||
Blockly.DropDownDiv.arrow_.style.backgroundColor = backgroundColour;
|
||||
Blockly.DropDownDiv.DIV_.style.borderColor = borderColour;
|
||||
Blockly.DropDownDiv.arrow_.style.borderColor = borderColour;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue