mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
fix: change css class for disabled block pattern (#8864)
This commit is contained in:
@@ -198,7 +198,7 @@ let content = `
|
||||
display: none;
|
||||
}
|
||||
|
||||
.blocklyDisabled>.blocklyPath {
|
||||
.blocklyDisabledPattern>.blocklyPath {
|
||||
fill: var(--blocklyDisabledPattern);
|
||||
fill-opacity: .5;
|
||||
stroke-opacity: .5;
|
||||
|
||||
@@ -200,6 +200,7 @@ export class PathObject implements IPathObject {
|
||||
*/
|
||||
protected updateDisabled_(disabled: boolean) {
|
||||
this.setClass_('blocklyDisabled', disabled);
|
||||
this.setClass_('blocklyDisabledPattern', disabled);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -890,7 +890,7 @@ export class ConstantProvider extends BaseConstantProvider {
|
||||
`}`,
|
||||
|
||||
// Disabled outline paths.
|
||||
`${selector} .blocklyDisabled > .blocklyOutlinePath {`,
|
||||
`${selector} .blocklyDisabledPattern > .blocklyOutlinePath {`,
|
||||
`fill: var(--blocklyDisabledPattern)`,
|
||||
`}`,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user