dogoku commented on issue #1087: URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/1087#issuecomment-3461135296
It's not the best, but my solution was to detect ios version (I use [@capacitor/device](https://capacitorjs.com/docs/apis/device), for cordova use [capacitor's device plugin](https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-device/index.html)) and then I override the `closebuttoncolor` and `navigationbuttoncolor` (not sure if i need the 2nd one) ```ts const info = await Device.getInfo(); const osVersion = parseInt(info.osVersion); if (info.platform === "ios" && osVersion >= 26) { iabOptions.closebuttoncolor = "#000000"; iabOptions.navigationbuttoncolor = "#000000"; } ``` The bg color of the button depends on what is it on top of, which in my case was the toolbar. You can see it start off as black button and then it goes into a light gray color when sitting on top of my app background. As a side note, the toolbar color is also no longer applied <img width="440" height="203" alt="Image" src="https://github.com/user-attachments/assets/6fbb5a9a-c6ab-44a6-b8f6-9963cf6fddaa" /> <img width="456" height="214" alt="Image" src="https://github.com/user-attachments/assets/cd1001a9-6303-4350-a51a-856e84ab502a" /> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
