{"action":"created","issue":{"url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/882","labels_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/882/labels{/name}","comments_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/882/comments","events_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/882/events","html_url":"https://github.com/backdrop/backdrop-issues/issues/882","id":70306493,"number":882,"title":"Add two core classes for use on form-submit buttons","user":{"login":"jenlampton","id":397895,"avatar_url":"https://avatars.githubusercontent.com/u/397895?v=3","gravatar_id":"","url":"https://api.github.com/users/jenlampton","html_url":"https://github.com/jenlampton","followers_url":"https://api.github.com/users/jenlampton/followers","following_url":"https://api.github.com/users/jenlampton/following{/other_user}","gists_url":"https://api.github.com/users/jenlampton/gists{/gist_id}","starred_url":"https://api.github.com/users/jenlampton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenlampton/subscriptions","organizations_url":"https://api.github.com/users/jenlampton/orgs","repos_url":"https://api.github.com/users/jenlampton/repos","events_url":"https://api.github.com/users/jenlampton/events{/privacy}","received_events_url":"https://api.github.com/users/jenlampton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-23T04:42:18Z","updated_at":"2015-05-08T19:00:21Z","closed_at":null,"body":"There are several places in core where we want fancy submit buttons.  In order to have them, we need a class. \r\n\r\n1) add the `dangerous` class to indicate when clicking a certain button will do something dangerous. All confirm forms, by their nature, do something dangerous.  The submit button on any confirm form should have the `dangerous` class. There should be no other examples of dangerous buttons.  If there are, a confirm form needs to be added.\r\n\r\n2) add the `primary` class (already in use on the node form) to help users differentiate between the most commonly intended action when a form has more than one button that will submit that form.  For example, the comment form has both a \"Save\" button and a \"Preview\" button. The \"Save\" button should be indicated as primary.  Other good examples of forms with multiple submit buttons are the Views UI, and the Layouts UI.\r\n\r\nAn additional part of this ticket will involve inspecting all the forms in Backdrop and evaluating whether we need a primary class added. "},"comment":{"url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/comments/100328814","html_url":"https://github.com/backdrop/backdrop-issues/issues/882#issuecomment-100328814","issue_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/882","id":100328814,"user":{"login":"quicksketch","id":100206,"avatar_url":"https://avatars.githubusercontent.com/u/100206?v=3","gravatar_id":"","url":"https://api.github.com/users/quicksketch","html_url":"https://github.com/quicksketch","followers_url":"https://api.github.com/users/quicksketch/followers","following_url":"https://api.github.com/users/quicksketch/following{/other_user}","gists_url":"https://api.github.com/users/quicksketch/gists{/gist_id}","starred_url":"https://api.github.com/users/quicksketch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quicksketch/subscriptions","organizations_url":"https://api.github.com/users/quicksketch/orgs","repos_url":"https://api.github.com/users/quicksketch/repos","events_url":"https://api.github.com/users/quicksketch/events{/privacy}","received_events_url":"https://api.github.com/users/quicksketch/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T19:00:21Z","updated_at":"2015-05-08T19:00:21Z","body":"I think to match Bootstrap's semi-universal name, we could shorten \"dangerous\" to just \"danger\": http://getbootstrap.com/components/#btn-dropdowns-single\r\n\r\nHowever, unlike bootstrap, we don't have the convention of abbreviations, so instead of \"btn-danger\" we'll use \"button-danger\". We'll also need a secondary button style to match the mocks (and I think this is a good idea as well): https://github.com/backdrop/backdrop-issues/issues/883#issuecomment-98203847. So the new classes would be:\r\n\r\n- button-primary\r\n- button-secondary\r\n- button-danger\r\n"}}