Rename arrowTop and arrowBottom css classes to blocklyArrowTop and blocklyArrowBottom (#3548)

This commit is contained in:
Sam El-Husseini
2020-01-06 16:09:23 -08:00
committed by GitHub
parent a1ed9ab791
commit c1ff28fcd2
2 changed files with 4 additions and 3 deletions

View File

@@ -216,14 +216,14 @@ Blockly.Css.CONTENT = [
'cursor: pointer;',
'}',
'.arrowTop {',
'.blocklyArrowTop {',
'border-top: 1px solid;',
'border-left: 1px solid;',
'border-top-left-radius: 4px;',
'border-color: inherit;',
'}',
'.arrowBottom {',
'.blocklyArrowBottom {',
'border-bottom: 1px solid;',
'border-right: 1px solid;',
'border-bottom-right-radius: 4px;',

View File

@@ -684,7 +684,8 @@ Blockly.DropDownDiv.positionInternal_ = function(
Blockly.DropDownDiv.arrow_.style.transform = 'translate(' +
metrics.arrowX + 'px,' + metrics.arrowY + 'px) rotate(45deg)';
Blockly.DropDownDiv.arrow_.setAttribute('class', metrics.arrowAtTop ?
'blocklyDropDownArrow arrowTop' : 'blocklyDropDownArrow arrowBottom');
'blocklyDropDownArrow blocklyArrowTop' :
'blocklyDropDownArrow blocklyArrowBottom');
} else {
Blockly.DropDownDiv.arrow_.style.display = 'none';
}