{"action":"created","issue":{"url":"https://api.github.com/repos/subarroca/ng-password-strength/issues/14","labels_url":"https://api.github.com/repos/subarroca/ng-password-strength/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/subarroca/ng-password-strength/issues/14/comments","events_url":"https://api.github.com/repos/subarroca/ng-password-strength/issues/14/events","html_url":"https://github.com/subarroca/ng-password-strength/issues/14","id":82090067,"number":14,"title":"Inner and Outter Class Prefixes inverted","user":{"login":"klquast","id":5445553,"avatar_url":"https://avatars.githubusercontent.com/u/5445553?v=3","gravatar_id":"","url":"https://api.github.com/users/klquast","html_url":"https://github.com/klquast","followers_url":"https://api.github.com/users/klquast/followers","following_url":"https://api.github.com/users/klquast/following{/other_user}","gists_url":"https://api.github.com/users/klquast/gists{/gist_id}","starred_url":"https://api.github.com/users/klquast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klquast/subscriptions","organizations_url":"https://api.github.com/users/klquast/orgs","repos_url":"https://api.github.com/users/klquast/repos","events_url":"https://api.github.com/users/klquast/events{/privacy}","received_events_url":"https://api.github.com/users/klquast/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-28T19:27:05Z","updated_at":"2015-07-09T10:15:00Z","closed_at":null,"body":"When the password strength is low, the css classes are inverted. This is what the html looks like when the strength is low: \r\n```html\r\n<div class=\"progress  progress-bar-alert\">\r\n    <div class=\"progress-bar danger\"></div>\r\n</div>\r\n```\r\nvs what the html looks like when the strength is medium or high:\r\n```html\r\n<div class=\"progress  warning\">\r\n    <div class=\"progress-bar progress-bar-warning\"></div>\r\n</div>\r\n<div class=\"progress  success\">\r\n    <div class=\"progress-bar progress-bar-success\"></div>\r\n</div>\r\n```\r\nLooks like you're setting **inner** to scope.**outter**ClassPrefix and **outter** to scope.**inner**ClassPrefix [here](https://github.com/subarroca/ng-password-strength/blob/master/app/scripts/directives/ng-password-strength.js#L224).\r\n\r\nAlso, the alert class is being used incorrectly here for Bootstrap mode (looks like the \"alert\" class in Foundation is equivalently to the \"danger\" class in Bootstrap). Right now, because the outer class is set to \"alert\", the progress bar is blue instead of red when the password strength is low. Both the inner and outer class should be set to prefix + \"danger\" for Bootstrap mode."},"comment":{"url":"https://api.github.com/repos/subarroca/ng-password-strength/issues/comments/119899225","html_url":"https://github.com/subarroca/ng-password-strength/issues/14#issuecomment-119899225","issue_url":"https://api.github.com/repos/subarroca/ng-password-strength/issues/14","id":119899225,"user":{"login":"intellix","id":1162531,"avatar_url":"https://avatars.githubusercontent.com/u/1162531?v=3","gravatar_id":"","url":"https://api.github.com/users/intellix","html_url":"https://github.com/intellix","followers_url":"https://api.github.com/users/intellix/followers","following_url":"https://api.github.com/users/intellix/following{/other_user}","gists_url":"https://api.github.com/users/intellix/gists{/gist_id}","starred_url":"https://api.github.com/users/intellix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intellix/subscriptions","organizations_url":"https://api.github.com/users/intellix/orgs","repos_url":"https://api.github.com/users/intellix/repos","events_url":"https://api.github.com/users/intellix/events{/privacy}","received_events_url":"https://api.github.com/users/intellix/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T10:15:00Z","updated_at":"2015-07-09T10:15:00Z","body":"Fixed in #16 "}}