Fixed ReCaptcha style

Affected version
2.1.5a

kick

Well-known member
Putting recaptcha v2 and creating a dark forum style captcha will be on a white background. Yes, you can colorize using css, but if you open the official documentation:
Automatically render the reCAPTCHA widget
The easiest method for rendering the reCAPTCHA widget on your page is to include the necessary JavaScript resource and a g-recaptcha tag. The g-recaptcha tag is a DIV element with class name g-recaptcha and your site key in the data-sitekey attribute:
g-recaptcha tag attributes and grecaptcha.render parameters
g-recaptcha tag attributegrecaptcha.render parameterValueDefaultDescription
data-sitekeysitekeyYour sitekey.
data-themethemedark lightlightOptional. The color theme of the widget.
This attribute is missing. Depending on the style settings that are on the topics, you can set the defining style for the captcha.
By default, light ReCaptcha comes out for all styles.
 

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.1.6).

Change log:
Add support for the theme attribute when rendering recaptcha. The value comes from the "Style type" style property in the "Color palette" group which has a light/dark value.
There may be a delay before changes are rolled out to the XenForo Community.
 
Top