{"action":"created","issue":{"url":"https://api.github.com/repos/bvaughn/angular-form-for/issues/144","labels_url":"https://api.github.com/repos/bvaughn/angular-form-for/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/bvaughn/angular-form-for/issues/144/comments","events_url":"https://api.github.com/repos/bvaughn/angular-form-for/issues/144/events","html_url":"https://github.com/bvaughn/angular-form-for/issues/144","id":96268145,"number":144,"title":"How to define class for label","user":{"login":"osimicek","id":1182965,"avatar_url":"https://avatars.githubusercontent.com/u/1182965?v=3","gravatar_id":"","url":"https://api.github.com/users/osimicek","html_url":"https://github.com/osimicek","followers_url":"https://api.github.com/users/osimicek/followers","following_url":"https://api.github.com/users/osimicek/following{/other_user}","gists_url":"https://api.github.com/users/osimicek/gists{/gist_id}","starred_url":"https://api.github.com/users/osimicek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osimicek/subscriptions","organizations_url":"https://api.github.com/users/osimicek/orgs","repos_url":"https://api.github.com/users/osimicek/repos","events_url":"https://api.github.com/users/osimicek/events{/privacy}","received_events_url":"https://api.github.com/users/osimicek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bvaughn/angular-form-for/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-21T09:16:11Z","updated_at":"2015-07-22T04:46:35Z","closed_at":null,"body":"Hi, everyone.\r\nIs there any way how to define class for label of a field? I need to add 'sr-only' (screen readers only) class to label element and don't know how.\r\nThanks"},"comment":{"url":"https://api.github.com/repos/bvaughn/angular-form-for/issues/comments/123561786","html_url":"https://github.com/bvaughn/angular-form-for/issues/144#issuecomment-123561786","issue_url":"https://api.github.com/repos/bvaughn/angular-form-for/issues/144","id":123561786,"user":{"login":"bvaughn","id":29597,"avatar_url":"https://avatars.githubusercontent.com/u/29597?v=3","gravatar_id":"","url":"https://api.github.com/users/bvaughn","html_url":"https://github.com/bvaughn","followers_url":"https://api.github.com/users/bvaughn/followers","following_url":"https://api.github.com/users/bvaughn/following{/other_user}","gists_url":"https://api.github.com/users/bvaughn/gists{/gist_id}","starred_url":"https://api.github.com/users/bvaughn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvaughn/subscriptions","organizations_url":"https://api.github.com/users/bvaughn/orgs","repos_url":"https://api.github.com/users/bvaughn/repos","events_url":"https://api.github.com/users/bvaughn/events{/privacy}","received_events_url":"https://api.github.com/users/bvaughn/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T04:46:35Z","updated_at":"2015-07-22T04:46:35Z","body":"Hi @osimicek,\r\n\r\nI think there are two options for this.\r\n\r\n# Override the `form-for/templates/field-label.html` template\r\n\r\nThe [template overrides guide](http://bvaughn.github.io/angular-form-for/#/demo/template-overrides) gives examples of how to do this and it's pretty simple. You could fork [one of the existing label templates](https://github.com/bvaughn/angular-form-for/tree/master/templates/) and add your custom class.\r\n\r\nThis would be the fastest way to accomplish what you're looking to do.\r\n\r\n# Add a configuration option to `FormForConfiguration`\r\n\r\nSomething similar was done for issue #131 and you can see the pull request [here](https://github.com/bvaughn/angular-form-for/pull/140)."}}