{"action":"created","comment":{"url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/pulls/comments/120413447","pull_request_review_id":42374288,"id":120413447,"diff_hunk":"@@ -14,15 +14,52 @@ export default class SearchBar extends React.Component {\n       id,\n       onClick,\n       value,\n-      onClearSearch\n+      onClearSearch,\n+      loading,\n+      size,\n+      title\n     } = this.props;\n \n-    const inputClassName = onClearSearch ? 'cf-search-input-with-close' : '';\n+    let sizeClasses = () => {\n+      if (size === 'big') {\n+        sizeClasses = ['usa-search', 'usa-search-big'];\n+      } else if (size === 'small') {\n+        sizeClasses = ['usa-search', 'usa-search-small'];\n+      } else {\n+        sizeClasses = ['usa-search', 'usa-search-medium'];\n+      }\n \n-    return <span className=\"usa-search usa-search-small\" role=\"search\">\n-      <label className=\"usa-sr-only\" htmlFor={id}>Search small</label>\n+      return sizeClasses.join(' ');\n+    };\n+\n+    // This returns the magnifying glass for small sized searchbars\n+    let buttonClassNames = () => {\n+      if (size === 'small') {\n+        return 'usa-sr-only';\n+      }\n+\n+      return 'usa-search-submit-text';\n+\n+    };\n+\n+    let label = () => {\n+      if (size === 'big') {\n+        label = ('usa-search-big');\n+      } else if (size === 'medium') {\n+        label = ('usa-search-medium');\n+      } else {\n+        label = 'usa-search-small';\n+      }\n+\n+      return label;\n+    };\n+\n+\n+    return <span className={sizeClasses()} role=\"search\">\n+      <label className={title ? label() : 'usa-sr-only'} htmlFor={id}>\n+        {title ? title : 'Search small'}","path":"client/app/components/SearchBar.jsx","position":null,"original_position":51,"commit_id":"a1e3073033d4c4e3416174598026c548565d69a7","original_commit_id":"734c9f15149d674e1769e2bab33b6dd974bcba5c","user":{"login":"Sjones352","id":23080951,"avatar_url":"https://avatars1.githubusercontent.com/u/23080951?v=3","gravatar_id":"","url":"https://api.github.com/users/Sjones352","html_url":"https://github.com/Sjones352","followers_url":"https://api.github.com/users/Sjones352/followers","following_url":"https://api.github.com/users/Sjones352/following{/other_user}","gists_url":"https://api.github.com/users/Sjones352/gists{/gist_id}","starred_url":"https://api.github.com/users/Sjones352/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sjones352/subscriptions","organizations_url":"https://api.github.com/users/Sjones352/orgs","repos_url":"https://api.github.com/users/Sjones352/repos","events_url":"https://api.github.com/users/Sjones352/events{/privacy}","received_events_url":"https://api.github.com/users/Sjones352/received_events","type":"User","site_admin":false},"body":"Fixed","created_at":"2017-06-06T16:39:02Z","updated_at":"2017-06-06T16:39:02Z","html_url":"https://github.com/department-of-veterans-affairs/caseflow/pull/2209#discussion_r120413447","pull_request_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/pulls/2209","_links":{"self":{"href":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/pulls/comments/120413447"},"html":{"href":"https://github.com/department-of-veterans-affairs/caseflow/pull/2209#discussion_r120413447"},"pull_request":{"href":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/pulls/2209"}}},"pull_request":{"url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/pulls/2209","id":123599167,"html_url":"https://github.com/department-of-veterans-affairs/caseflow/pull/2209","diff_url":"https://github.com/department-of-veterans-affairs/caseflow/pull/2209.diff","patch_url":"https://github.com/department-of-veterans-affairs/caseflow/pull/2209.patch","issue_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/issues/2209","number":2209,"state":"open","locked":false,"title":"WIP: Styleguide search","user":{"login":"Sjones352","id":23080951,"avatar_url":"https://avatars1.githubusercontent.com/u/23080951?v=3","gravatar_id":"","url":"https://api.github.com/users/Sjones352","html_url":"https://github.com/Sjones352","followers_url":"https://api.github.com/users/Sjones352/followers","following_url":"https://api.github.com/users/Sjones352/following{/other_user}","gists_url":"https://api.github.com/users/Sjones352/gists{/gist_id}","starred_url":"https://api.github.com/users/Sjones352/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sjones352/subscriptions","organizations_url":"https://api.github.com/users/Sjones352/orgs","repos_url":"https://api.github.com/users/Sjones352/repos","events_url":"https://api.github.com/users/Sjones352/events{/privacy}","received_events_url":"https://api.github.com/users/Sjones352/received_events","type":"User","site_admin":false},"body":"connects to #1423 \r\n<img width=\"710\" alt=\"screen shot 2017-06-05 at 1 22 16 pm\" src=\"https://cloud.githubusercontent.com/assets/23080951/26795031/0961d860-49f2-11e7-9eb9-f31d143099ba.png\">\r\n\r\n","created_at":"2017-06-01T21:34:38Z","updated_at":"2017-06-06T16:39:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fb70b2efd0db8a19f249d2111f75bc8aab28ad51","assignee":{"login":"mmlumba","id":4773320,"avatar_url":"https://avatars3.githubusercontent.com/u/4773320?v=3","gravatar_id":"","url":"https://api.github.com/users/mmlumba","html_url":"https://github.com/mmlumba","followers_url":"https://api.github.com/users/mmlumba/followers","following_url":"https://api.github.com/users/mmlumba/following{/other_user}","gists_url":"https://api.github.com/users/mmlumba/gists{/gist_id}","starred_url":"https://api.github.com/users/mmlumba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmlumba/subscriptions","organizations_url":"https://api.github.com/users/mmlumba/orgs","repos_url":"https://api.github.com/users/mmlumba/repos","events_url":"https://api.github.com/users/mmlumba/events{/privacy}","received_events_url":"https://api.github.com/users/mmlumba/received_events","type":"User","site_admin":false},"assignees":[{"login":"mmlumba","id":4773320,"avatar_url":"https://avatars3.githubusercontent.com/u/4773320?v=3","gravatar_id":"","url":"https://api.github.com/users/mmlumba","html_url":"https://github.com/mmlumba","followers_url":"https://api.github.com/users/mmlumba/followers","following_url":"https://api.github.com/users/mmlumba/following{/other_user}","gists_url":"https://api.github.com/users/mmlumba/gists{/gist_id}","starred_url":"https://api.github.com/users/mmlumba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmlumba/subscriptions","organizations_url":"https://api.github.com/users/mmlumba/orgs","repos_url":"https://api.github.com/users/mmlumba/repos","events_url":"https://api.github.com/users/mmlumba/events{/privacy}","received_events_url":"https://api.github.com/users/mmlumba/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/pulls/2209/commits","review_comments_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/pulls/2209/comments","review_comment_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/issues/2209/comments","statuses_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/statuses/a1e3073033d4c4e3416174598026c548565d69a7","head":{"label":"department-of-veterans-affairs:sandra/styleguide-search","ref":"sandra/styleguide-search","sha":"a1e3073033d4c4e3416174598026c548565d69a7","user":{"login":"department-of-veterans-affairs","id":5421563,"avatar_url":"https://avatars2.githubusercontent.com/u/5421563?v=3","gravatar_id":"","url":"https://api.github.com/users/department-of-veterans-affairs","html_url":"https://github.com/department-of-veterans-affairs","followers_url":"https://api.github.com/users/department-of-veterans-affairs/followers","following_url":"https://api.github.com/users/department-of-veterans-affairs/following{/other_user}","gists_url":"https://api.github.com/users/department-of-veterans-affairs/gists{/gist_id}","starred_url":"https://api.github.com/users/department-of-veterans-affairs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/department-of-veterans-affairs/subscriptions","organizations_url":"https://api.github.com/users/department-of-veterans-affairs/orgs","repos_url":"https://api.github.com/users/department-of-veterans-affairs/repos","events_url":"https://api.github.com/users/department-of-veterans-affairs/events{/privacy}","received_events_url":"https://api.github.com/users/department-of-veterans-affairs/received_events","type":"Organization","site_admin":false},"repo":{"id":51449239,"name":"caseflow","full_name":"department-of-veterans-affairs/caseflow","owner":{"login":"department-of-veterans-affairs","id":5421563,"avatar_url":"https://avatars2.githubusercontent.com/u/5421563?v=3","gravatar_id":"","url":"https://api.github.com/users/department-of-veterans-affairs","html_url":"https://github.com/department-of-veterans-affairs","followers_url":"https://api.github.com/users/department-of-veterans-affairs/followers","following_url":"https://api.github.com/users/department-of-veterans-affairs/following{/other_user}","gists_url":"https://api.github.com/users/department-of-veterans-affairs/gists{/gist_id}","starred_url":"https://api.github.com/users/department-of-veterans-affairs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/department-of-veterans-affairs/subscriptions","organizations_url":"https://api.github.com/users/department-of-veterans-affairs/orgs","repos_url":"https://api.github.com/users/department-of-veterans-affairs/repos","events_url":"https://api.github.com/users/department-of-veterans-affairs/events{/privacy}","received_events_url":"https://api.github.com/users/department-of-veterans-affairs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/department-of-veterans-affairs/caseflow","description":"Caseflow is a web application that enables the tracking and processing of appealed claims at the Board of Veterans' Appeals.","fork":false,"url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow","forks_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/forks","keys_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/teams","hooks_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/hooks","issue_events_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/issues/events{/number}","events_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/events","assignees_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/assignees{/user}","branches_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/branches{/branch}","tags_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/tags","blobs_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/statuses/{sha}","languages_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/languages","stargazers_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/stargazers","contributors_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/contributors","subscribers_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/subscribers","subscription_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/subscription","commits_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/contents/{+path}","compare_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/merges","archive_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/downloads","issues_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/issues{/number}","pulls_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/pulls{/number}","milestones_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/milestones{/number}","notifications_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/labels{/name}","releases_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/releases{/id}","deployments_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/deployments","created_at":"2016-02-10T15:20:50Z","updated_at":"2017-05-30T21:00:48Z","pushed_at":"2017-06-06T16:34:08Z","git_url":"git://github.com/department-of-veterans-affairs/caseflow.git","ssh_url":"git@github.com:department-of-veterans-affairs/caseflow.git","clone_url":"https://github.com/department-of-veterans-affairs/caseflow.git","svn_url":"https://github.com/department-of-veterans-affairs/caseflow","homepage":"","size":31445,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":355,"forks":12,"open_issues":355,"watchers":10,"default_branch":"master"}},"base":{"label":"department-of-veterans-affairs:master","ref":"master","sha":"2163a32e4aae704d2fbff3180beb1df9abfab867","user":{"login":"department-of-veterans-affairs","id":5421563,"avatar_url":"https://avatars2.githubusercontent.com/u/5421563?v=3","gravatar_id":"","url":"https://api.github.com/users/department-of-veterans-affairs","html_url":"https://github.com/department-of-veterans-affairs","followers_url":"https://api.github.com/users/department-of-veterans-affairs/followers","following_url":"https://api.github.com/users/department-of-veterans-affairs/following{/other_user}","gists_url":"https://api.github.com/users/department-of-veterans-affairs/gists{/gist_id}","starred_url":"https://api.github.com/users/department-of-veterans-affairs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/department-of-veterans-affairs/subscriptions","organizations_url":"https://api.github.com/users/department-of-veterans-affairs/orgs","repos_url":"https://api.github.com/users/department-of-veterans-affairs/repos","events_url":"https://api.github.com/users/department-of-veterans-affairs/events{/privacy}","received_events_url":"https://api.github.com/users/department-of-veterans-affairs/received_events","type":"Organization","site_admin":false},"repo":{"id":51449239,"name":"caseflow","full_name":"department-of-veterans-affairs/caseflow","owner":{"login":"department-of-veterans-affairs","id":5421563,"avatar_url":"https://avatars2.githubusercontent.com/u/5421563?v=3","gravatar_id":"","url":"https://api.github.com/users/department-of-veterans-affairs","html_url":"https://github.com/department-of-veterans-affairs","followers_url":"https://api.github.com/users/department-of-veterans-affairs/followers","following_url":"https://api.github.com/users/department-of-veterans-affairs/following{/other_user}","gists_url":"https://api.github.com/users/department-of-veterans-affairs/gists{/gist_id}","starred_url":"https://api.github.com/users/department-of-veterans-affairs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/department-of-veterans-affairs/subscriptions","organizations_url":"https://api.github.com/users/department-of-veterans-affairs/orgs","repos_url":"https://api.github.com/users/department-of-veterans-affairs/repos","events_url":"https://api.github.com/users/department-of-veterans-affairs/events{/privacy}","received_events_url":"https://api.github.com/users/department-of-veterans-affairs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/department-of-veterans-affairs/caseflow","description":"Caseflow is a web application that enables the tracking and processing of appealed claims at the Board of Veterans' Appeals.","fork":false,"url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow","forks_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/forks","keys_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/teams","hooks_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/hooks","issue_events_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/issues/events{/number}","events_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/events","assignees_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/assignees{/user}","branches_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/branches{/branch}","tags_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/tags","blobs_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/statuses/{sha}","languages_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/languages","stargazers_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/stargazers","contributors_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/contributors","subscribers_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/subscribers","subscription_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/subscription","commits_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/contents/{+path}","compare_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/merges","archive_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/downloads","issues_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/issues{/number}","pulls_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/pulls{/number}","milestones_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/milestones{/number}","notifications_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/labels{/name}","releases_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/releases{/id}","deployments_url":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/deployments","created_at":"2016-02-10T15:20:50Z","updated_at":"2017-05-30T21:00:48Z","pushed_at":"2017-06-06T16:34:08Z","git_url":"git://github.com/department-of-veterans-affairs/caseflow.git","ssh_url":"git@github.com:department-of-veterans-affairs/caseflow.git","clone_url":"https://github.com/department-of-veterans-affairs/caseflow.git","svn_url":"https://github.com/department-of-veterans-affairs/caseflow","homepage":"","size":31445,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":355,"forks":12,"open_issues":355,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/pulls/2209"},"html":{"href":"https://github.com/department-of-veterans-affairs/caseflow/pull/2209"},"issue":{"href":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/issues/2209"},"comments":{"href":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/issues/2209/comments"},"review_comments":{"href":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/pulls/2209/comments"},"review_comment":{"href":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/pulls/2209/commits"},"statuses":{"href":"https://api.github.com/repos/department-of-veterans-affairs/caseflow/statuses/a1e3073033d4c4e3416174598026c548565d69a7"}}}}
{"actor":{"display_login":"Sjones352"}}