{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/1112","repository_url":"https://api.github.com/repos/Microsoft/AdaptiveCards","labels_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/1112/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/1112/comments","events_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/1112/events","html_url":"https://github.com/Microsoft/AdaptiveCards/issues/1112","id":295251058,"number":1112,"title":"font colours different on slack and Telegram","user":{"login":"yogiderek","id":2614368,"avatar_url":"https://avatars1.githubusercontent.com/u/2614368?v=4","gravatar_id":"","url":"https://api.github.com/users/yogiderek","html_url":"https://github.com/yogiderek","followers_url":"https://api.github.com/users/yogiderek/followers","following_url":"https://api.github.com/users/yogiderek/following{/other_user}","gists_url":"https://api.github.com/users/yogiderek/gists{/gist_id}","starred_url":"https://api.github.com/users/yogiderek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogiderek/subscriptions","organizations_url":"https://api.github.com/users/yogiderek/orgs","repos_url":"https://api.github.com/users/yogiderek/repos","events_url":"https://api.github.com/users/yogiderek/events{/privacy}","received_events_url":"https://api.github.com/users/yogiderek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-07T18:49:41Z","updated_at":"2018-02-07T18:59:16Z","closed_at":null,"author_association":"NONE","body":"## Bot Info\r\n* SDK Platform: .NET\r\n* SDK Version:  3.13.0.3\r\n* Adaptive Cards Version:  1.0.0-beta11\r\n* Active Channels: Web Chat, Slack, Telegram\r\n* Deployment Environment: Azure Bot Service\r\n\r\n## Issue Description\r\nIn Web Chat my adaptive card correctly shows notification text related to today and tomorrow in red and 2 days from today in yellow. However, in Slack and Telegram, the notification text colour is swapped around i.e. text related to today and tomorrow is yellow and 2 days from today is now red.\r\n\r\nNote also that the alignment of images is correct in both Slack and Telegram but not in Chat.\r\n\r\n## Code Example\r\n            int numDays = (int)(kvp.Key - DateTime.Today).TotalDays;\r\n            string days = string.Format(\"{0} days' time.\", numDays);\r\n            AdaptiveTextColor color = AdaptiveTextColor.Default;\r\n            AdaptiveTextWeight weight = AdaptiveTextWeight.Default;\r\n            bool isSubtle = true;\r\n            if (numDays == 0)\r\n            {\r\n                days = \"Today\";\r\n                color = AdaptiveTextColor.Warning;\r\n                weight = AdaptiveTextWeight.Bolder;\r\n                isSubtle = false;\r\n            }\r\n            else if (numDays == 1)\r\n            {\r\n                days = \"Tomorrow\";\r\n                color = AdaptiveTextColor.Warning;\r\n                weight = AdaptiveTextWeight.Bolder;\r\n                isSubtle = false;\r\n            }\r\n            else if (numDays == 2)\r\n            {\r\n                color = AdaptiveTextColor.Attention;\r\n                weight = AdaptiveTextWeight.Bolder;\r\n                isSubtle = false;\r\n            }\r\n            else\r\n            {\r\n            }\r\n\r\n## Expected Behaviour\r\nText colour to be consistent across all channels.\r\n\r\n## Actual Results\r\nRed is now yellow and yellow is now red in the Slack and Telegram channels. See screenshots, image order is Web Chat, Slack, Telegram.\r\n\r\n![chat](https://user-images.githubusercontent.com/2614368/35935035-235f530c-0c37-11e8-962e-fc7fed7e60c7.png)\r\n![slack](https://user-images.githubusercontent.com/2614368/35935037-23838b96-0c37-11e8-83d4-362e4b19b1ff.png)\r\n![telegram](https://user-images.githubusercontent.com/2614368/35935039-23aaa42e-0c37-11e8-81c8-212945a2a54c.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/comments/363873552","html_url":"https://github.com/Microsoft/AdaptiveCards/issues/1112#issuecomment-363873552","issue_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/1112","id":363873552,"user":{"login":"dclaux","id":1334689,"avatar_url":"https://avatars1.githubusercontent.com/u/1334689?v=4","gravatar_id":"","url":"https://api.github.com/users/dclaux","html_url":"https://github.com/dclaux","followers_url":"https://api.github.com/users/dclaux/followers","following_url":"https://api.github.com/users/dclaux/following{/other_user}","gists_url":"https://api.github.com/users/dclaux/gists{/gist_id}","starred_url":"https://api.github.com/users/dclaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dclaux/subscriptions","organizations_url":"https://api.github.com/users/dclaux/orgs","repos_url":"https://api.github.com/users/dclaux/repos","events_url":"https://api.github.com/users/dclaux/events{/privacy}","received_events_url":"https://api.github.com/users/dclaux/received_events","type":"User","site_admin":false},"created_at":"2018-02-07T18:59:16Z","updated_at":"2018-02-07T18:59:16Z","author_association":"MEMBER","body":"While each host is free to pick its preferred colors for the various named colors Adaptive provides, it does seem that Slack and Telegram should invert the attention and warning colors as red is usually the better color for a \"warning\""}}
{"actor":{"display_login":"dclaux"}}