diff --git a/packages/core/ui/styling/style/index.ts b/packages/core/ui/styling/style/index.ts index 48134afec..41cf5dd7a 100644 --- a/packages/core/ui/styling/style/index.ts +++ b/packages/core/ui/styling/style/index.ts @@ -56,6 +56,14 @@ export class Style extends Observable implements StyleDefinition { this.unscopedCssVariables.set(varName, value); } + public removeScopedCssVariable(varName: string): void { + this.scopedCssVariables.delete(varName); + } + + public removeUnscopedCssVariable(varName: string): void { + this.unscopedCssVariables.delete(varName); + } + public getCssVariable(varName: string): string | null { const view = this.view; if (!view) {