From 4b95cb77af7f79ee2b393b30edbf52ff21a5a623 Mon Sep 17 00:00:00 2001 From: Bhargav <143892094+vexora-0@users.noreply.github.com> Date: Tue, 30 Jul 2024 08:01:37 +0530 Subject: [PATCH] feat: Added blocklyImageField CSS class to image fields https://github.com/google/blockly/issues/8314 (#8439) --- core/field_image.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/field_image.ts b/core/field_image.ts index 6e83e3405..650575f59 100644 --- a/core/field_image.ts +++ b/core/field_image.ts @@ -151,6 +151,10 @@ export class FieldImage extends Field { this.value_ as string, ); + if (this.fieldGroup_) { + dom.addClass(this.fieldGroup_, 'blocklyImageField'); + } + if (this.clickHandler) { this.imageElement.style.cursor = 'pointer'; }