Render submit font in JS

[MAILPOET-2911]
This commit is contained in:
Pavel Dohnal
2020-06-11 12:10:11 +02:00
committed by Veljko V
parent 61a43fd67d
commit f1fe28d409
2 changed files with 13 additions and 1 deletions

View File

@@ -31,6 +31,10 @@ class Submit {
$html .= 'data-automation-id="subscribe-submit-button" ';
if (isset($block['styles']['font_family'])) {
$html .= "data-font-family='{$block['styles']['font_family']}' " ;
}
$styles = $this->stylesRenderer->renderForButton($block['styles'] ?? [], $formSettings);
if ($styles) {