i am using tally forms in my next js app and it works great on light mode, i made modifications in it to work for dark mode aswell but the issue is that on ios, it defaults to dark mode css if the system has dark mode enabled even if the website is being shown in light mode. This is the css:
:root {
color-scheme:light dark;
}
@media (prefers-color-scheme: dark) {
.tally-app{
color:white;
}
}
i tried almost all possible methods but failed to change the text color of iframe's inner content to white
.tally-appis supposed to refer to theiframeelement? And this is your main document's stylesheet? That can't work, styling doesn't apply across document boundaries. This styling would need to be applied inside the document, that got loaded into the iframe. If the iframe is same-origin, then you could insert styling via JavaScript, after the document has loaded.