Skip to content

Commit

Permalink
Fix style of honeypot input field to be of size true 0 (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
subiabre authored Jul 11, 2024
1 parent 4f8cb03 commit f3af8a7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Resources/templates/default/partials/form/honeypot.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<label for="<?= $this->trap ?>" style="width: 0px; height: 0px; margin: 0px; padding: 0px; opacity: 0; display: block;">
<?php
$style_hidden = "width: 0px; height: 0px; margin: 0px; padding: 0px; border: 0px; opacity: 0; display: block;"
?>

<label for="<?= $this->trap ?>" style="<?= $style_hidden ?>">
<?= $this->text('contact-email-field') ?>
</label>
<br style="width: 0px; height: 0px; margin: 0px; padding: 0px; opacity: 0; display: block;" />
<input id="<?= $this->trap ?>" name="<?= $this->trap ?>" value="" type="text" class="short" style="width: 0px; height: 0px; margin: 0px; padding: 0px; opacity: 0; display: block;" />
<br style="<?= $style_hidden ?>" />
<input id="<?= $this->trap ?>" name="<?= $this->trap ?>" value="" type="text" class="short" style="<?= $style_hidden ?>" />

0 comments on commit f3af8a7

Please sign in to comment.