Alberplz / angular2-color-picker

Angular 2 Color Picker Directive, no dependences required.
MIT License
185 stars 82 forks source link

Support to 8 digits HEX with alpha #30

Closed mlessio closed 7 years ago

mlessio commented 8 years ago

Enables output like #AABBCCFF if hex output is selected instead of rgba() notation

Alberplz commented 7 years ago

Browsers don't support 8 digits HEX

mlessio commented 7 years ago

That's true, browsers don't(or better, they don't right now). But it is not told you are going to use it in a browser.

I think if i choose to output in HEX, i want an HEX output, not an rgba one.

Cheers!

Alberplz commented 7 years ago

Yes I know but I'm assuming that some people are using it with browsers. If I update that the output color will not work for everybody.

If is only the ouput you can use: <input [colorPicker]="color" (colorPickerChange)="hex8=onChangeColor($event)"/>

But if hex8 support is added I think the input should too (users also can manipulate the color from de input)