mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
feat: Added blocklyImageField CSS class to image fields https://github.com/google/blockly/issues/8314 (#8439)
This commit is contained in:
@@ -151,6 +151,10 @@ export class FieldImage extends Field<string> {
|
||||
this.value_ as string,
|
||||
);
|
||||
|
||||
if (this.fieldGroup_) {
|
||||
dom.addClass(this.fieldGroup_, 'blocklyImageField');
|
||||
}
|
||||
|
||||
if (this.clickHandler) {
|
||||
this.imageElement.style.cursor = 'pointer';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user