Buttons are used as triggers for actions. Depending on the use case, buttons contain a combination of a clear label and an icon.
Buttons are an extension of Bootstrap buttons. Please visit bootstrap buttons to get more information on them if you don't see what you need here.
Buttons do not have a fixed width. Instead they grow with the length of text inside them. However, please keep text short.
Buttons are an extension of Bootstrap buttons. They have been customized to fit our own branding.
.btn-default
button is the standard button across the application..btn-primary
button is the happy path action on forms (or dialogs), and the strongest call to action on a page. It can only ever appear once per screen (not including the application header; can appear in a modal dialog, ignoring what's on the main page). Not every screen needs a primary button..btn-secondary
button is used for secondary actions when a primary button already exists or the action is not a strong action such as "Save", etc..btn-link
button is used for secondary actions, destructive actions such as "Cancel" and "Archive". Used to discourage the user from taking an action unless they must.Use these for special circumstances like status.
.btn-danger
button is used for the destructive action "Delete" or "Remove"..btn-success
button is used upon a successful flow. Use sparingly as default, primary, secondary or link button may suffice..btn-info
button is used in cases such as an Informational alert box. Use sparingly as default, primary, secondary or link button may suffice..btn-warning
button is used in cases such as an Warning alert box. Use sparingly as default, primary, secondary or link button may suffice..btn-upload
button is used for uploading a file.
Icon Buttons can contain text or no text. Use the class .btn-link
to have an icon button with no background.
If you need an icon on the rightside of a button move the icon markup to the right of the text and add the class .btn-icon-right
.
with background
without background
Include the class .disabled
and , for semantics, the attribute disabled
to disable a button.
Include the class .fa-spin
to the .fa
icon to create an animated spinner progress indicator.