Closed 7studio closed 4 years ago
Hi @7studio, I apologize for taking so long to answer you, I am modifying the script to support palettes with mixed values (hex, rgb, rgba) I warn you when I upload it for you to try it, I'll create another branch called beta, until I'm sure it works 100%.
In this week there will be new news!
Hi @kallookoo,
Don't be worry about your late answer. I'm enthousiast that you take into account my need :) Actually my ACF plugin 7studio/acf-color-palette works well with my workaround (translate rgb and hex to rgba).
Don't be hesitant to ping me if you want I will try your beta branch with my work.
Thank you, Xavier.
Hi, Try the branch 3.0.0 and comment please.
Checked and maintains colors. Just one detail and that is if for example it is defined as hex it converts it to rgb, but I don't see it as a problem.
Hi Sergio,
Thank you for this project. I discovered it with the help of ACF RGBA Color Picker but I encounter an issue in my own plugin when I use a mixed palette like this one:
I am aware about the
data-reset-alpha
attribute but it doesn't solve my problem because:rgba
torgb
or hex value (even if the colour comes from the defined palette).rgba
values in palette is set to 1 every time I choose it.The only solution that I found is to transform
rgb
and hex values torgba
equivalent with a 1 alpha…Could the project reset the alpha value when the colour comes from the palette? Especially when you know that the palette was defined by a developer who chose these specific values.