Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpha Color fields #932

Closed
shaylash opened this issue Apr 26, 2016 · 0 comments
Closed

Alpha Color fields #932

shaylash opened this issue Apr 26, 2016 · 0 comments

Comments

@shaylash
Copy link

shaylash commented Apr 26, 2016

Issue description:

It seems that the alpha declaration for a color fields has moved in a the choices array. Can you confirm this and maybe update the doc if it is the case since as of now with the old declaration alpha color picker do not work anymore.

Version used:

latest develop version (04/12/2016)

Using theme_mods or options?

theme_mods

Code to reproduce the issue (config + field(s))

DOES NOT WORK :
Kirki::add_field( 'my_config', array(
'type' => 'color',
'settings' => 'my_setting',
'label' => __( 'This is the label', 'my_textdomain' ),
'section' => 'my_section',
'default' => '#0088CC',
'priority' => 10,
'alpha' => true,
) );

WORKS :
Kirki::add_field( 'my_config', array(
'type' => 'color',
'settings' => 'my_setting',
'label' => __( 'This is the label', 'my_textdomain' ),
'section' => 'my_section',
'default' => '#0088CC',
'priority' => 10,
'choices' => array(
'alpha' => true,
),
) );

@shaylash shaylash changed the title Color alpha Color fields alpha Apr 26, 2016
@shaylash shaylash changed the title Color fields alpha Alpha Color fields Apr 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant