Color picker HSL mode

Support Meta Box AIO Color picker HSL mode

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #40275
    muchadesign@gmail.com[email protected]
    Participant

    I'm trying to output a single color to use in a CSS variable, but am unable to output the color value in HSL. I can get it to output HEX and RGBa, but not HSL.

    In the field group I have the color picker option "mode" set to "hsl".

    Here's the function I'm calling in functions.php within WP:

    
    function my_header_hook() {
    	$post_color = rwmb_meta(post_color_theme);
    	if ($post_color) {
    		echo '<style type="text/css">
    				:root{
    				--post-color:'.$post_color.';
    			</style>';
    	}
    }
    add_action( 'wp_head', 'my_header_hook' );
    
    #40279
    PeterPeter
    Moderator

    Hello there,

    Thanks for your feedback.

    The mode hsl of the field color picker field does not look to work. I've escalated this to the development team to check it and get back to you later.

    #40280
    muchadesign@gmail.com[email protected]
    Participant

    Thank you so much.

    #40299
    muchadesign@gmail.com[email protected]
    Participant

    Here's a screenshot of my settings if that helps.

    https://snipboard.io/RbNE4J.jpg

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.