kallookoo / wp-color-picker-alpha

Overwrite Automattic Iris for enabled Alpha Channel in wpColorPicker
GNU General Public License v2.0
132 stars 88 forks source link

Selecting none transparent color should reset transparent slider #18

Closed tmconnect closed 6 years ago

tmconnect commented 6 years ago

If the selected color is an RGBA color and you pick a color from the palette, the transparency slider didn't reset and you will get a RGBA color and not the HEX value from the palette.

This makes sense if I change the color over the color range, but not if I'm selecting an HEX color from the palette.

After selecting a HEX color from the palette the transparency slider should be reset to 1.

kallookoo commented 6 years ago

It is assumed that the color will be transparent, for this reason it is maintained. The data-reset-alpha option was created if it were the case that transparency was optional. If you do not want to use this option, you can change it using the change function.