Ensure honeypot field is not visible
[MAILPOET-2755]
This commit is contained in:
@@ -95,7 +95,7 @@ const FormPreview = () => {
|
|||||||
<Preview>
|
<Preview>
|
||||||
<div>
|
<div>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
{'.mailpoet_hp_email_label { display: none }' }
|
{'.mailpoet_hp_email_label { display: none !important }'}
|
||||||
{form.css}
|
{form.css}
|
||||||
</style>
|
</style>
|
||||||
<form
|
<form
|
||||||
|
@@ -28,7 +28,7 @@ class Renderer {
|
|||||||
|
|
||||||
public function renderStyles(array $form = [], string $prefix = null): string {
|
public function renderStyles(array $form = [], string $prefix = null): string {
|
||||||
$html = '<style type="text/css">';
|
$html = '<style type="text/css">';
|
||||||
$html .= '.mailpoet_hp_email_label{display:none;}'; // move honeypot field out of sight
|
$html .= '.mailpoet_hp_email_label{display:none!important;}'; // move honeypot field out of sight
|
||||||
$html .= $this->styleUtils->render($this->getStyles($form), $prefix);
|
$html .= $this->styleUtils->render($this->getStyles($form), $prefix);
|
||||||
$html .= '</style>';
|
$html .= '</style>';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user