Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hcaptcha has alignment issues causing ugly white background to show up in darkmode #225

Open
tilkinsc opened this issue Mar 17, 2024 · 3 comments
Assignees

Comments

@tilkinsc
Copy link

tilkinsc commented Mar 17, 2024

Reproduced on both edge and firefox. Version 1.10.1

image

			<HCaptcha
				sitekey="10000000-ffff-ffff-ffff-000000000001"
				onVerify={(token, eKey) => 1}
				reCaptchaCompat={false}
				/>

I have dug into the html and it appears that the body of the iframe that gets injected is at fault. On the left, you can see me editing around with the style of the html as shown below. On the right thats the vanilla code you see above.
image

I am using vite, bootstrap, and react-router-dom. This background doesn't seem respective to those being present. Proven by deleting all the css on the page, as shown below.
image

@zoryana94
Copy link
Contributor

Hi @tilkinsc,

Thank you for notifying us about the issue!
We will keep you posted

Best Regards
hCaptcha Dev Team

@Red-Killer
Copy link

Yep got the same issue looks very ugly
image

@e6e29121
Copy link

e6e29121 commented Jul 5, 2024

I've found a temporary solution to the problem, just add color-scheme: normal; to the global CSS configuration like this:

* {
    color-scheme: normal;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants