ruhley / angular-color-picker

Vanilla AngularJS Color Picker Directive with no requirement on jQuery
http://ruhley.github.io/angular-color-picker/
MIT License
165 stars 78 forks source link

HSL instead HexString format + transparent selection #181

Open blademarek opened 6 years ago

blademarek commented 6 years ago

I want to get the hex with '#' has in it - its supposed to be 'hexString' format as you mentioned on many places. On my local build i get the normal 'hex' format without the hash, and on your demo there is 'hsl' format instead - which is both wrong(imho). Is this expected behaviour? Or am i doing something wrong

The second thing is that when the model (color property) is not set, the swatch is set as Gray/no color(not sure) but the selection when i open it is completely transparent. After click anywhere inside, whole palette shows up - hue to the most bottom (red color). Is there any way to make it not transparent so that the user knows where is he when it opens up, without the need to always set model color

ruhley commented 6 years ago

@blademarek The names of the formats comes from the tinycolor library - https://bgrins.github.io/TinyColor/docs/tinycolor.html. If you search for toHexString you will see that is where it adds the #.

I will look into the completely transparent picker as a bug

Dhara-ZYMR commented 5 years ago

Any updates regarding this bug?