Title: Theme switching light <-> dark mode not working correctly on IOS in NS Angular project · Issue #296 · NativeScript/theme · GitHub
Open Graph Title: Theme switching light <-> dark mode not working correctly on IOS in NS Angular project · Issue #296 · NativeScript/theme
X Title: Theme switching light <-> dark mode not working correctly on IOS in NS Angular project · Issue #296 · NativeScript/theme
Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 8.1.0 Cross-platform modules: "@nativescrip...
Open Graph Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 8.1...
X Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 8.1...
Opengraph URL: https://github.com/NativeScript/theme/issues/296
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Theme switching light \u003c-\u003e dark mode not working correctly on IOS in NS Angular project","articleBody":"**Environment**\r\nProvide version numbers for the following components (information can be retrieved by running `tns info` in your project folder or by inspecting the `package.json` of the project):\r\n - CLI: 8.1.0\r\n - Cross-platform modules: \"@nativescript/core\": \"~8.1.2\",\r\n - iOS Runtime: JSC\r\n - Plugin(s): \"@nativescript/theme\": \"~3.0.1\"\r\n\r\n**Describe the bug**\r\nWhen switching between dark and light mode The new theme is not applied correctly. It looks like pages in the history of the navigation stack do not get the new styles applied. When I navigate back in the page history the styles are partly from the old theme. When I than navigate forward again, the new theme styles are applied correctly.\r\n\r\nIn my _app-common.scss file I assign the styles as follows:\r\n\r\n```\r\n.mnd .text-field-grey {\r\n\tcolor: $dark-grey-text-color;\r\n\tbackground-color: $light-grey-color;\r\n}\r\n.ns-dark .mnd .text-field-grey {\r\n\tcolor: $very-light-grey-color;\r\n\tbackground-color: $medium-dark-grey-color;\r\n}\r\n```\r\n\r\nand in the component specific scss files, I am using the following syntax:\r\n\r\n```\r\n.mnd .searchbar-bg {\r\n\tbackground-color: white;\r\n}\r\n.ns-root.ns-dark :host .mnd .searchbar-bg {\r\n\tbackground-color: $dark-mode-light-grey-blue;\r\n}\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/cjohn001","@type":"Person","name":"cjohn001"},"datePublished":"2021-09-18T12:49:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/296/theme/issues/296"}
| 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:be3102f2-3d24-539b-c49a-dc9edb7cc427 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C00E:18DAFA:472B7E:6100E7:6A626E99 |
| html-safe-nonce | d2424ae513c4933cc3b417119cb316752f4ffd538ee62fa73a51a6e705b4521e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDBFOjE4REFGQTo0NzJCN0U6NjEwMEU3OjZBNjI2RTk5IiwidmlzaXRvcl9pZCI6Ijg5MDEyMDk4MzA1OTUyNTI3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b09c486a09e873531afa141d6cb6ba76bc762c8891bdd713ef0df0ffd18d8c66 |
| hovercard-subject-tag | issue:1000027314 |
| 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/theme/296/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4af5fa4d9934f37f47365141122a89619aedbc18406e1b96ed84098d34aa0777/NativeScript/theme/issues/296 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4af5fa4d9934f37f47365141122a89619aedbc18406e1b96ed84098d34aa0777/NativeScript/theme/issues/296 |
| og:image:alt | Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 8.1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cjohn001 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19769ef9d383a84eeab48bb9b309078c20f4532b73eae2f9713b18406513e0ad |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/theme git https://github.com/NativeScript/theme.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 64524068 |
| octolytics-dimension-repository_nwo | NativeScript/theme |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 64524068 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/theme |
| 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 | 76dc6b11f13eaeec1329217c9f16c262ade27a1e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width