michaelvs97 / AspNetCore.ReCaptcha

Google ReCAPTCHA v2/v3 Library for .NET Core 3.x/5.x
https://www.nuget.org/packages/AspNetCore.ReCaptcha/
MIT License
73 stars 20 forks source link

Add support for automatically setting theme based on system settings #57

Closed nwoolls closed 1 year ago

nwoolls commented 1 year ago

Adds support for an auto-theme attribute in the Razor tag helper. Defaults to false for backward compatibility with existing applications.

If set to true, JS will be injected into the page to automatically set the reCAPTCHA theme to "dark" if the user's system (OS, browser) is configured to prefer a dark appearance.

This can be seen by setting the appearance to dark in macOS and iOS.