diff --git a/docs/resources/changelog.md b/docs/resources/changelog.md index c545c3b7..f344a96d 100644 --- a/docs/resources/changelog.md +++ b/docs/resources/changelog.md @@ -11,6 +11,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis ## Next - Changed the type of component styles from `CSSResult` to `CSSResultGroup` [#828](https://github.com/shoelace-style/shoelace/issues/828) +- Fixed a bug in `` where using Left and Right would select the wrong color - Fixed a bug in `` where the divider was on the wrong side when using `placement="end"` - Fixed a bug in `` that caused nested tab groups to scroll when using `placement="start|end"` [#815](https://github.com/shoelace-style/shoelace/issues/815) - Fixed a bug in `` that caused the target to be lost after a slot change [#831](https://github.com/shoelace-style/shoelace/pull/831) diff --git a/src/components/color-picker/color-picker.ts b/src/components/color-picker/color-picker.ts index d8254961..12ef4653 100644 --- a/src/components/color-picker/color-picker.ts +++ b/src/components/color-picker/color-picker.ts @@ -392,12 +392,14 @@ export default class SlColorPicker extends LitElement { if (event.key === 'ArrowLeft') { event.preventDefault(); this.saturation = clamp(this.saturation - increment, 0, 100); + this.lightness = this.getLightness(this.brightness); this.syncValues(); } if (event.key === 'ArrowRight') { event.preventDefault(); this.saturation = clamp(this.saturation + increment, 0, 100); + this.lightness = this.getLightness(this.brightness); this.syncValues(); }