themeum / kirki

Extending the customizer
https://kirki.org
MIT License
1.26k stars 328 forks source link

Bug with typo control #2488

Open vlthemes opened 2 years ago

vlthemes commented 2 years ago

Issue description:

This is my config.php file. When I change font in live customizer to different, all values (variant, font-size, line height etc) will be removed, but the font will be new. I need to change each option (variant, font-size etc) to save all of them. It's annoying....

Version used:

4.0.21

Using theme_mods or options?

theme_mods

PHP error messages that might be related

JS error messages that might be related

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

VLT_Options::add_field( array(
    'type' => 'typography',
    'settings' => 'typography_button',
    'section' => 'typography_buttons',
    'label' => esc_html__( 'Button Typography', '@@textdomain' ),
    'priority' => $priority++,
    'choices' => apply_filters(
        'vlthemes_fonts_choices', [
            'variant' => [
                '500',
            ]
        ]
    ),
    'default' => array(
        'font-family' => 'Roboto',
        'subsets' => [ 'latin' ],
        'variant' => '500',
        'font-size' => '14px',
        'line-height' => '1.4',
        'letter-spacing' => '0',
        'text-transform' => 'none'
    ),
    'output' => array(
        array(
            'element' => '.vlt-btn, input[type="button"]'
        )
    )
) );
vlthemes commented 2 years ago

P.S. all looks good in customizer, but not applied to live site.

https://take.ms/yHFcF

All resaved value here. But not default font size and other props.