Charlie9830 / pounder

Project Management
MIT License
0 stars 0 forks source link

Changing Saturation or Lightness values in colour picker snaps to black on Desktop #72

Open RobH779 opened 6 years ago

RobH779 commented 6 years ago

Describe the bug In the colour picker, when you change the value of either Saturation or Lightness it will snap both values to 0.

What were you doing at the time?

Screenshots screen shot 2018-08-18 at 3 45 37 pm

Version Information

Charlie9830 commented 6 years ago

Thanks for the Report. I suspect this is due to the fact that in the Backend I don't store the Alpha (Transparency) channel. I'll look at this in the next Hotfix.

Charlie9830 commented 6 years ago

Found a work around for the current Release. The problem comes from leaving the percentage sign in the Value, so if you only update the number it will fail validation and get coered to zero. If you delete everything from the input box, including the percentage sign and type just the desired number, nothing else, it will work.

Charlie9830 commented 6 years ago

Awaiting upstream pull request into react-color repo. https://github.com/casesandberg/react-color/pull/529

RobH779 commented 5 years ago

Came here to say this is probably no longer relevant and then noticed the last 25% of the Shade faders in the new 2.2.0 do some weird jumping around with the colour brightnesses a la #72

Charlie9830 commented 5 years ago

Busted. That is a little bit of laziness on my part. The Colour selections you are provided come from the 2014 Material Design color spec. Each color has a set of shades associated with it. You get 10 Shades of increasing saturation, then 4 "Accent" shades which aren't ordered into Saturation or intensity. The Slider just Maps one to one to these shades, so once it hits the Accent shades, it goes a bit bananas.

Color and Shade Indexes here