siteorigin-panels
siteorigin-panels copied to clipboard
rgba color picker
Is it possible to make all the color picker in the Page Builder options compatible with RGBA? I think it's a very important feature.
+1 I like this idea and I've had a few supports topics that would have been solved by this. Maybe a drop down similar to the unit of measurement field would be a good idea? That way we don't have to run an automatic check and the user can use RGB, hex, and HSL (with their alpha options obviously).
I've been able to get rgba color picker with this: https://github.com/23r9i0/wp-color-picker-alpha (with few modification to have it load automatically)
But the value doesn't get saved. Any clues before I go deep in the code? 🎱
I've seen that rgba is not a priority for Iris, so for now we just need to be able to save something else than a hex value.
Thanks!
@karimhossenbux - sorry for the late reply here. I think the one thing that needs to change is allowing alpha colors in the sanitization function. I've made that change, it'll be available in the 2.5 update.
https://github.com/siteorigin/siteorigin-panels/commit/c362d064f193e29d4d7ea6b92fedba62d033f654
I tested out that color picker plugin, as well as another one, but I couldn't get them working out the box. What modifications did you have to do?