Buttons

Buttons are used as triggers for actions. Buttons can contain a label and/or an icon and come in a variety of styles and sizes.

Primary

Anatomy

Button Anatomy
NameDescriptionRequired
BackgroundBackground color conveys states default, hover, or pressed.Yes
LabelUsed to inform the user of the expected button action.Yes
IconGraphic element to enhance the visual appeal and tell the user more about buttons action. Can be used before or after the label. Choose the appropriate Icon based on the buttons action. Icons are for use with a label, if you would like an icon on its own use Icon Button. See choosing iconsOptional

States

Button Anatomy
StateDescription
DefaultUsers can tap or click the button to activate an action.
HoverWhen a cursor hovers over the button, the background color changes to indicate that the button is clickable.
PressedBackground color change indicates to a user that the button is active.
DisabledAvoid disabled buttons when possible. The disabled state is for if you are still showing the button, but the actions it completes are disabled. The background and text color changes to indicate to a user that the button is inactive. Read more about disabled buttons.
LoadingA loading animation indicate the button is active and loading.
FocusA focus outline appears around visual element to help users identify current selected component. This is used when a user navigates using keyboard controls or uses a cursor.

Secondary

Anatomy

Secondary Button Anatomy
NameDescriptionRequired
BackgroundBackground color conveys states default, hover, or pressed.Yes
LabelUsed to inform the user of the expected button action. Label best practiceYes
BorderOutlines button target to and matches primary button height.Yes
IconGraphic element to enhance the visual appeal and tell the user more about buttons action. Can be used before or after the label. Choose the appropriate Icon based on the buttons action. Icons are for use with a label, if you would like an icon on its own use Icon Button. See choosing iconsOptional

States

Secondary Button Anatomy
StateDescription
DefaultUsers can select the button to activate an action.
HoverWhen a cursor hovers over the button, the background color changes to indicate that the button is clickable.
PressedBackground and text color changes indicates to a user that the button is active.
DisabledAvoid disabled buttons when possible. The disabled state is for if you are still showing the button, but the actions it completes are disabled. The background and text color changes to indicate to a user that the button is inactive. Read more about disabled buttons.
LoadingA loading animation indicate the button is active and loading.
FocusA focus outline appears around visual element to help users identify current selected component. This is used when a user navigates using keyboard controls or uses a cursor.

Tertiary

Anatomy

Secondary Button Anatomy
NameDescriptionRequired
LabelUsed to inform the user of the expected button action. Label best practiceYes
IconGraphic element to enhance the visual appeal and tell the user more about buttons action. Can be used before or after the label. Choose the appropriate Icon based on the buttons action. Icons are for use with a label, if you would like an icon on its own use Icon Button. See choosing iconsOptional

States

Secondary Button Anatomy
StateDescription
DefaultUsers can tap or click the button to activate an action.
FocusA focus outline appears around visual element to help users identify current selected component. This is used when a user navigates using keyboard controls or uses a cursor.
HoverWhen a cursor hovers over the button, the background color changes to indicate that the button is clickable.
PressedBackground color change indicates to a user that the button is active.
DisabledAvoid disabled buttons when possible. The disabled state is for if you are still showing the button, but the actions it completes are disabled. The background and text color changes to indicate to a user that the button is inactive. Read more about disabled buttons.
LoadingA loading animation indicate the button is active and loading.

Questions?

Connect with the DLS Team on Slack or by email.

Resources

Check out additional resources.