Open xerxovksi opened 9 months ago
This is an interesting complexity in that <sp-color-slider>
manages what amounts to the hue
of an HSL or HSV color. When black the hue
can be any value because the values for saturation
and value
/level
are what creates that color. I'm not sure if that will be something that we can specifically manage in the element, but we can add it as a test case for https://github.com/adobe/spectrum-web-components/pull/2782 where we are testing some alternate color value management tools.
Code of conduct
Impacted component(s)
sp-color-slider
Expected behavior
When I drag the
sp-color-slider
thumb, it should trigger anevent
on@change
. And the color hex code should be available onevent.target.color
.Actual behavior
color
within the spectrum ofsp-color-slider
, the above behavior holds true.color
property outside its range,sp-color-slider
behaves weirdly.sp-color-slider
's range, the@change
event has itstarget.color
set to the older value which is the color outside the range.color
property back to a value within its spectrum programmatically.https://github.com/adobe/spectrum-web-components/assets/16774996/60bfcd3b-0cd5-46d9-9e45-ad0b43a3409a
Screenshots
What browsers are you seeing the problem in?
No response
How can we reproduce this issue?
LitElement
.#000000
.Sample code that illustrates the problem
Logs taken while reproducing problem
No response