feat(core): allow removal of specific CSS variables (#9896)

This commit is contained in:
Eduardo Speroni
2022-06-04 14:24:13 -03:00
committed by GitHub
parent 213237f180
commit 32567ef361

View File

@ -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) {