-
Notifications
You must be signed in to change notification settings - Fork 329
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
Some resetting issues #1474
Comments
same here, reset only worked when reload customizer page(with |
@Macaroons I can't replicate this with your code... |
@aristath Sorry for the slow reply. I am using the develop branch! |
I've had a bit more time to try better pinpoint the issue this morning. I've realised it's due to me using the typography control without a font family field in some instances. Using the below code, setting and resetting the top control will fire the error and turn the text white.
It also happens when using the text align field independently of any other typography settings. This resets the colour but doesn't fire a console error.
I'm happy to change this control to a buttonset though, my concern is more with the top one as it has been useful for me to allow the user to change h1-h6 font sizes but NOT allow them to change the family for each one. Just to try be thorough in my reporting, I have another control that sets font size but gives a different console error upon reset but also doesn't turn the font white.
|
I'm having the same issue. On some typography fields I don't set color. Resetting such fields adds Kirki::add_field( 'theme_config', array(
'type' => 'typography',
'settings' => 'entry_title_link',
'section' => 'headings_typography',
'default' => array(
'letter-spacing' => '0',
'text-transform' => 'none',
),
'priority' => 25,
'transport' => 'auto',
'output' => array(
array(
'element' => '.entry-title a',
),
),
) ); |
Forgot to mention - I'm using latest version 3.0.10 |
I am getting this issue on version 3.0.9. When I remove the color control, Kirki still outputs the last set color. |
I believe this was just fixed with that last commit. |
Issue description:
I don't set the colour on any typography field, I handle this in a separate colour section in the customizer. I am having a problem when resetting some typography fields, the text turns white. It was reported here but closed: #1405
It's a tricky one to report as it doesn't happen on every field. I've tried to give three examples below.
I am getting a console error only when resetting CERTAIN typography fields. It only fires on fields that do turn white but not on ALL of the fields that reset to white.
Version used:
3.0.9
Using theme_mods or options?
Theme mods
Code to reproduce the issue (config + field(s))
This field resets to white AND fires the error in point 2
This field turns white but does not fire console error
This field resets fine without error or font turning white
The text was updated successfully, but these errors were encountered: