{"action":"created","comment":{"url":"https://api.github.com/repos/ticketmaster/aurora/pulls/comments/226499797","pull_request_review_id":166337627,"id":226499797,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjQ5OTc5Nw==","diff_hunk":"@@ -0,0 +1,107 @@\n+import styled from \"styled-components\";\n+import { themes, constants, spacing, typography } from \"../../theme\";\n+\n+const StyledTooltip = styled.div`\n+  background-color: ${themes.global.white.base};\n+  border: 1px solid ${themes.global.gray02};\n+  border-radius: ${constants.borderRadius.large};\n+  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.12);\n+  position: absolute;\n+  max-width: 260px;\n+  color: ${themes.global.gray01};\n+  padding: ${spacing.cozy};\n+  display: ${({ isVisible }) => (isVisible ? \"block\" : \"none\")};\n+  font-size: ${typography.size.uno};\n+  transition: opacity 0.1s ${constants.easing.easeInQuad},\n+    transform 0.1s ${constants.easing.easeInQuad};\n+\n+  :before {\n+    content: \"\";\n+    position: absolute;\n+    transition: opacity 0.1s ${constants.easing.easeInQuad},\n+      scale 0.1s ${constants.easing.easeInQuad};\n+    display: ${({ isVisible }) => (isVisible ? \"inline-block\" : \"none\")};\n+    border-right: 1px solid ${themes.global.gray02};\n+    border-bottom: 1px solid ${themes.global.gray02};\n+    border-top-left-radius: 100%;\n+    width: 12px;\n+    height: 12px;\n+    transform: translateY(-50%) rotate(-135deg);\n+    background: ${themes.global.white.base};\n+    ${({ direction }) => {\n+      switch (direction) {\n+        case \"top\":\n+          return \"left: calc(50% - 9.5px); bottom: -13px; transform: translateY(-50%) rotate(45deg);\";\n+        case \"bottom\":\n+          return \"left: calc(50% - 9.5px); top: -1px; transform: translateY(-50%) rotate(-135deg);\";\n+        case \"left\":\n+          return \"top: 10px; right: -7px; transform: translateY(0%) rotate(-45deg);\";\n+        case \"right\":","path":"src/components/Tooltip/Tooltip.styles.js","position":39,"original_position":39,"commit_id":"eeaa5543408f088a9b2ff577fa63f3aa4c6dab92","original_commit_id":"eeaa5543408f088a9b2ff577fa63f3aa4c6dab92","user":{"login":"mlampedx","id":20174565,"node_id":"MDQ6VXNlcjIwMTc0NTY1","avatar_url":"https://avatars0.githubusercontent.com/u/20174565?v=4","gravatar_id":"","url":"https://api.github.com/users/mlampedx","html_url":"https://github.com/mlampedx","followers_url":"https://api.github.com/users/mlampedx/followers","following_url":"https://api.github.com/users/mlampedx/following{/other_user}","gists_url":"https://api.github.com/users/mlampedx/gists{/gist_id}","starred_url":"https://api.github.com/users/mlampedx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlampedx/subscriptions","organizations_url":"https://api.github.com/users/mlampedx/orgs","repos_url":"https://api.github.com/users/mlampedx/repos","events_url":"https://api.github.com/users/mlampedx/events{/privacy}","received_events_url":"https://api.github.com/users/mlampedx/received_events","type":"User","site_admin":false},"body":"Please make these directions into constants across this PR","created_at":"2018-10-18T23:51:30Z","updated_at":"2018-10-18T23:59:26Z","html_url":"https://github.com/ticketmaster/aurora/pull/265#discussion_r226499797","pull_request_url":"https://api.github.com/repos/ticketmaster/aurora/pulls/265","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/ticketmaster/aurora/pulls/comments/226499797"},"html":{"href":"https://github.com/ticketmaster/aurora/pull/265#discussion_r226499797"},"pull_request":{"href":"https://api.github.com/repos/ticketmaster/aurora/pulls/265"}}},"pull_request":{"url":"https://api.github.com/repos/ticketmaster/aurora/pulls/265","id":224002122,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0MDAyMTIy","html_url":"https://github.com/ticketmaster/aurora/pull/265","diff_url":"https://github.com/ticketmaster/aurora/pull/265.diff","patch_url":"https://github.com/ticketmaster/aurora/pull/265.patch","issue_url":"https://api.github.com/repos/ticketmaster/aurora/issues/265","number":265,"state":"open","locked":false,"title":"feat(Tooltip): add tooltip component","user":{"login":"nyonchev","id":973830,"node_id":"MDQ6VXNlcjk3MzgzMA==","avatar_url":"https://avatars2.githubusercontent.com/u/973830?v=4","gravatar_id":"","url":"https://api.github.com/users/nyonchev","html_url":"https://github.com/nyonchev","followers_url":"https://api.github.com/users/nyonchev/followers","following_url":"https://api.github.com/users/nyonchev/following{/other_user}","gists_url":"https://api.github.com/users/nyonchev/gists{/gist_id}","starred_url":"https://api.github.com/users/nyonchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyonchev/subscriptions","organizations_url":"https://api.github.com/users/nyonchev/orgs","repos_url":"https://api.github.com/users/nyonchev/repos","events_url":"https://api.github.com/users/nyonchev/events{/privacy}","received_events_url":"https://api.github.com/users/nyonchev/received_events","type":"User","site_admin":false},"body":"**What**:\r\n\r\nTooltip component. Supports four directions - top, bottom, left, right. By default it is bottom. Tooltip requires position prop which is generated by Tooltip.getDimensionsFromEvent static function which requires only mouse event as in parameter. The function returns object which should be passed to Tooltip component as position prop so the tooltip renders correctly on the screen.\r\n\r\n**Why**:\r\n\r\nFeature was requested\r\n\r\n**How**:\r\n\r\nImplementing absolute positioned container.\r\n\r\n**Checklist**:\r\n\r\n* [x] Documentation\r\n* [x] Tests\r\n* [x] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->\r\n","created_at":"2018-10-18T15:31:06Z","updated_at":"2018-10-18T23:59:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3fcaeda395c6f2a83a0c2a139cc57facdc76cf9a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ticketmaster/aurora/pulls/265/commits","review_comments_url":"https://api.github.com/repos/ticketmaster/aurora/pulls/265/comments","review_comment_url":"https://api.github.com/repos/ticketmaster/aurora/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ticketmaster/aurora/issues/265/comments","statuses_url":"https://api.github.com/repos/ticketmaster/aurora/statuses/eeaa5543408f088a9b2ff577fa63f3aa4c6dab92","head":{"label":"nyonchev:feat-tooltips","ref":"feat-tooltips","sha":"eeaa5543408f088a9b2ff577fa63f3aa4c6dab92","user":{"login":"nyonchev","id":973830,"node_id":"MDQ6VXNlcjk3MzgzMA==","avatar_url":"https://avatars2.githubusercontent.com/u/973830?v=4","gravatar_id":"","url":"https://api.github.com/users/nyonchev","html_url":"https://github.com/nyonchev","followers_url":"https://api.github.com/users/nyonchev/followers","following_url":"https://api.github.com/users/nyonchev/following{/other_user}","gists_url":"https://api.github.com/users/nyonchev/gists{/gist_id}","starred_url":"https://api.github.com/users/nyonchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyonchev/subscriptions","organizations_url":"https://api.github.com/users/nyonchev/orgs","repos_url":"https://api.github.com/users/nyonchev/repos","events_url":"https://api.github.com/users/nyonchev/events{/privacy}","received_events_url":"https://api.github.com/users/nyonchev/received_events","type":"User","site_admin":false},"repo":{"id":141640439,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE2NDA0Mzk=","name":"prism","full_name":"nyonchev/prism","private":false,"owner":{"login":"nyonchev","id":973830,"node_id":"MDQ6VXNlcjk3MzgzMA==","avatar_url":"https://avatars2.githubusercontent.com/u/973830?v=4","gravatar_id":"","url":"https://api.github.com/users/nyonchev","html_url":"https://github.com/nyonchev","followers_url":"https://api.github.com/users/nyonchev/followers","following_url":"https://api.github.com/users/nyonchev/following{/other_user}","gists_url":"https://api.github.com/users/nyonchev/gists{/gist_id}","starred_url":"https://api.github.com/users/nyonchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyonchev/subscriptions","organizations_url":"https://api.github.com/users/nyonchev/orgs","repos_url":"https://api.github.com/users/nyonchev/repos","events_url":"https://api.github.com/users/nyonchev/events{/privacy}","received_events_url":"https://api.github.com/users/nyonchev/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nyonchev/prism","description":"Shared UI Library for Ticketmaster","fork":true,"url":"https://api.github.com/repos/nyonchev/prism","forks_url":"https://api.github.com/repos/nyonchev/prism/forks","keys_url":"https://api.github.com/repos/nyonchev/prism/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nyonchev/prism/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nyonchev/prism/teams","hooks_url":"https://api.github.com/repos/nyonchev/prism/hooks","issue_events_url":"https://api.github.com/repos/nyonchev/prism/issues/events{/number}","events_url":"https://api.github.com/repos/nyonchev/prism/events","assignees_url":"https://api.github.com/repos/nyonchev/prism/assignees{/user}","branches_url":"https://api.github.com/repos/nyonchev/prism/branches{/branch}","tags_url":"https://api.github.com/repos/nyonchev/prism/tags","blobs_url":"https://api.github.com/repos/nyonchev/prism/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nyonchev/prism/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nyonchev/prism/git/refs{/sha}","trees_url":"https://api.github.com/repos/nyonchev/prism/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nyonchev/prism/statuses/{sha}","languages_url":"https://api.github.com/repos/nyonchev/prism/languages","stargazers_url":"https://api.github.com/repos/nyonchev/prism/stargazers","contributors_url":"https://api.github.com/repos/nyonchev/prism/contributors","subscribers_url":"https://api.github.com/repos/nyonchev/prism/subscribers","subscription_url":"https://api.github.com/repos/nyonchev/prism/subscription","commits_url":"https://api.github.com/repos/nyonchev/prism/commits{/sha}","git_commits_url":"https://api.github.com/repos/nyonchev/prism/git/commits{/sha}","comments_url":"https://api.github.com/repos/nyonchev/prism/comments{/number}","issue_comment_url":"https://api.github.com/repos/nyonchev/prism/issues/comments{/number}","contents_url":"https://api.github.com/repos/nyonchev/prism/contents/{+path}","compare_url":"https://api.github.com/repos/nyonchev/prism/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nyonchev/prism/merges","archive_url":"https://api.github.com/repos/nyonchev/prism/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nyonchev/prism/downloads","issues_url":"https://api.github.com/repos/nyonchev/prism/issues{/number}","pulls_url":"https://api.github.com/repos/nyonchev/prism/pulls{/number}","milestones_url":"https://api.github.com/repos/nyonchev/prism/milestones{/number}","notifications_url":"https://api.github.com/repos/nyonchev/prism/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nyonchev/prism/labels{/name}","releases_url":"https://api.github.com/repos/nyonchev/prism/releases{/id}","deployments_url":"https://api.github.com/repos/nyonchev/prism/deployments","created_at":"2018-07-19T23:30:05Z","updated_at":"2018-08-14T23:33:22Z","pushed_at":"2018-10-18T23:43:38Z","git_url":"git://github.com/nyonchev/prism.git","ssh_url":"git@github.com:nyonchev/prism.git","clone_url":"https://github.com/nyonchev/prism.git","svn_url":"https://github.com/nyonchev/prism","homepage":"https://code.ticketmaster.com/prism/","size":10214,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ticketmaster:master","ref":"master","sha":"2f92182ad4a1cc529267e03c20078b087ce5d877","user":{"login":"ticketmaster","id":5680728,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2ODA3Mjg=","avatar_url":"https://avatars2.githubusercontent.com/u/5680728?v=4","gravatar_id":"","url":"https://api.github.com/users/ticketmaster","html_url":"https://github.com/ticketmaster","followers_url":"https://api.github.com/users/ticketmaster/followers","following_url":"https://api.github.com/users/ticketmaster/following{/other_user}","gists_url":"https://api.github.com/users/ticketmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/ticketmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ticketmaster/subscriptions","organizations_url":"https://api.github.com/users/ticketmaster/orgs","repos_url":"https://api.github.com/users/ticketmaster/repos","events_url":"https://api.github.com/users/ticketmaster/events{/privacy}","received_events_url":"https://api.github.com/users/ticketmaster/received_events","type":"Organization","site_admin":false},"repo":{"id":131040509,"node_id":"MDEwOlJlcG9zaXRvcnkxMzEwNDA1MDk=","name":"aurora","full_name":"ticketmaster/aurora","private":false,"owner":{"login":"ticketmaster","id":5680728,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2ODA3Mjg=","avatar_url":"https://avatars2.githubusercontent.com/u/5680728?v=4","gravatar_id":"","url":"https://api.github.com/users/ticketmaster","html_url":"https://github.com/ticketmaster","followers_url":"https://api.github.com/users/ticketmaster/followers","following_url":"https://api.github.com/users/ticketmaster/following{/other_user}","gists_url":"https://api.github.com/users/ticketmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/ticketmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ticketmaster/subscriptions","organizations_url":"https://api.github.com/users/ticketmaster/orgs","repos_url":"https://api.github.com/users/ticketmaster/repos","events_url":"https://api.github.com/users/ticketmaster/events{/privacy}","received_events_url":"https://api.github.com/users/ticketmaster/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ticketmaster/aurora","description":"Shared UI Library for Ticketmaster","fork":false,"url":"https://api.github.com/repos/ticketmaster/aurora","forks_url":"https://api.github.com/repos/ticketmaster/aurora/forks","keys_url":"https://api.github.com/repos/ticketmaster/aurora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ticketmaster/aurora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ticketmaster/aurora/teams","hooks_url":"https://api.github.com/repos/ticketmaster/aurora/hooks","issue_events_url":"https://api.github.com/repos/ticketmaster/aurora/issues/events{/number}","events_url":"https://api.github.com/repos/ticketmaster/aurora/events","assignees_url":"https://api.github.com/repos/ticketmaster/aurora/assignees{/user}","branches_url":"https://api.github.com/repos/ticketmaster/aurora/branches{/branch}","tags_url":"https://api.github.com/repos/ticketmaster/aurora/tags","blobs_url":"https://api.github.com/repos/ticketmaster/aurora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ticketmaster/aurora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ticketmaster/aurora/git/refs{/sha}","trees_url":"https://api.github.com/repos/ticketmaster/aurora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ticketmaster/aurora/statuses/{sha}","languages_url":"https://api.github.com/repos/ticketmaster/aurora/languages","stargazers_url":"https://api.github.com/repos/ticketmaster/aurora/stargazers","contributors_url":"https://api.github.com/repos/ticketmaster/aurora/contributors","subscribers_url":"https://api.github.com/repos/ticketmaster/aurora/subscribers","subscription_url":"https://api.github.com/repos/ticketmaster/aurora/subscription","commits_url":"https://api.github.com/repos/ticketmaster/aurora/commits{/sha}","git_commits_url":"https://api.github.com/repos/ticketmaster/aurora/git/commits{/sha}","comments_url":"https://api.github.com/repos/ticketmaster/aurora/comments{/number}","issue_comment_url":"https://api.github.com/repos/ticketmaster/aurora/issues/comments{/number}","contents_url":"https://api.github.com/repos/ticketmaster/aurora/contents/{+path}","compare_url":"https://api.github.com/repos/ticketmaster/aurora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ticketmaster/aurora/merges","archive_url":"https://api.github.com/repos/ticketmaster/aurora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ticketmaster/aurora/downloads","issues_url":"https://api.github.com/repos/ticketmaster/aurora/issues{/number}","pulls_url":"https://api.github.com/repos/ticketmaster/aurora/pulls{/number}","milestones_url":"https://api.github.com/repos/ticketmaster/aurora/milestones{/number}","notifications_url":"https://api.github.com/repos/ticketmaster/aurora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ticketmaster/aurora/labels{/name}","releases_url":"https://api.github.com/repos/ticketmaster/aurora/releases{/id}","deployments_url":"https://api.github.com/repos/ticketmaster/aurora/deployments","created_at":"2018-04-25T17:21:56Z","updated_at":"2018-10-18T23:43:14Z","pushed_at":"2018-10-18T23:47:26Z","git_url":"git://github.com/ticketmaster/aurora.git","ssh_url":"git@github.com:ticketmaster/aurora.git","clone_url":"https://github.com/ticketmaster/aurora.git","svn_url":"https://github.com/ticketmaster/aurora","homepage":"","size":41045,"stargazers_count":32,"watchers_count":32,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":19,"open_issues":11,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ticketmaster/aurora/pulls/265"},"html":{"href":"https://github.com/ticketmaster/aurora/pull/265"},"issue":{"href":"https://api.github.com/repos/ticketmaster/aurora/issues/265"},"comments":{"href":"https://api.github.com/repos/ticketmaster/aurora/issues/265/comments"},"review_comments":{"href":"https://api.github.com/repos/ticketmaster/aurora/pulls/265/comments"},"review_comment":{"href":"https://api.github.com/repos/ticketmaster/aurora/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ticketmaster/aurora/pulls/265/commits"},"statuses":{"href":"https://api.github.com/repos/ticketmaster/aurora/statuses/eeaa5543408f088a9b2ff577fa63f3aa4c6dab92"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mlampedx"}}