Skip to content

Commit

Permalink
BLOCKS-332 add 'catblocks-' before CSS classes
Browse files Browse the repository at this point in the history
  • Loading branch information
greilberger13 committed Oct 9, 2023
1 parent 8ecc3a2 commit 988800b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/library/js/integration/catroid.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export class Catroid {
Android.updateScriptPosition(newEmptyBrickId, newEmptyBrickPositionX, newEmptyBrickPositionY);

if (newEmptyBrick.pathObject && newEmptyBrick.pathObject.svgRoot) {
Blockly.utils.dom.addClass(newEmptyBrick.pathObject.svgRoot, 'catblockls-blockly-invisible');
Blockly.utils.dom.addClass(newEmptyBrick.pathObject.svgRoot, 'catblocks-blockly-invisible');
}
this.removeEmptyScriptBricks();
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/library/js/integration/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ export const renderBrick = (parentBrick, jsonBrick, brickListType, workspace, re

if (childBrick.pathObject && childBrick.pathObject.svgRoot) {
if (jsonBrick.name == 'EmptyScript') {
Blockly.utils.dom.addClass(childBrick.pathObject.svgRoot, 'catblockls-blockly-invisible');
Blockly.utils.dom.addClass(childBrick.pathObject.svgRoot, 'catblocks-blockly-invisible');
} else if (jsonBrick.commentedOut) {
Blockly.utils.dom.addClass(childBrick.pathObject.svgRoot, 'catblocks-blockly-disabled');
if (workspace.getTheme().name.toLowerCase() === 'advanced') {
Expand Down
2 changes: 1 addition & 1 deletion src/library/scss/_blockly.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
word-wrap: break-word;
}

.catblockls-blockly-invisible > .blocklyPath {
.catblocks-blockly-invisible > .blocklyPath {
fill-opacity: 0;
stroke-opacity: 0;
}
Expand Down

0 comments on commit 988800b

Please sign in to comment.