v1.4.0
  1. Home
  2. Get started
  3. Foundations
  4. Patterns
    1. Accordion
    2. Autocomplete
    3. Button
    4. Callout
    5. Chat
    6. Description List
    7. Details
    8. Expand Text
    9. Fallback Image
    10. Feedback
    11. Focus Indicator
    12. Footer
    13. Header
    14. Hero
    15. IIIF Image
    16. Link
    17. Page Title
    18. Results per Page
    19. Service Switcher
  5. What's new

Button

Buttons are for actions. People expect buttons to do an action and links to navigate to another page.

Help people take actions like submitting a form.

When to use

Use buttons for actions like search, request, or delete. Use links for navigation from one page to another.

How to use

Use button types to create a hierarchy that guides people toward the most important actions.

Default buttons should make up most of the page. Too many accent, success, or attention type buttons make it harder for people to focus.

Default

Use .pl-button for most actions on the page. It tells people this is not the main focus.

<div class="pl-margin-m">
  <button class="pl-button">Okay</button>
</div>

Accent

Use .pl-button--accent for the main action on the page. It tells people "start here."

<div class="pl-margin-m">
  <button class="pl-button pl-button--accent">Find it</button>
</div>

Success

Use .pl-button--success for actions that complete a task, like placing a request or saving a change.

<div class="pl-margin-m">
  <button class="pl-button pl-button--success">Request an item</button>
</div>

Attention

Use .pl-button--attention for actions that are hard to undo, like deleting or canceling something.

<div class="pl-margin-m">
  <button class="pl-button pl-button--attention">Delete</button>
</div>

Button labels

Keep labels short and start with a verb that describes what happens when people select the button.

Design System

Get started Content & writing v1.4.0