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

Multicolor missing alpha control #1657

Closed
pvigilante opened this issue Nov 21, 2017 · 0 comments
Closed

Multicolor missing alpha control #1657

pvigilante opened this issue Nov 21, 2017 · 0 comments
Milestone

Comments

@pvigilante
Copy link

Issue description:

Since the update to WordPress 4.9 and the latest Kirki, it appears that the alpha selector for the multicolor field is disabled. Adding the option to the array as 'alpha' => true does not work as it did with previous versions. I know the latest version requires the option to be set in the 'choices' array for the standard 'color' field type, but this just creates a new color selector.

When I hard code in the value for data-alpha to be true, it brings back the alpha selector. However, the styling is off.

As of version 3.0.15 and WP 4.9
screen shot 2017-11-20 at 4 09 54 pm

When hardcoded to activate alpha property:
screen shot 2017-11-20 at 4 04 47 pm

Used to be, from version 2.3.4, pre WP 4.9
screen shot 2017-11-20 at 4 08 22 pm

Version used:

3.0.16

Using theme_mods or options?

theme_mods

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

Kirki::add_field( 'hiiwp', array(
'type' => 'multicolor',
'settings' => 'typography_button_default_border_color',
'label' => ( 'Border Color (.button)', 'hiiwp' ),
'section' => $section,
'choices' => array(
'base' => esc_attr
( 'Base Color', 'hiiwp' ),
'hover' => esc_attr__( 'Hover Color', 'hiiwp' ),
),
'alpha' => true,
'default' => $hiilite_options['typography_button_default_border_color'],
'priority' => 1,
) );

@aristath aristath added this to the 3.0.17 milestone Nov 26, 2017
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

2 participants