Title: Transparent CSS not working in Android · Issue #10360 · NativeScript/NativeScript · GitHub
Open Graph Title: Transparent CSS not working in Android · Issue #10360 · NativeScript/NativeScript
X Title: Transparent CSS not working in Android · Issue #10360 · NativeScript/NativeScript
Description: Issue Description Transparent CSS is not working in Android but it works in iOS. I have a modal page that suppose to show transparent background. In Android when the modal loaded, it shows a white background instead of transparent. Code ...
Open Graph Description: Issue Description Transparent CSS is not working in Android but it works in iOS. I have a modal page that suppose to show transparent background. In Android when the modal loaded, it shows a white ...
X Description: Issue Description Transparent CSS is not working in Android but it works in iOS. I have a modal page that suppose to show transparent background. In Android when the modal loaded, it shows a white ...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/10360
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Transparent CSS not working in Android ","articleBody":"### Issue Description\r\n\r\nTransparent CSS is not working in Android but it works in iOS.\r\n\r\nI have a modal page that suppose to show transparent background. In Android when the modal loaded, it shows a white background instead of transparent. \r\n\r\nCode that opens the modal : \r\n\r\n```\r\n const config: SharedTransitionConfig = {\r\n\r\n pageStart: {\r\n opacity: 0\r\n },\r\n pageEnd: {\r\n opacity: 1,\r\n duration: 1000,\r\n spring: { tension: 110, friction: 9, mass: 1 },\r\n },\r\n pageReturn: {\r\n opacity: 0,\r\n duration: 500,\r\n spring: { tension: 70, friction: 9, mass: 2 }\r\n },\r\n };\r\n \r\n const options: ModalDialogOptions = {\r\n viewContainerRef: this.vcRef,\r\n cancelable: true,\r\n fullscreen: true,\r\n transition: SharedTransition.custom(new ModalTransition(), config),\r\n \r\n };\r\n\r\n this.modal.showModal(ModalComponent, options).then((result: string) =\u003e {\r\n\r\n });\r\n```\r\n\r\nThe Modal Component HTML : \r\n\r\n```\r\n\u003cRootLayout class=\"bgco-transparent\"\u003e\r\n\r\n \u003cGridLayout\u003e\u003c/GridLayout\u003e\r\n```\r\n\r\nbgco-transparent CSS Class : \r\n\r\n```\r\n.bgco-transparent {\r\n background-color: transparent;\r\n background: transparent;\r\n background: rgba(0, 0, 0, 0); //Tried this as well, not working\r\n}\r\n```\r\n\r\n### Reproduction\r\n\r\n_No response_\r\n\r\n### Relevant log output (if applicable)\r\n\r\n_No response_\r\n\r\n### Environment\r\n\r\n```yaml\r\nOS: macOS 13.4.1\r\nCPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz\r\nShell: /bin/zsh\r\nnode: 14.21.3\r\nnpm: 6.14.18\r\nnativescript: 8.5.3\r\n\r\n# android\r\njava: 11.0.18\r\nndk: Not Found\r\napis: 31, 32, 33, 33\r\nbuild_tools: 33.0.2\r\nsystem_images: \r\n - android-31 | Google APIs Intel x86_64 Atom\r\n\r\n# ios\r\nxcode: 14.3/14E222b\r\ncocoapods: 1.12.1\r\npython: Not Found\r\npython3: 3.9.6\r\nruby: 2.7.8\r\nplatforms: \r\n - DriverKit 22.4\r\n - iOS 16.4\r\n - macOS 13.3\r\n - tvOS 16.4\r\n - watchOS 9.4\r\n```\r\n\r\n### Dependencies\r\n\r\n```json\r\n\"dependencies\": {\r\n \"@angular/animations\": \"~15.2.0\",\r\n \"@angular/common\": \"~15.2.0\",\r\n \"@angular/compiler\": \"~15.2.0\",\r\n \"@angular/core\": \"~15.2.0\",\r\n \"@angular/forms\": \"~15.2.0\",\r\n \"@angular/platform-browser\": \"~15.2.0\",\r\n \"@angular/platform-browser-dynamic\": \"~15.2.0\",\r\n \"@angular/router\": \"~15.2.0\",\r\n \"@nativescript/angular\": \"~15.2.0\",\r\n \"@nativescript/camera\": \"^5.0.12\",\r\n \"@nativescript/core\": \"^8.4.7\",\r\n \"@nativescript/theme\": \"^3.0.0\",\r\n \"@types/underscore\": \"^1.9.4\",\r\n \"nativescript-ui-listview\": \"^15.2.3\",\r\n \"zone.js\": \"~0.13.0\"\r\n},\r\n\"devDependencies\": {\r\n \"@angular-devkit/build-angular\": \"~15.2.0\",\r\n \"@angular/compiler-cli\": \"~15.2.0\",\r\n \"@nativescript-dom/angular-types\": \"^1.0.6\",\r\n \"@nativescript-dom/core-types\": \"^1.0.25\",\r\n \"@nativescript/android\": \"~8.5.0\",\r\n \"@nativescript/ios\": \"~8.5.2\",\r\n \"@nativescript/types\": \"~8.5.0\",\r\n \"@nativescript/webpack\": \"5.0.16\",\r\n \"@ngtools/webpack\": \"~15.2.0\",\r\n \"nativescript-worker-loader\": \"^0.12.1\",\r\n \"ts-loader\": \"^8.0.18\",\r\n \"typescript\": \"~4.8.4\"\r\n}\r\n```\r\n\r\n\r\n[Screenshot Android ](https://imgur.com/qjn3WkU)\r\n\r\n[Screenshot IOS](https://imgur.com/CsLosSB)\r\n\r\n\r\n\r\n### Please accept these terms\r\n\r\n- [X] I have searched the [existing issues](https://github.com/NativeScript/NativeScript/issues) as well as [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript) and this has not been posted before\r\n- [X] This is a bug report\r\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)","author":{"url":"https://github.com/Georgelimyh","@type":"Person","name":"Georgelimyh"},"datePublished":"2023-08-07T02:01:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/10360/NativeScript/issues/10360"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e2034d2e-5ed6-3662-8dd9-40d0ab1acc87 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E52A:174FB1:16D5527:1E808AF:696AE43A |
| html-safe-nonce | 4d66767772b8676ed076ddb175b47011a3e22c1100212e0ac87e9cb0402ac102 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTJBOjE3NEZCMToxNkQ1NTI3OjFFODA4QUY6Njk2QUU0M0EiLCJ2aXNpdG9yX2lkIjoiNDI0NDg2MjE3NDkzMzczODU1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fb29d3a5c80ee23f2adea788f31d8949dc6077293643c388aa4c85d42f0d078f |
| hovercard-subject-tag | issue:1838542261 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/10360/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b6b253de1306b971c9b34d8fcd039108cb23392a4d2f8dd3f7c5578332f474b4/NativeScript/NativeScript/issues/10360 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b6b253de1306b971c9b34d8fcd039108cb23392a4d2f8dd3f7c5578332f474b4/NativeScript/NativeScript/issues/10360 |
| og:image:alt | Issue Description Transparent CSS is not working in Android but it works in iOS. I have a modal page that suppose to show transparent background. In Android when the modal loaded, it shows a white ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Georgelimyh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3d84d50b3c75fa36755c3cf392edbc09e626f979 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width