Make properties optional
This commit is contained in:
parent
aaedd858bb
commit
db2872643c
1 changed files with 58 additions and 18 deletions
|
|
@ -109,6 +109,8 @@ export function applyHostStyles(
|
|||
root: HTMLElement = document.documentElement,
|
||||
): void {
|
||||
for (const [key, value] of Object.entries(styles)) {
|
||||
root.style.setProperty(key, value);
|
||||
if (value !== undefined) {
|
||||
root.style.setProperty(key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue