Fix bold labels in forms
We save the falsy value for bold as "0" which was causing that labels were rendered bold in front end also when the checkbox was disabled. [MAILPOET-5139]
This commit is contained in:
committed by
Aschepikov
parent
274a77ea92
commit
d14ce5410b
@@ -191,7 +191,7 @@ class BlockRendererHelper {
|
||||
$rules[] = 'font-size: ' . $formSettings['fontSize'] . (is_numeric($formSettings['fontSize']) ? "px;" : ";");
|
||||
$rules[] = 'line-height: 1.2;';
|
||||
}
|
||||
if (isset($styles['bold'])) {
|
||||
if (isset($styles['bold']) && $styles['bold']) {
|
||||
$rules[] = 'font-weight: bold;';
|
||||
}
|
||||
return $rules ? 'style="' . $this->wp->escAttr(implode("", $rules)) . '"' : '';
|
||||
|
Reference in New Issue
Block a user