feat: Added blocklyImageField CSS class to image fields https://github.com/google/blockly/issues/8314 (#8439)

This commit is contained in:
Bhargav
2024-07-30 08:01:37 +05:30
committed by GitHub
parent 82c7aad4e7
commit 4b95cb77af

View File

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