Skip to content

Commit

Permalink
fix: added 'blocklyHighlighted' CSS class to highlighted block's root…
Browse files Browse the repository at this point in the history
… svg
  • Loading branch information
Shreshthaaa committed Aug 6, 2024
1 parent 8542cf0 commit a715228
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/renderers/geras/path_object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@ export class PathObject extends BasePathObject {
'filter',
'url(#' + this.constants.embossFilterId + ')',
);
this.svgRoot.classList.add('blocklyHighlighted');
this.svgPathLight.style.display = 'none';
} else {
this.svgPath.setAttribute('filter', 'none');
this.svgRoot.classList.remove('blocklyHighlighted');
this.svgPathLight.style.display = 'inline';
}
}
Expand Down

0 comments on commit a715228

Please sign in to comment.