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 7, 2024
1 parent a715228 commit 28d17db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/renderers/geras/path_object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,15 @@ export class PathObject extends BasePathObject {
}

override updateHighlighted(highlighted: boolean) {
super.updateHighlighted(highlighted);
if (highlighted) {
this.svgPath.setAttribute(
'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 28d17db

Please sign in to comment.