{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfCake/bootstrap-ui/issues/122","repository_url":"https://api.github.com/repos/FriendsOfCake/bootstrap-ui","labels_url":"https://api.github.com/repos/FriendsOfCake/bootstrap-ui/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfCake/bootstrap-ui/issues/122/comments","events_url":"https://api.github.com/repos/FriendsOfCake/bootstrap-ui/issues/122/events","html_url":"https://github.com/FriendsOfCake/bootstrap-ui/issues/122","id":132012819,"number":122,"title":"Add primary class for the ButtonWidget","user":{"login":"broot02","id":7757740,"avatar_url":"https://avatars.githubusercontent.com/u/7757740?v=3","gravatar_id":"","url":"https://api.github.com/users/broot02","html_url":"https://github.com/broot02","followers_url":"https://api.github.com/users/broot02/followers","following_url":"https://api.github.com/users/broot02/following{/other_user}","gists_url":"https://api.github.com/users/broot02/gists{/gist_id}","starred_url":"https://api.github.com/users/broot02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broot02/subscriptions","organizations_url":"https://api.github.com/users/broot02/orgs","repos_url":"https://api.github.com/users/broot02/repos","events_url":"https://api.github.com/users/broot02/events{/privacy}","received_events_url":"https://api.github.com/users/broot02/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-07T21:11:12Z","updated_at":"2016-02-14T10:48:09Z","closed_at":"2016-02-14T10:48:09Z","body":"The following code `<?= $this->Form->button('Signup', ['class' => 'success'])?>` would produce the following HTML, `<button class=\"btn-success btn\" type=\"submit\">Signup</button>`. This is expected.\r\n\r\nBut  the following code `<?= $this->Form->button('Signup', ['class' => 'primary'])?>` would produce the following HTML, `<button class=\"primary btn\" type=\"submit\">Signup</button>`. This is not expected in my opinion, rather we should see the css class `btn-primary` added as `btn-success` was added above.\r\n\r\nIt seems adding 'primary' to `$_styles` in the ButtonWidget would correct this issue, and would give the expected behavior, and allow consistent use of the button widget, and allow the use of standard classes for buttons with Bootstrap.\r\n"},"comment":{"url":"https://api.github.com/repos/FriendsOfCake/bootstrap-ui/issues/comments/183873103","html_url":"https://github.com/FriendsOfCake/bootstrap-ui/issues/122#issuecomment-183873103","issue_url":"https://api.github.com/repos/FriendsOfCake/bootstrap-ui/issues/122","id":183873103,"user":{"login":"broot02","id":7757740,"avatar_url":"https://avatars.githubusercontent.com/u/7757740?v=3","gravatar_id":"","url":"https://api.github.com/users/broot02","html_url":"https://github.com/broot02","followers_url":"https://api.github.com/users/broot02/followers","following_url":"https://api.github.com/users/broot02/following{/other_user}","gists_url":"https://api.github.com/users/broot02/gists{/gist_id}","starred_url":"https://api.github.com/users/broot02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broot02/subscriptions","organizations_url":"https://api.github.com/users/broot02/orgs","repos_url":"https://api.github.com/users/broot02/repos","events_url":"https://api.github.com/users/broot02/events{/privacy}","received_events_url":"https://api.github.com/users/broot02/received_events","type":"User","site_admin":false},"created_at":"2016-02-14T10:48:09Z","updated_at":"2016-02-14T10:48:09Z","body":"This has been corrected."}}