Close

Buttons

Buttons should be used for form submission and in association with click events where state is of concern. Anchor links should be avoided for any state driven click events.

WAI-ARIA Reference: A button is a widget that enables users to trigger an action or event, such as submitting a form, opening a dialog, canceling an action, or performing a delete operation. A common convention for informing users that a button launches a dialog is to append "…" (ellipsis) to the button label, e.g., "Save as…". [ Source ]

Buttons Sample(s):

Inline Buttons

Primary Button

Primary buttons are as calls to action.

Secondary/Alt Button

Secondary buttons are used for form submissions, and alternative options to form submissions.

The secondary alt button (below) should be used to present an alternative option to the secondary default button (above).

Text Only Button

Text only buttons are used for non-buying/quote actions and also in the case where there is an equal "or" option.

Responsive Buttons

Responsive buttons are full-width at the mobile breakpoint and inline/auto-width at large screen breakpoint

Full Width Buttons

Best Practices

For more information, visit this MDN resource