mirror of
https://github.com/google/blockly.git
synced 2026-01-10 10:27:08 +01:00
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:
committed by
GitHub
parent
10024bd54e
commit
1b498681dd
@@ -110,6 +110,7 @@ export class CommentIcon extends Icon implements IHasBubble, ISerializable {
|
||||
},
|
||||
this.svgRoot,
|
||||
);
|
||||
dom.addClass(this.svgRoot!, 'blockly-icon-comment');
|
||||
}
|
||||
|
||||
override dispose() {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -88,6 +88,7 @@ export class WarningIcon extends Icon implements IHasBubble {
|
||||
},
|
||||
this.svgRoot,
|
||||
);
|
||||
dom.addClass(this.svgRoot!, 'blockly-icon-warning');
|
||||
}
|
||||
|
||||
override dispose() {
|
||||
|
||||
Reference in New Issue
Block a user