Add acceptance test for text input styles settings in form editor
[MAILPOET-2599]
This commit is contained in:
committed by
Veljko V
parent
126f988e8c
commit
4726b285c5
@ -96,11 +96,16 @@ class BlockRendererHelper {
|
||||
) {
|
||||
return $html;
|
||||
}
|
||||
$automationId = null;
|
||||
if (in_array($block['id'], ['email', 'last_name', 'first_name'], true)) {
|
||||
$automationId = 'data-automation-id="form_' . $block['id'] . '_label" ';
|
||||
}
|
||||
if (isset($block['params']['label'])
|
||||
&& strlen(trim($block['params']['label'])) > 0) {
|
||||
$html .= '<label '
|
||||
. 'class="mailpoet_' . $block['type'] . '_label" '
|
||||
. $this->renderFontStyle($formSettings, $block['styles'] ?? [])
|
||||
. ($automationId ?? '')
|
||||
. '>';
|
||||
$html .= htmlspecialchars($block['params']['label']);
|
||||
|
||||
|
Reference in New Issue
Block a user