Button

A button triggers an event or action. They let users know what will happen next.

Neutral selected states

When the platform-dst-tokens-finesse feature flag is enabled, this component uses the new neutral treatment for selected states.

Usage

Buttons are triggers for events or actions. They're a common part of larger experiences such as forms, (opens new window) or modal dialogs.

Parts

Button diagram. A caption follows this image.

Buttons typically have a label and can include an icon before or after the label.

  1. Label: Text describing the button action. Use action verbs or phrases to tell the user what will happen next, and follow the button label content guidelines.
  2. Button: The selectable area of the button.
  3. Icon (optional): Most buttons don’t need an icon. Use an icon to add additional affordance where the icon has a clear and well-established meaning.

Use one primary call to action

Only include one primary button or call to action (CTA) in a page or area.

Primary buttons indicate the most important action in a group or area. Having multiple primary CTAs in one area can be confusing or visually overwhelming because they compete for attention.

Two buttons in a group. One says cancel and is grey, the other says primary and is blue, making it the more promenint call to action.

Do

Use one primary call to action to help people proceed.

Two buttons in a group. One says cancel and the other says primary. Both are primary blue, causing them to compete for attention.

Don’t

Don't use many calls to action in one page or container.

Consider button sizes in context

Make sure the button is large enough to interact with but not visually overwhelming. There is a compact button for tight spaces.

Buttons are for actions that affect something on the current page, such as submitting a form, playing media, or closing a modal.

Links navigate to a new page or anchor location, changing the URL.

In general, don’t use a <button> in place of a link (<a>) or a link in place of a button. HTML buttons and links are treated differently by assistive technologies such as screen readers, so using the wrong one can make experiences harder to use for some people.

Accessibility

Avoid disabling buttons

Avoid disabling buttons, especially in forms. Instead, keep the button pressable, and use validation and errors to explain what needs to be done to proceed.

Disabled buttons don’t explain why the button isn’t usable. They also aren’t reachable in the tab order and don’t receive hover, focus, or click events, making them entirely inaccessible to some people.

A form that is incomplete. The button remains visible and pressable, and validation text explains what must be done to proceed.

Do

Use validation or other clear on-screen directions to help people proceed.

A form that is incomplete. The button is disabled and light grey in color, which is difficult to see. There is no explanation of what to do to proceed.

Don’t

Don't disable form submission buttons, as this doesn't give people clear a direction for how to proceed.

Never put tooltips on disabled buttons

Tooltips can't be reached on all devices or by some assitive technologies, and they should never appear on elements that aren't interactable.

Things to consider before using a tooltip:

  • Is this information essential to the user experience? If so, never hide it behind a tooltip. Tooltips aren’t easy to discover and aren’t accessible at all on mobile devices. If it isn’t essential information, consider if you need to show it at all.
  • Is this information actionable? Being shown things that you can’t use without any next steps can be frustrating or confusing. Consider only showing UI that a user can interact with.
  • If the information is still necessary or helpful, consider using helper text or other more accessible text that has the same content instead of a tooltip. This gives you more options to provide a link to a next step or another relevant action.

Best practices

Alignment and positioning

In general, the primary button placement should match the alignment of the button group. For example, right aligned button groups place the primary button on the right. Left aligned button groups place the primary button on the left.

  • Right align buttons for focussed tasks, series of tasks (such as onboarding), and modal dialogs. Right aligning buttons is best for experiences with less copy, so users end scanning on the most important action (following a Z-pattern).
  • Left align buttons for single-page forms and other full-page tasks where there is a lot of content in view. This aligns with how people scan full pages with more content (F-pattern), sorting by importance from left to right. Cards can also left-align the primary action, as they’re typically part of a larger page experience.
  • Exceptions: Benefits modals and login forms currently center align buttons.
Buttons aligned to the right in a modal dialog, with the primary action furthest right.

Do

Right-align buttons for focussed tasks, modal dialogs, and other areas with less content.

Buttons aligned to the left in a full-page layout, with the primary action furthest left.

Do

Left align buttons on full-page forms, long lists of cards, or other screens with a lot of full-page content.

Content guidelines

Use sentence case capitalization

Only capitalize the first letter of the button and any proper nouns. Most feature names aren’t capitalized or considered proper nouns when following our capitalization guidance.

Button that says Complete sprint. Only the first letter is capitalized.

Do

Use sentence-case capitalization.

Buttons that say Complete sprint text in title case and all caps.

Don’t

Don't use title case capitalization or all caps.

Keep button labels short

Keep labels short and free of punctuation. Drop unnecessary articles, such as ‘a’ or ‘the’, for a more concise label.

Button that says Reset Password.

Do

Use concise, easy to scan button labels to describe the action.

Button that says Send a password reset email.

Don’t

Don't use long, redundant button labels.

Use specific labels wherever possible

Start with the verb and specify what is being acted on. Use dynamic text to make the button very specific if possible.

Text that asks delete unpublished page? Followed by a delete CTA button and a cancel button

Do

Use active verbs or phrases that clearly indicate action.

Text that asks delete unpublished page? Followed by a Yes CTA button and a No button

Don’t

Don't use vague and generic labels that make the user read the dialog before taking action.

Make labels consistent with other UI in view

For example, if a button is part of a larger modal, use the same language in the button as in headings and other related text.

Confirmation modal asking do you want to discard? Button label also says Discard

Do

Use consistent language for the button and other text descibing the same action.

Confirmation modal asking do you want to discard? Button label says Delete

Don’t

Don't use different words to refer to the same action.

Data Center apps

For all new features, we recommend using Atlassian Design System and other Atlaskit components, (opens new window). For existing code, you can continue to use Atlassian User Interface (AUI), (opens new window).

Was this page helpful?
We use this feedback to improve our documentation.
© 2026 AtlassianTrademark, (opens new window)Privacy, (opens new window)License