Skip to content

Commit

Permalink
feat: Added the block type as a CSS class to the blocks root SVG #8268
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeMaverick2 committed Jul 30, 2024
1 parent 1340b92 commit d5faba0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/block_svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ export class BlockSvg
this.workspace = workspace;
this.svgGroup_ = dom.createSvgElement(Svg.G, {});

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

Expand Down

0 comments on commit d5faba0

Please sign in to comment.