Support » Plugin: ACF RGBA Color Picker » Color Pallete mixed HEX and RGBA alpha issue

  • Hi,

    Thank you for this great add to ACF Pro.

    I’ve found a bug while using the mixed HEX and RGBA color pallete, this is how to spot it:
    Set some mixed HEX/RGBA colors like “#5ac07b; #aa00ff; rgba(150,40,30,0.7); rgba(10,140,90,0.2)“.
    On the color picker, if I first click on a HEX set color, the alpha is correctly set to 1, because HEX doesn’t support transparency. Then, on clicking the RGBA transparent color, everything is also ok and the alpha is set.

    The problem:
    After clicking on a RGBA transparent color, If I click again on a HEX color, the alpha isn’t reset to 1 as it should, keeps the alpha from the last RGBA clicked.
    The issue remains even after clicking on the “Clear” button.

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author dreihochzwo


    There’s nothing I could do to change this, because thats’s the behavior of the WP-Color-Picker-Alpha.

    Even if you select a HEX color, change the transparency and then select a HEX color or select a color from the color range, the transparency value will not be changed.

    A solution is to define the HEX colors even with RGBA values and set the alpha to 1. Surprisingly, you still get HEX values and even if you have previously chosen an RGBA color or changed the transparency slider, it will be reset.

    I have just discovered this solution while testing and I am grateful for your report.

    I also left a bug report on the WP-Color-Picker-Alpha GitHub page, which describes your request.

    Hope this helps…

Viewing 1 replies (of 1 total)
  • The topic ‘Color Pallete mixed HEX and RGBA alpha issue’ is closed to new replies.