#samurebuelta6
1 messages · Page 1 of 1 (latest)
So is this a webview embedded within the android app?
yes, its an Ionic app
Hm so this is tricky because I don't have any familiarity with Ionic, nor do we have official libraries for Ionic or Angular. Those would all be third party, so not sure how much I'll be able to help investigate the issue here. Since your device is in darkmode, it seems expected that the webview/browser would use that to render the page. However, I have no idea how your Ionic app can signal to the webview to use the same mode that the app is in (lightmode).
Is there any config or way to force the background? the theme property is not working...
But no idea how that works with ngx-stripe
ngx stripe does not customize any behaviour, just wrap the html and js to add as angular component, but the config object is the same as vanilaJS way
gotcha
so you should be able to use the above then
Although your device's dark mode settings might force a dark background for webpages in the mobile browser
ok I'll try this. Thank you so much!
No problem
I changed the fields background with the variables, but the container background still black 😦
To change the background I have to override the p-HeightObserverProvider
But its not possible to configure
Not familiar with Ionic, but you should look into if there's a way to have webviews inherit the app's dark/light setting rather than the device's. May not be possible
Its not a webview inside the app, Ionic runs in a webview
Ok. Yeah I'm not familiar with how it works
Getting a colleague to take a look rn
What do you mean the theme is not working?
You should be able to control this outside of the appearance api by setting the background colour of your placeholder <div id="payment-element" /> or it's container
The background within the payment element should be transparent to its container
I don't know what ngx-stripe is doing, but perhaps you can apply a background color to the parent where you insert <ngx-stripe-payment>
If the device has the default theme the background is white (or transparent)
I’ll try this!