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