albertcht / invisible-recaptcha

An invisible reCAPTCHA package for Laravel, Lumen, CI or native PHP.
MIT License
601 stars 162 forks source link

Replace display:none with visibility: hidden #141

Open simeonbugarija opened 3 years ago

simeonbugarija commented 3 years ago

According to Google's frequently asked questions related to hiding the badge, it should be done using the following styles:

.grecaptcha-badge { visibility: hidden; }

https://developers.google.com/recaptcha/docs/faq#id-like-to-hide-the-recaptcha-badge.-what-is-allowed

On stackoverflow there is an answer that is warning that the "display: none;" appears to disable the spam checking

https://stackoverflow.com/a/44543771

Also the syntax for the existing style display:none is wrong, !important should be before the semicolon, like this:

<style>.grecaptcha-badge{display:none !important;}</style>

screenshot