mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
feat!: Use CSS to specify field cursors. (#8648)
This commit is contained in:
@@ -70,9 +70,6 @@ export class FieldDropdown extends Field<string> {
|
||||
*/
|
||||
override SERIALIZABLE = true;
|
||||
|
||||
/** Mouse cursor style when over the hotspot that initiates the editor. */
|
||||
override CURSOR = 'default';
|
||||
|
||||
protected menuGenerator_?: MenuGenerator;
|
||||
|
||||
/** A cache of the most recently generated options. */
|
||||
@@ -204,6 +201,11 @@ export class FieldDropdown extends Field<string> {
|
||||
if (this.borderRect_) {
|
||||
dom.addClass(this.borderRect_, 'blocklyDropdownRect');
|
||||
}
|
||||
|
||||
if (this.fieldGroup_) {
|
||||
dom.addClass(this.fieldGroup_, 'blocklyField');
|
||||
dom.addClass(this.fieldGroup_, 'blocklyDropdownField');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user