feat: add css classes to icons (#7626)

* Update comment_icon.ts

* Update mutator_icon.ts

* Update warning_icon.ts

* Update comment_icon.ts

* Update mutator_icon.ts

* Update warning_icon.ts

* Update core/icons/comment_icon.ts

Co-authored-by: Beka Westberg <bwestberg@google.com>

* Update mutator_icon.ts

* Update warning_icon.ts

---------

Co-authored-by: Beka Westberg <bwestberg@google.com>
This commit is contained in:
Siddheya Kulkarni
2023-11-02 20:55:24 +05:30
committed by GitHub
parent 10024bd54e
commit 1b498681dd
3 changed files with 3 additions and 0 deletions

View File

@@ -110,6 +110,7 @@ export class CommentIcon extends Icon implements IHasBubble, ISerializable {
},
this.svgRoot,
);
dom.addClass(this.svgRoot!, 'blockly-icon-comment');
}
override dispose() {

View File

@@ -118,6 +118,7 @@ export class MutatorIcon extends Icon implements IHasBubble {
{'class': 'blocklyIconShape', 'r': '2.7', 'cx': '8', 'cy': '8'},
this.svgRoot,
);
dom.addClass(this.svgRoot!, 'blockly-icon-mutator');
}
override dispose(): void {

View File

@@ -88,6 +88,7 @@ export class WarningIcon extends Icon implements IHasBubble {
},
this.svgRoot,
);
dom.addClass(this.svgRoot!, 'blockly-icon-warning');
}
override dispose() {