fix: Add visually-hidden bot-field input

This commit is contained in:
Prince Wilson 2022-02-22 17:30:56 -05:00
parent 7531888f98
commit e948fd3865

View File

@ -7,6 +7,11 @@
name="feedback"
data-netlify-honeypot="bot-field"
>
<p class="hidden">
<label>
Dont fill this out if youre human: <input name="bot-field" />
</label>
</p>
<input type="hidden" name="form-name" value="feedback" />
<label for="name">Name</label>
<input type="text" name="name" />
@ -39,4 +44,14 @@ button {
color: white;
width: 50%;
}
.hidden {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
</style>