aryehraber / statamic-captcha

Statamic Addon that protects your Statamic forms using a Captcha service.
MIT License
11 stars 8 forks source link

Setting Google ReCaptcha `data-size="compact"` #43

Closed sjclark closed 1 year ago

sjclark commented 1 year ago

😄 Is there any way to configure the compact display of google captcha - have site where it's overflowing on mobile....?

data-size="compact"

RE: https://developers.google.com/recaptcha/docs/display#render_param

image

sjclark commented 1 year ago

Ignore me, I should really learn to read ❤️

sjclark commented 1 year ago

Actually maybe I spoke too soon.... I don't seem to be able to get the specific data size data atrribute to flow through.... anything I seem to be doing wrong below? (have cleared application, stache & static cache)

Screen Shot 2022-11-14 at 11 07 48 am

Screen Shot 2022-11-14 at 11 08 18 am

Screen Shot 2022-11-14 at 11 09 58 am

aryehraber commented 1 year ago

Hi @sjclark, thanks for reporting this one -- there was a special case for data-size which stopped the attribute from merging into the rendered tag.

Just released v1.9.1 which fixes this issue!

sjclark commented 1 year ago

Thanks! I can't even remember the site I was trying to implement this in now! 😂