From 4d2e0bba50a1442e3a8c232f36b2f5e2ed145433 Mon Sep 17 00:00:00 2001 From: leekelleher Date: Mon, 14 Jul 2025 15:19:46 +0100 Subject: [PATCH 1/3] fix(uui-color-slider): sets `max = 360` for `hue` type --- packages/uui-color-slider/lib/uui-color-slider.element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uui-color-slider/lib/uui-color-slider.element.ts b/packages/uui-color-slider/lib/uui-color-slider.element.ts index 543e0c373..211293513 100644 --- a/packages/uui-color-slider/lib/uui-color-slider.element.ts +++ b/packages/uui-color-slider/lib/uui-color-slider.element.ts @@ -107,7 +107,7 @@ export class UUIColorSliderElement extends LabelMixin('label', LitElement) { willUpdate(changedProperties: Map) { if (changedProperties.has('type')) { if (this.type === 'hue') { - this.max = this.max ?? 360; + this.max = 360; } else if (this.type === 'saturation') { this.max = this.max ?? 100; } else if (this.type === 'lightness') { From 7a3dea23df0dd3355fa0c5bb861d2098876b2280 Mon Sep 17 00:00:00 2001 From: leekelleher Date: Tue, 5 Aug 2025 12:41:42 +0100 Subject: [PATCH 2/3] fix(uui-color-slider): sets `max = 100` for `saturation` type --- packages/uui-color-slider/lib/uui-color-slider.element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uui-color-slider/lib/uui-color-slider.element.ts b/packages/uui-color-slider/lib/uui-color-slider.element.ts index 211293513..9e3e5951b 100644 --- a/packages/uui-color-slider/lib/uui-color-slider.element.ts +++ b/packages/uui-color-slider/lib/uui-color-slider.element.ts @@ -109,7 +109,7 @@ export class UUIColorSliderElement extends LabelMixin('label', LitElement) { if (this.type === 'hue') { this.max = 360; } else if (this.type === 'saturation') { - this.max = this.max ?? 100; + this.max = 100; } else if (this.type === 'lightness') { this.max = this.max ?? 100; } else if (this.type === 'opacity') { From f90f1a6a0ba96646c7e5aed9793bfdeb7a174958 Mon Sep 17 00:00:00 2001 From: leekelleher Date: Tue, 5 Aug 2025 12:42:03 +0100 Subject: [PATCH 3/3] fix(uui-color-slider): sets `max = 100` for `lightness` type --- packages/uui-color-slider/lib/uui-color-slider.element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uui-color-slider/lib/uui-color-slider.element.ts b/packages/uui-color-slider/lib/uui-color-slider.element.ts index 9e3e5951b..966f5ae1f 100644 --- a/packages/uui-color-slider/lib/uui-color-slider.element.ts +++ b/packages/uui-color-slider/lib/uui-color-slider.element.ts @@ -111,7 +111,7 @@ export class UUIColorSliderElement extends LabelMixin('label', LitElement) { } else if (this.type === 'saturation') { this.max = 100; } else if (this.type === 'lightness') { - this.max = this.max ?? 100; + this.max = 100; } else if (this.type === 'opacity') { this.max = this.max ?? 100; }