I found the same conclusion you’re at some time ago. Personally, I also realized that Netlify’s form systems are pretty great about catching spam, and a honeypot field was more than enough to do the magic for me (so I just stopped using the reCaptcha and haven’t had any issues)
But if you are sure you want to use the reCaptcha, I’m with you - there’s no way to pass through to Netlify a desire to have data-theme="dark" present in the parent node that Netlify generates for you.
I haven’t tried this, and I don’t actually have any sites left personally using the reCaptcha to test it on, but I wonder if you could wire up a small js function to target the necessary parent node and inject the data-theme attribute into it on page load. Would you be open to trying something like that?
Hey that works super well! Love to see it Thanks for posting back the code too. I’ll have to keep this one in my own back pocket for if/when I get back to using a reCaptcha down the road. Good stuff