{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/govuk-frontend/issues/714","repository_url":"https://api.github.com/repos/alphagov/govuk-frontend","labels_url":"https://api.github.com/repos/alphagov/govuk-frontend/issues/714/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/govuk-frontend/issues/714/comments","events_url":"https://api.github.com/repos/alphagov/govuk-frontend/issues/714/events","html_url":"https://github.com/alphagov/govuk-frontend/issues/714","id":325469044,"number":714,"title":"Should label in Nunjucks be wrapped in a condition?","user":{"login":"igloosi","id":3758555,"avatar_url":"https://avatars1.githubusercontent.com/u/3758555?v=4","gravatar_id":"","url":"https://api.github.com/users/igloosi","html_url":"https://github.com/igloosi","followers_url":"https://api.github.com/users/igloosi/followers","following_url":"https://api.github.com/users/igloosi/following{/other_user}","gists_url":"https://api.github.com/users/igloosi/gists{/gist_id}","starred_url":"https://api.github.com/users/igloosi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igloosi/subscriptions","organizations_url":"https://api.github.com/users/igloosi/orgs","repos_url":"https://api.github.com/users/igloosi/repos","events_url":"https://api.github.com/users/igloosi/events{/privacy}","received_events_url":"https://api.github.com/users/igloosi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-22T21:25:33Z","updated_at":"2018-05-23T09:10:01Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The following code\r\n```\r\n{{ govukInput({\r\n   \"id\": \"national-insurance-number\",\r\n   \"name\": \"national-insurance-number\",\r\n }) }}\r\n```\r\nwill output\r\n```\r\n<div class=\"govuk-form-group\">\r\n  <label class=\"govuk-label\" for=\"govuk-input-a\">\r\n    \r\n  </label>\r\n  <input class=\"govuk-input\" id=\"govuk-input-a\" name=\"national-insurance-number\" type=\"text\">\r\n</div>\r\n```\r\nEmpty label, that has a 5px bottom margin, which will effect any alignment\r\n\r\nIn the input component template we currently  don't wrap label in a condition, like we do hint and error message.\r\n"},"comment":{"url":"https://api.github.com/repos/alphagov/govuk-frontend/issues/comments/391277167","html_url":"https://github.com/alphagov/govuk-frontend/issues/714#issuecomment-391277167","issue_url":"https://api.github.com/repos/alphagov/govuk-frontend/issues/714","id":391277167,"user":{"login":"igloosi","id":3758555,"avatar_url":"https://avatars1.githubusercontent.com/u/3758555?v=4","gravatar_id":"","url":"https://api.github.com/users/igloosi","html_url":"https://github.com/igloosi","followers_url":"https://api.github.com/users/igloosi/followers","following_url":"https://api.github.com/users/igloosi/following{/other_user}","gists_url":"https://api.github.com/users/igloosi/gists{/gist_id}","starred_url":"https://api.github.com/users/igloosi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igloosi/subscriptions","organizations_url":"https://api.github.com/users/igloosi/orgs","repos_url":"https://api.github.com/users/igloosi/repos","events_url":"https://api.github.com/users/igloosi/events{/privacy}","received_events_url":"https://api.github.com/users/igloosi/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T09:10:01Z","updated_at":"2018-05-23T09:10:01Z","author_association":"CONTRIBUTOR","body":"@nickcolley label has whitespace so :empty won't work"}}
{"actor":{"display_login":"igloosi"}}