{"action":"created","issue":{"url":"https://api.github.com/repos/suda/tool-bar/issues/145","repository_url":"https://api.github.com/repos/suda/tool-bar","labels_url":"https://api.github.com/repos/suda/tool-bar/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/suda/tool-bar/issues/145/comments","events_url":"https://api.github.com/repos/suda/tool-bar/issues/145/events","html_url":"https://github.com/suda/tool-bar/pull/145","id":159057670,"number":145,"title":"Added ability to add custom class names to items (both buttons and spacers) on the toolbar","user":{"login":"rageandqq","id":6415623,"avatar_url":"https://avatars.githubusercontent.com/u/6415623?v=3","gravatar_id":"","url":"https://api.github.com/users/rageandqq","html_url":"https://github.com/rageandqq","followers_url":"https://api.github.com/users/rageandqq/followers","following_url":"https://api.github.com/users/rageandqq/following{/other_user}","gists_url":"https://api.github.com/users/rageandqq/gists{/gist_id}","starred_url":"https://api.github.com/users/rageandqq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rageandqq/subscriptions","organizations_url":"https://api.github.com/users/rageandqq/orgs","repos_url":"https://api.github.com/users/rageandqq/repos","events_url":"https://api.github.com/users/rageandqq/events{/privacy}","received_events_url":"https://api.github.com/users/rageandqq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-08T00:59:55Z","updated_at":"2016-06-08T01:10:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/suda/tool-bar/pulls/145","html_url":"https://github.com/suda/tool-bar/pull/145","diff_url":"https://github.com/suda/tool-bar/pull/145.diff","patch_url":"https://github.com/suda/tool-bar/pull/145.patch"},"body":"I noticed that there was no way to add custom classes to buttons and spacers on the toolbar. While not essential for spacers, when there are two buttons with the same icon in the toolbar (or another item that shares the same octicon elsewhere on the webpage), it becomes difficult to consistently distinguish which one is which.\r\n\r\nThis diff adds the ability to query the DOM using `document.querySelector` or the like and identify a unique element by class name (instead of depending on the class name provided by the octicon).\r\n\r\nTests were added to test this feature -- existing tests already handle the case when `.classNames` is missing from the `options` parameter.\r\n\r\nAdditionally, I updated the README to reflect the usage of this feature."},"comment":{"url":"https://api.github.com/repos/suda/tool-bar/issues/comments/224460021","html_url":"https://github.com/suda/tool-bar/pull/145#issuecomment-224460021","issue_url":"https://api.github.com/repos/suda/tool-bar/issues/145","id":224460021,"user":{"login":"rageandqq","id":6415623,"avatar_url":"https://avatars.githubusercontent.com/u/6415623?v=3","gravatar_id":"","url":"https://api.github.com/users/rageandqq","html_url":"https://github.com/rageandqq","followers_url":"https://api.github.com/users/rageandqq/followers","following_url":"https://api.github.com/users/rageandqq/following{/other_user}","gists_url":"https://api.github.com/users/rageandqq/gists{/gist_id}","starred_url":"https://api.github.com/users/rageandqq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rageandqq/subscriptions","organizations_url":"https://api.github.com/users/rageandqq/orgs","repos_url":"https://api.github.com/users/rageandqq/repos","events_url":"https://api.github.com/users/rageandqq/events{/privacy}","received_events_url":"https://api.github.com/users/rageandqq/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T01:10:44Z","updated_at":"2016-06-08T01:10:44Z","body":"Whoops, didn't realize there was a linter + rules set up!"}}
{"actor":{"display_login":"rageandqq"}}