Make properties optional

This commit is contained in:
martinalong 2025-12-12 18:31:03 -08:00
commit db2872643c
No known key found for this signature in database

View file

@ -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);
}
}
}