{"action":"created","comment":{"url":"https://api.github.com/repos/PolymerElements/paper-menu-button/pulls/comments/35127061","id":35127061,"diff_hunk":"@@ -1,80 +1,265 @@\n <!--\n-Copyright (c) 2014 The Polymer Project Authors. All rights reserved.\n+@license\n+Copyright (c) 2015 The Polymer Project Authors. All rights reserved.\n This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\n The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\n The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\n Code distributed by Google as part of the polymer project is also\n subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n -->\n+\n+<link rel=\"import\" href=\"../polymer/polymer.html\">\n+<link rel=\"import\" href=\"../iron-dropdown/iron-dropdown.html\">\n+<link rel=\"import\" href=\"../iron-a11y-keys-behavior/iron-a11y-keys-behavior.html\">\n+<link rel=\"import\" href=\"../iron-behaviors/iron-control-state.html\">\n+<link rel=\"import\" href=\"../paper-material/paper-material.html\">\n+<link rel=\"import\" href=\"../neon-animation/animations/fade-in-animation.html\">\n+<link rel=\"import\" href=\"../neon-animation/animations/fade-out-animation.html\">\n+<link rel=\"import\" href=\"paper-menu-button-animations.html\">\n+\n <!--\n+`paper-menu-button` allows one to compose a designated \"trigger\" element with\n+another element that represents \"content\", to create a dropdown menu that\n+displays the \"content\" when the \"trigger\" is clicked.\n \n-`paper-menu-button` works together with a button and a `paper-dropdown` to\n-implement a button that displays a drop-down when tapped on.\n+The child element with the class `dropdown-trigger` will be used as the\n+\"trigger\" element. The child element with the class `dropdown-content` will be\n+used as the \"content\" element.\n \n-The child element with the class `dropdown` will be used as the drop-down\n-menu. It should be a `paper-dropdown` or other overlay element.\n+The `paper-menu-button` is sensitive to its content's `iron-select` events. If\n+the \"content\" element triggers an `iron-select` event, the `paper-menu-button`\n+will close automatically.\n \n Example:\n \n     <paper-menu-button>\n-        <paper-icon-button icon=\"menu\" noink></paper-icon-button>\n-        <paper-dropdown class=\"dropdown\">\n-            <core-menu class=\"menu\">\n-                <paper-item>Share</paper-item>\n-                <paper-item>Settings</paper-item>\n-                <paper-item>Help</paper-item>\n-            </core-menu>\n-        </paper-dropdown>\n+      <paper-icon-button icon=\"menu\" class=\"dropdown-trigger\"></paper-icon-button>\n+      <paper-menu class=\"dropdown-content\">\n+        <paper-item>Share</paper-item>\n+        <paper-item>Settings</paper-item>\n+        <paper-item>Help</paper-item>\n+      </paper-menu>\n     </paper-menu-button>\n \n-@group Paper Elements\n-@element paper-menu-button\n-@status unstable\n+### Styling\n+\n+The following custom properties and mixins are also available for styling:\n+\n+Custom property | Description | Default\n+----------------|-------------|----------\n+`--paper-menu-button-dropdown-background` | Background color of the paper-menu-button dropdown | `#fff`\n+`--paper-menu-button` | Mixin applied to the paper-menu-button | `{}`\n+`--paper-menu-button-dropdown` | Mixin applied to the paper-menu-button dropdown | `{}`\n+\n+\n @hero hero.svg\n @demo demo/index.html\n -->\n-<link href=\"../polymer/polymer.html\" rel=\"import\">\n-<link href=\"../core-a11y-keys/core-a11y-keys.html\" rel=\"import\">\n-<link href=\"../core-dropdown/core-dropdown-base.html\" rel=\"import\">\n-\n-<polymer-element name=\"paper-menu-button\" extends=\"core-dropdown-base\" relative>\n-<template>\n \n+<dom-module id=\"paper-menu-button\">\n   <style>\n     :host {\n       display: inline-block;\n+      position: relative;\n+      padding: 8px;\n+      outline: none;\n+      user-select: none;\n+      -webkit-user-select: none;\n+      cursor: pointer;\n+\n+      @apply(--paper-menu-button);\n     }\n \n     :host([disabled]) {\n-      pointer-events: none;\n-      color: #a8a8a8;\n+      cursor: auto;","path":"paper-menu-button.html","position":97,"original_position":98,"commit_id":"c50d5fb120aed13c592fa1e7d23b59ca20b39478","original_commit_id":"a4df6fef67b95e5c5d4c0324d6f5c1f27abeccfe","user":{"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},"body":"This is addressed in the line below.","created_at":"2015-07-21T17:04:50Z","updated_at":"2015-07-21T17:04:50Z","html_url":"https://github.com/PolymerElements/paper-menu-button/pull/3#discussion_r35127061","pull_request_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/PolymerElements/paper-menu-button/pulls/comments/35127061"},"html":{"href":"https://github.com/PolymerElements/paper-menu-button/pull/3#discussion_r35127061"},"pull_request":{"href":"https://api.github.com/repos/PolymerElements/paper-menu-button/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/PolymerElements/paper-menu-button/pulls/3","id":40403707,"html_url":"https://github.com/PolymerElements/paper-menu-button/pull/3","diff_url":"https://github.com/PolymerElements/paper-menu-button/pull/3.diff","patch_url":"https://github.com/PolymerElements/paper-menu-button/pull/3.patch","issue_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/issues/3","number":3,"state":"open","locked":false,"title":"Implement paper-menu-button for Polymer 1.0.","user":{"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},"body":" - A `.dropdown-trigger` can be declared, which will open and close the\r\n   menu.\r\n - A `.dropdown-content` can be declared which will be the content of\r\n   the menu.\r\n - The `paper-menu-button` will auto-close when its content fires an\r\n   `iron-select` event.\r\n - Animations use `neon-animations` and have been matched to the\r\n   Material Design spec for menus.","created_at":"2015-07-20T22:18:47Z","updated_at":"2015-07-21T17:04:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93b2875faf5f023a0d8344109da9d27282b5f332","assignee":{"login":"frankiefu","id":116360,"avatar_url":"https://avatars.githubusercontent.com/u/116360?v=3","gravatar_id":"","url":"https://api.github.com/users/frankiefu","html_url":"https://github.com/frankiefu","followers_url":"https://api.github.com/users/frankiefu/followers","following_url":"https://api.github.com/users/frankiefu/following{/other_user}","gists_url":"https://api.github.com/users/frankiefu/gists{/gist_id}","starred_url":"https://api.github.com/users/frankiefu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankiefu/subscriptions","organizations_url":"https://api.github.com/users/frankiefu/orgs","repos_url":"https://api.github.com/users/frankiefu/repos","events_url":"https://api.github.com/users/frankiefu/events{/privacy}","received_events_url":"https://api.github.com/users/frankiefu/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/pulls/3/commits","review_comments_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/pulls/3/comments","review_comment_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/issues/3/comments","statuses_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/statuses/c50d5fb120aed13c592fa1e7d23b59ca20b39478","head":{"label":"PolymerElements:implement-for-1.0","ref":"implement-for-1.0","sha":"c50d5fb120aed13c592fa1e7d23b59ca20b39478","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":35068524,"name":"paper-menu-button","full_name":"PolymerElements/paper-menu-button","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/paper-menu-button","description":"","fork":false,"url":"https://api.github.com/repos/PolymerElements/paper-menu-button","forks_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/forks","keys_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/teams","hooks_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/hooks","issue_events_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/issues/events{/number}","events_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/events","assignees_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/assignees{/user}","branches_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/branches{/branch}","tags_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/tags","blobs_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/statuses/{sha}","languages_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/languages","stargazers_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/stargazers","contributors_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/contributors","subscribers_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/subscribers","subscription_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/subscription","commits_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/contents/{+path}","compare_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/merges","archive_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/downloads","issues_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/issues{/number}","pulls_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/pulls{/number}","milestones_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/milestones{/number}","notifications_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/labels{/name}","releases_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/releases{/id}","created_at":"2015-05-05T00:43:04Z","updated_at":"2015-07-20T22:19:10Z","pushed_at":"2015-07-21T17:02:29Z","git_url":"git://github.com/PolymerElements/paper-menu-button.git","ssh_url":"git@github.com:PolymerElements/paper-menu-button.git","clone_url":"https://github.com/PolymerElements/paper-menu-button.git","svn_url":"https://github.com/PolymerElements/paper-menu-button","homepage":null,"size":139,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"PolymerElements:master","ref":"master","sha":"45cdd1d37b1b833910a4ce2e5d2f51432e91b623","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":35068524,"name":"paper-menu-button","full_name":"PolymerElements/paper-menu-button","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/paper-menu-button","description":"","fork":false,"url":"https://api.github.com/repos/PolymerElements/paper-menu-button","forks_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/forks","keys_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/teams","hooks_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/hooks","issue_events_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/issues/events{/number}","events_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/events","assignees_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/assignees{/user}","branches_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/branches{/branch}","tags_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/tags","blobs_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/statuses/{sha}","languages_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/languages","stargazers_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/stargazers","contributors_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/contributors","subscribers_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/subscribers","subscription_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/subscription","commits_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/contents/{+path}","compare_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/merges","archive_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/downloads","issues_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/issues{/number}","pulls_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/pulls{/number}","milestones_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/milestones{/number}","notifications_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/labels{/name}","releases_url":"https://api.github.com/repos/PolymerElements/paper-menu-button/releases{/id}","created_at":"2015-05-05T00:43:04Z","updated_at":"2015-07-20T22:19:10Z","pushed_at":"2015-07-21T17:02:29Z","git_url":"git://github.com/PolymerElements/paper-menu-button.git","ssh_url":"git@github.com:PolymerElements/paper-menu-button.git","clone_url":"https://github.com/PolymerElements/paper-menu-button.git","svn_url":"https://github.com/PolymerElements/paper-menu-button","homepage":null,"size":139,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PolymerElements/paper-menu-button/pulls/3"},"html":{"href":"https://github.com/PolymerElements/paper-menu-button/pull/3"},"issue":{"href":"https://api.github.com/repos/PolymerElements/paper-menu-button/issues/3"},"comments":{"href":"https://api.github.com/repos/PolymerElements/paper-menu-button/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/PolymerElements/paper-menu-button/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/PolymerElements/paper-menu-button/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PolymerElements/paper-menu-button/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/PolymerElements/paper-menu-button/statuses/c50d5fb120aed13c592fa1e7d23b59ca20b39478"}}}}