Google OneTap when the app is on dark mode contains a white background

I'm using Next.js and Shadcn UI and Google OneTap, with better-auth. When the app is in light mode, the Google OneTap popup is white and looks fine but when the app is in dark mode it is automatically set to dark mode (that's fine) but there remains a white background around the popup. Can anyone help me out? I have no specific stylings for the popup.
No description
2 Replies
Rodrigo
RodrigoOP2mo ago
I saw somewhere that I had to put colorScheme: light in the element, but I don't know how to target the element because it's better-auth that's handling that
sebastian
sebastian2mo ago
There is probably some external style that's making the "border". But there's small chance someone will actually help you (as it's very project-specific) The debug step would be probably to make another, plain project with onetap to see if the issue is appearing. If it is, open a issue. Also don't constantly bump the post and then delete the message.

Did you find this page helpful?