@skyux/theme 13.0.0-alpha.2 → 13.0.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -408,7 +408,7 @@ class SkyThemeService {
408
408
  }
409
409
  /**
410
410
  * Updates the current theme brand.
411
- * @param brand The new theme brand to apply.
411
+ * @param brand The new theme brand to apply, or undefined to clear the current brand.
412
412
  */
413
413
  setThemeBrand(brand) {
414
414
  this.#updateThemeProperty('brand', brand);
@@ -464,7 +464,7 @@ class SkyThemeService {
464
464
  break;
465
465
  default:
466
466
  }
467
- if (supportedValues && !supportedValues.includes(value)) {
467
+ if (supportedValues && value && !supportedValues.includes(value)) {
468
468
  throw new Error(`The current theme does not support the specified ${property}.`);
469
469
  }
470
470
  const updatedSettings = {