{"action":"closed","number":12,"pull_request":{"url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/pulls/12","id":56972171,"html_url":"https://github.com/PolymerElements/iron-demo-helpers/pull/12","diff_url":"https://github.com/PolymerElements/iron-demo-helpers/pull/12.diff","patch_url":"https://github.com/PolymerElements/iron-demo-helpers/pull/12.patch","issue_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/issues/12","number":12,"state":"closed","locked":false,"title":"add copy to clipboard functionality","user":{"login":"notwaldorf","id":1369170,"avatar_url":"https://avatars.githubusercontent.com/u/1369170?v=3","gravatar_id":"","url":"https://api.github.com/users/notwaldorf","html_url":"https://github.com/notwaldorf","followers_url":"https://api.github.com/users/notwaldorf/followers","following_url":"https://api.github.com/users/notwaldorf/following{/other_user}","gists_url":"https://api.github.com/users/notwaldorf/gists{/gist_id}","starred_url":"https://api.github.com/users/notwaldorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notwaldorf/subscriptions","organizations_url":"https://api.github.com/users/notwaldorf/orgs","repos_url":"https://api.github.com/users/notwaldorf/repos","events_url":"https://api.github.com/users/notwaldorf/events{/privacy}","received_events_url":"https://api.github.com/users/notwaldorf/received_events","type":"User","site_admin":false},"body":"I blatantly stole the copy-to-clipboard functionality from MDL (thanks @addyosmani!) and added it to this element. Unlike MDL, though, I made it as a separate button (vs. allowing a click anywhere to count as a copy). I figured if we add another button for live edits in the future, it might make it easier to not change this again.\r\n\r\nIt looks like this. The button reverts state once you hover/blur away from it. (this gif is a bummer and the compression loses the code background colour)\r\n![copy2](https://cloud.githubusercontent.com/assets/1369170/12529586/3cd4a58e-c171-11e5-9f8e-110bd322851c.gif)\r\n\r\nThis is what it looks like when it's not doing anything because that gif is a potato:\r\n<img width=\"524\" alt=\"screen shot 2016-01-23 at 1 30 42 am\" src=\"https://cloud.githubusercontent.com/assets/1369170/12529578/f0780b0e-c170-11e5-9fc4-845d91c7084d.png\">\r\n\r\nNote that I used the \"paste\" icon (because I thought it inspired a clipboard) more than the \"copy\" icon, which is this:\r\n<img width=\"114\" alt=\"screen shot 2016-01-23 at 1 36 27 am\" src=\"https://cloud.githubusercontent.com/assets/1369170/12529593/bd399eb4-c171-11e5-992d-2047a4752958.png\">\r\n\r\nI don't really have an opinion. Neither of those icons make sense to me :(\r\n\r\nI also changed the hardcoded colours to their paper equivalents because why not.\r\n🎈 ","created_at":"2016-01-23T09:15:53Z","updated_at":"2016-02-12T18:47:36Z","closed_at":"2016-02-12T18:47:36Z","merged_at":"2016-02-12T18:47:36Z","merge_commit_sha":"cedcd2e993b176b6aad9e7ddb302a68d7be8ea5e","assignee":{"login":"cdata","id":240083,"avatar_url":"https://avatars.githubusercontent.com/u/240083?v=3","gravatar_id":"","url":"https://api.github.com/users/cdata","html_url":"https://github.com/cdata","followers_url":"https://api.github.com/users/cdata/followers","following_url":"https://api.github.com/users/cdata/following{/other_user}","gists_url":"https://api.github.com/users/cdata/gists{/gist_id}","starred_url":"https://api.github.com/users/cdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdata/subscriptions","organizations_url":"https://api.github.com/users/cdata/orgs","repos_url":"https://api.github.com/users/cdata/repos","events_url":"https://api.github.com/users/cdata/events{/privacy}","received_events_url":"https://api.github.com/users/cdata/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/pulls/12/commits","review_comments_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/pulls/12/comments","review_comment_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/issues/12/comments","statuses_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/statuses/cf4ab2d537c851eee7f0124b7ea9e9b47f06ecfa","head":{"label":"PolymerElements:copy-to-clipboard","ref":"copy-to-clipboard","sha":"cf4ab2d537c851eee7f0124b7ea9e9b47f06ecfa","user":{"login":"PolymerElements","id":11639138,"avatar_url":"https://avatars.githubusercontent.com/u/11639138?v=3","gravatar_id":"","url":"https://api.github.com/users/PolymerElements","html_url":"https://github.com/PolymerElements","followers_url":"https://api.github.com/users/PolymerElements/followers","following_url":"https://api.github.com/users/PolymerElements/following{/other_user}","gists_url":"https://api.github.com/users/PolymerElements/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerElements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerElements/subscriptions","organizations_url":"https://api.github.com/users/PolymerElements/orgs","repos_url":"https://api.github.com/users/PolymerElements/repos","events_url":"https://api.github.com/users/PolymerElements/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerElements/received_events","type":"Organization","site_admin":false},"repo":{"id":46450850,"name":"iron-demo-helpers","full_name":"PolymerElements/iron-demo-helpers","owner":{"login":"PolymerElements","id":11639138,"avatar_url":"https://avatars.githubusercontent.com/u/11639138?v=3","gravatar_id":"","url":"https://api.github.com/users/PolymerElements","html_url":"https://github.com/PolymerElements","followers_url":"https://api.github.com/users/PolymerElements/followers","following_url":"https://api.github.com/users/PolymerElements/following{/other_user}","gists_url":"https://api.github.com/users/PolymerElements/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerElements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerElements/subscriptions","organizations_url":"https://api.github.com/users/PolymerElements/orgs","repos_url":"https://api.github.com/users/PolymerElements/repos","events_url":"https://api.github.com/users/PolymerElements/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerElements/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolymerElements/iron-demo-helpers","description":"Utility classes to make building demo pages easier","fork":false,"url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers","forks_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/forks","keys_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/teams","hooks_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/hooks","issue_events_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/issues/events{/number}","events_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/events","assignees_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/assignees{/user}","branches_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/branches{/branch}","tags_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/tags","blobs_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/statuses/{sha}","languages_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/languages","stargazers_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/stargazers","contributors_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/contributors","subscribers_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/subscribers","subscription_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/subscription","commits_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/contents/{+path}","compare_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/merges","archive_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/downloads","issues_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/issues{/number}","pulls_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/pulls{/number}","milestones_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/milestones{/number}","notifications_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/labels{/name}","releases_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/releases{/id}","deployments_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/deployments","created_at":"2015-11-18T22:12:13Z","updated_at":"2016-01-22T22:54:21Z","pushed_at":"2016-02-12T18:47:36Z","git_url":"git://github.com/PolymerElements/iron-demo-helpers.git","ssh_url":"git@github.com:PolymerElements/iron-demo-helpers.git","clone_url":"https://github.com/PolymerElements/iron-demo-helpers.git","svn_url":"https://github.com/PolymerElements/iron-demo-helpers","homepage":"","size":26,"stargazers_count":3,"watchers_count":3,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":3,"default_branch":"master"}},"base":{"label":"PolymerElements:master","ref":"master","sha":"ca4fbb0fe8f7f91db698fa0ed2c6c8fda31fe7a4","user":{"login":"PolymerElements","id":11639138,"avatar_url":"https://avatars.githubusercontent.com/u/11639138?v=3","gravatar_id":"","url":"https://api.github.com/users/PolymerElements","html_url":"https://github.com/PolymerElements","followers_url":"https://api.github.com/users/PolymerElements/followers","following_url":"https://api.github.com/users/PolymerElements/following{/other_user}","gists_url":"https://api.github.com/users/PolymerElements/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerElements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerElements/subscriptions","organizations_url":"https://api.github.com/users/PolymerElements/orgs","repos_url":"https://api.github.com/users/PolymerElements/repos","events_url":"https://api.github.com/users/PolymerElements/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerElements/received_events","type":"Organization","site_admin":false},"repo":{"id":46450850,"name":"iron-demo-helpers","full_name":"PolymerElements/iron-demo-helpers","owner":{"login":"PolymerElements","id":11639138,"avatar_url":"https://avatars.githubusercontent.com/u/11639138?v=3","gravatar_id":"","url":"https://api.github.com/users/PolymerElements","html_url":"https://github.com/PolymerElements","followers_url":"https://api.github.com/users/PolymerElements/followers","following_url":"https://api.github.com/users/PolymerElements/following{/other_user}","gists_url":"https://api.github.com/users/PolymerElements/gists{/gist_id}","starred_url":"https://api.github.com/users/PolymerElements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolymerElements/subscriptions","organizations_url":"https://api.github.com/users/PolymerElements/orgs","repos_url":"https://api.github.com/users/PolymerElements/repos","events_url":"https://api.github.com/users/PolymerElements/events{/privacy}","received_events_url":"https://api.github.com/users/PolymerElements/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolymerElements/iron-demo-helpers","description":"Utility classes to make building demo pages easier","fork":false,"url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers","forks_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/forks","keys_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/teams","hooks_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/hooks","issue_events_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/issues/events{/number}","events_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/events","assignees_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/assignees{/user}","branches_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/branches{/branch}","tags_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/tags","blobs_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/statuses/{sha}","languages_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/languages","stargazers_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/stargazers","contributors_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/contributors","subscribers_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/subscribers","subscription_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/subscription","commits_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/contents/{+path}","compare_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/merges","archive_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/downloads","issues_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/issues{/number}","pulls_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/pulls{/number}","milestones_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/milestones{/number}","notifications_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/labels{/name}","releases_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/releases{/id}","deployments_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/deployments","created_at":"2015-11-18T22:12:13Z","updated_at":"2016-01-22T22:54:21Z","pushed_at":"2016-02-12T18:47:36Z","git_url":"git://github.com/PolymerElements/iron-demo-helpers.git","ssh_url":"git@github.com:PolymerElements/iron-demo-helpers.git","clone_url":"https://github.com/PolymerElements/iron-demo-helpers.git","svn_url":"https://github.com/PolymerElements/iron-demo-helpers","homepage":"","size":26,"stargazers_count":3,"watchers_count":3,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/pulls/12"},"html":{"href":"https://github.com/PolymerElements/iron-demo-helpers/pull/12"},"issue":{"href":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/issues/12"},"comments":{"href":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/statuses/cf4ab2d537c851eee7f0124b7ea9e9b47f06ecfa"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"notwaldorf","id":1369170,"avatar_url":"https://avatars.githubusercontent.com/u/1369170?v=3","gravatar_id":"","url":"https://api.github.com/users/notwaldorf","html_url":"https://github.com/notwaldorf","followers_url":"https://api.github.com/users/notwaldorf/followers","following_url":"https://api.github.com/users/notwaldorf/following{/other_user}","gists_url":"https://api.github.com/users/notwaldorf/gists{/gist_id}","starred_url":"https://api.github.com/users/notwaldorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notwaldorf/subscriptions","organizations_url":"https://api.github.com/users/notwaldorf/orgs","repos_url":"https://api.github.com/users/notwaldorf/repos","events_url":"https://api.github.com/users/notwaldorf/events{/privacy}","received_events_url":"https://api.github.com/users/notwaldorf/received_events","type":"User","site_admin":false},"comments":8,"review_comments":8,"commits":1,"additions":61,"deletions":9,"changed_files":3}}