Home

Button

UsageDevelopment

About

A Button allows users to take an action. Riverty Design System offers a primary button and a secondary button. They both come in large and small sizes, and can come with an icon left or right from the label.

Anatomy

A Radio button consists of a:

  1. Background
  2. Label
  3. Border
  4. Icon (optional)

Button primary anatomy

Button secondary anatomy

Button secondary with icon anatomy

When to use Buttons

Buttons should be used if users need to be able take an action. Examples are:

  • Confirm or Cancel input;
  • Go to the next page or back to the previous page;
  • Start a payment process;
  • Etc.

Do use buttons for call to call to actions

Do use buttons for call to actions.
Do

Don’t use checkboxes for call to actions.

Don’t use checkboxes for call to actions.
Don’t

When not to use Buttons

  • When users should select a choice instead of take an action.

Behaviour

States

A Button, both primary, secondary and text, comes with the following states:

  • Enabled
  • Hovered
  • Focused
  • Activated
  • Disabled

Keyboard behaviour

  • Users are able to activate a button using the Enter key.

Content

A primary action should always placed to the right if there’s a secondary action as well. Therefore, the recommendation is to place a secondary button to the left of a primary button.

Do use the Cancel-Confirm order

Do use the Cancel-Confirm order.
Do

Don’t use the Confirm-Cancel order

Don’t use the Confirm-Cancel order.
Don’t

Write concise but clear Button labels, preferably consisting of one, two max three words.

Do write the action which is also the result of clicking the button as a label

Do write the action which is also the result of clicking the button as a label.
Do

Don’t use just “NO” to cancel or “OK” to confirm, since these are no actions

Don’t use just “NO” to cancel or “OK” to confirm, since these are no actions.
Don’t

Do use icons to add value to the user’s understanding of the call to action

Do use icons to add value to the user’s understanding of the call to action.
Do

Don’t use icons that won’t help users understand the call to action

Don’t use icons that won’t help users understand the call to action.
Don’t

Resources