fix: change css class for disabled block pattern (#8864)

This commit is contained in:
Maribeth Moffatt
2025-04-08 12:06:05 -07:00
committed by GitHub
parent 89194b2ead
commit 2c05119ef2
3 changed files with 3 additions and 2 deletions

View File

@@ -198,7 +198,7 @@ let content = `
display: none;
}
.blocklyDisabled>.blocklyPath {
.blocklyDisabledPattern>.blocklyPath {
fill: var(--blocklyDisabledPattern);
fill-opacity: .5;
stroke-opacity: .5;

View File

@@ -200,6 +200,7 @@ export class PathObject implements IPathObject {
*/
protected updateDisabled_(disabled: boolean) {
this.setClass_('blocklyDisabled', disabled);
this.setClass_('blocklyDisabledPattern', disabled);
}
/**

View File

@@ -890,7 +890,7 @@ export class ConstantProvider extends BaseConstantProvider {
`}`,
// Disabled outline paths.
`${selector} .blocklyDisabled > .blocklyOutlinePath {`,
`${selector} .blocklyDisabledPattern > .blocklyOutlinePath {`,
`fill: var(--blocklyDisabledPattern)`,
`}`,