Skip to content

Commit

Permalink
feat: add the block's type as a CSS class to the block's root SVG (#8428
Browse files Browse the repository at this point in the history
)

* feat: Added the block's type as a CSS class to the block's root SVG #8268

* fix: Added the block type as a CSS class to the blocks root SVG #8268
  • Loading branch information
CodeMaverick2 authored Jul 31, 2024
1 parent 9c88970 commit 203e422
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/block_svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ export class BlockSvg
this.workspace = workspace;
this.svgGroup_ = dom.createSvgElement(Svg.G, {});

if (prototypeName) {
dom.addClass(this.svgGroup_, prototypeName);
}
/** A block style object. */
this.style = workspace.getRenderer().getConstants().getBlockStyle(null);

Expand Down

0 comments on commit 203e422

Please sign in to comment.