Title: FormattedString inside Button has wrong background color after animation · Issue #4938 · NativeScript/NativeScript · GitHub
Open Graph Title: FormattedString inside Button has wrong background color after animation · Issue #4938 · NativeScript/NativeScript
X Title: FormattedString inside Button has wrong background color after animation · Issue #4938 · NativeScript/NativeScript
Description: Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo? Yes, I did not found any. Tell us about the problem When using Button with FormattedString inside it and the background color of th...
Open Graph Description: Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo? Yes, I did not found any. Tell us about the problem When using Button with FormattedString ...
X Description: Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo? Yes, I did not found any. Tell us about the problem When using Button with FormattedString ...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/4938
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"FormattedString inside Button has wrong background color after animation","articleBody":"### Did you verify this is a real problem by searching [Stack Overflow](http://stackoverflow.com/questions/tagged/nativescript) and the [other open issues in this repo](https://github.com/NativeScript/nativescript/issues)?\r\nYes, I did not found any.\r\n\r\n### Tell us about the problem\r\nWhen using `Button` with `FormattedString` inside it and the background color of the `Button` is changed via animation, the background color of the `FormattedString` is not changed.\r\n\r\n\r\n### Which platform(s) does your issue occur on?\r\nAndroid\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n- CLI: 3.2.1\r\n- Cross-platform modules: 3.1.1\r\n- Runtime(s): 3.2.0\r\n- Plugin(s):\r\n```\r\n\"dependencies\": {\r\n \"@angular/animations\": \"~4.2.0\",\r\n \"@angular/common\": \"~4.2.0\",\r\n \"@angular/compiler\": \"~4.2.0\",\r\n \"@angular/core\": \"~4.2.0\",\r\n \"@angular/forms\": \"~4.2.0\",\r\n \"@angular/http\": \"~4.2.0\",\r\n \"@angular/platform-browser\": \"~4.2.0\",\r\n \"@angular/router\": \"~4.2.0\",\r\n \"nativescript-angular\": \"~4.2.0\",\r\n \"nativescript-theme-core\": \"~1.0.2\",\r\n \"reflect-metadata\": \"~0.1.8\",\r\n \"rxjs\": \"~5.4.2\",\r\n \"tns-core-modules\": \"~3.1.0\",\r\n \"zone.js\": \"~0.8.2\"\r\n }\r\n```\r\nThis problem was not occuring with the cross-platform modules **3.0.0** and android runtime **3.1.1**.\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\nReproduced behavior in playground: https://play.nativescript.org/?id=8cArU2Fb8w0jPjDWXtvV0\r\n\r\n1. Create new {N} application: `tns create MyApp --ng`\r\n2. Add `Button` with `FormattedString` in it\r\n3. Animate the background color of the button\r\n4. The background color of the `FormattedString` is not changed\r\n\r\n### Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.\r\nview:\r\n```\r\n\u003cButton\u003e\r\n \u003cFormattedString\u003e\r\n \u003cSpan text=\"button text\"\u003e\u003c/Span\u003e\r\n \u003c/FormattedString\u003e\r\n\u003c/Button\u003e\r\n```\r\ncss:\r\n```\r\nButton {\r\n background-color: green;\r\n animation-name: button-highligh;\r\n animation-duration: 1s;\r\n animation-fill-mode: forwards;\r\n}\r\n\r\n@keyframes button-highligh {\r\n from { background-color: green; }\r\n to { background-color: blue; }\r\n}\r\n```\r\n\r\n\u003cbountysource-plugin\u003e\r\n\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/50183449-formattedstring-inside-button-has-wrong-background-color-after-animation?utm_campaign=plugin\u0026utm_content=tracker%2F12908224\u0026utm_medium=issues\u0026utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin\u0026utm_content=tracker%2F12908224\u0026utm_medium=issues\u0026utm_source=github).\r\n\u003c/bountysource-plugin\u003e","author":{"url":"https://github.com/doumr","@type":"Person","name":"doumr"},"datePublished":"2017-10-11T19:59:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/4938/NativeScript/issues/4938"}
| 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:7c3025a5-20f7-1885-1e0f-709ece7e9ae8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A77A:3DFBA:82307D:AD32DB:6A6005D2 |
| html-safe-nonce | 851af52b54c121786c8c94778a984191bedc02fe3d5d17636bb40532a82b13f6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzdBOjNERkJBOjgyMzA3RDpBRDMyREI6NkE2MDA1RDIiLCJ2aXNpdG9yX2lkIjoiOTIyMzU3NTU5MDYxMzk2MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b7ac945d968bde8b4b58d4469a8399cd9af4f1768c571f3ad68e553e60c8a0c8 |
| hovercard-subject-tag | issue:264716649 |
| 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/4938/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1d65435bf4adbaaf4ba950c0b44c4b778b9bacae79bd2f52c747ee04213fa070/NativeScript/NativeScript/issues/4938 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1d65435bf4adbaaf4ba950c0b44c4b778b9bacae79bd2f52c747ee04213fa070/NativeScript/NativeScript/issues/4938 |
| og:image:alt | Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo? Yes, I did not found any. Tell us about the problem When using Button with FormattedString ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | doumr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5789899e92b20db289de946d86eb20bf5c9626276695d68f58a8c47cdda699b7 |
| 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 | 6ddc048ddf80664b9b33547b619db10313c482f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width