Update CSS rules for cursor. (#3627)

This commit is contained in:
Monica Kozbial
2020-01-22 11:41:59 -08:00
committed by GitHub
parent 5727a62c62
commit 26a11faf49
3 changed files with 4 additions and 2 deletions

View File

@@ -340,6 +340,10 @@ Blockly.Css.CONTENT = [
'z-index: 20;',
'}',
'.blocklyText text {',
'cursor: default;',
'}',
/*
Don't allow users to select text. It gets annoying when trying to
drag a block and selected text moves instead.

View File

@@ -1041,7 +1041,6 @@ Blockly.blockRendering.ConstantProvider.prototype.getCSS_ = function(name) {
/* eslint-disable indent */
// Fields.
selector + ' .blocklyText {',
'cursor: default;',
'fill: #fff;',
'font-family: ' + this.FIELD_TEXT_FONTFAMILY + ';',
'font-size: ' + this.FIELD_TEXT_FONTSIZE + 'pt;',

View File

@@ -855,7 +855,6 @@ Blockly.zelos.ConstantProvider.prototype.getCSS_ = function(name) {
/* eslint-disable indent */
// Fields.
selector + ' .blocklyText {',
'cursor: default;',
'fill: #fff;',
'font-family: ' + this.FIELD_TEXT_FONTFAMILY + ';',
'font-size: ' + this.FIELD_TEXT_FONTSIZE + 'pt;',