Anchor

An anchor is a primitive for building custom links.

Usage

Use an anchor to make custom links. Anchors help users navigate to another page or sections of a page. They can also download files or provide contact information such as phone numbers or email addresses.

Anchor is based on the HTML <a> tag, with Atlassian focus styles and event tracking built-in. You can customize the anchor's appearance using our styling APIs.

For example, an anchor could be used to make a link card with a larger clickable area than a typical link.

Anchor is meant for custom elements and styles that aren't possible using other components. For standard links or buttons that navigate users to a new location, use link or link button.

Using existing components wherever possible makes Atlassian's UI more visually consistent, and these components are faster to use for most basic use cases.

Accessibility

Differentiate anchors from regular text

Anchors are underlined by default. This helps differentiate links from regular text, which is an accessibility requirement. Using color alone to differentiate links isn't accessible, especially if links are surrounded by other text.

A link surrounded by regular text. The link provides color and an underline to differentiate the link from regular text.

Do

Use both underlines and color for links surrounded by regular text.

A link surrounded by regular text. The link provides only color but no underline to differentiate the link from regular text, however it's insufficient.

Don’t

Only use color to differentiate links from regular text.

Only remove underlines and omit other style affordances such as color if the context surrounding the link makes it clear that it's interactive, such as in navigation or a card layout.

Links in a navigation section. The links use a subtle text color and no underline, which is appropriate because the surrounding context makes it clear that they are links.

Do

Omit underlines and color when surrounding context makes it clear it's a link.

Links in a navigation section. The links use a bright text color and underline, which is not required because the surrounding context makes it clear that they are links.

Don’t

Use underlines and color when surrounding context already makes it clear it's a link.

Also, don't underline text that isn't a link. This makes the text look clickable because it looks a link.

Don't confuse anchors and buttons

Anchors are for navigation and URL changes, while buttons are for on-page actions such as form submissions or opening modals. These elements are treated differently by assistive technologies, so avoid using one in place of the other.

Don't use anchor to make custom actions rather than navigation elements. To build a custom button, use the pressable primitive instead.

Don't link vague words or phrases like “here” or “learn more.” Make sure the linked text clearly describes the purpose of the link for assistive technologies.

A link with the text "Explore recommended sources", clearly describing the purpose of the link.

Do

Clearly describe the purpose of the link.

A link with the text "Learn more", making it difficult to determine the purpose of the link.

Don’t

Link vague words or phrases.

It might make sense for a link to open in a new window if:

  • There's a risk of someone losing their current place or task
  • The link takes the person out of the current app or to an external website

As a technique to improve accessibility for links that open in new windows, (opens new window), anchor will automatically provide a visually hidden warning for screen readers.

Make link text size at least 12px. Smaller text is harder to read and interact with.

If anchor is used for non-textual links, ensure the clickable area is at least 24 by 24 pixels for accessibility. For more information see Target Size (Minimum) (Level AA), (opens new window).

Content guidelines

Try not to repeat the same link text over and over on a page. Make sure link text is clear about where the link will go.

Always specify if a link triggers a download, and make the linked text clear about what exactly will be downloaded. Include file type and size as well.

Using too many links can overwhelm other, more important information on a page.

Links take people to a new page or location. Be mindful of whether or not the linked resource is helpful or distracting to the current task.

Only link the words that are necessary to clarify where the link goes. Don't link the entire sentence. (Linking smaller phrases can be better for internationalization when sentence structures change across languages.)

Only include the verb in the linked text if it better describes the purpose the link or differentiates it from other links and actions on the page.

For example:

Update Jira settings to turn off notifications. To upgrade, sign up for Jira.

If only Jira was linked, it wouldn't be clear that this was a sign up page.

For standalone links, link the whole phrase. Don't add punctuation.

These type of links typically follow general button or other label content rules (sentence case capitalization, no punctuation, etc.)

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