feat!: Use CSS to specify field cursors. (#8648)

This commit is contained in:
Aaron Dodson
2024-11-11 07:54:17 -08:00
committed by GitHub
parent 8f2228658e
commit 7bbbb959f0
5 changed files with 22 additions and 16 deletions

View File

@@ -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');
}
}
/**