Text link

v2.1

Text links are lightweight navigational elements. Links can appear within a paragraph, after a paragraph, standalone, or in a list of other links. They are underlined by default.

  • Skin
  • Marko
  • React

Considerations

Clear

The link text makes it clear where it will take the user.

Identifiable

Links are familiar and easily identifiable amongst other content.

Concise

Link text is short. Aim for fewer than 5 words.

Usage guidelines

When to use

  • Navigating within the app
  • Navigating externally
  • Navigating to an element on a page (anchor link)
  • Email addresses and phone numbers

When not to use

  • Actions that manipulate data or how its displayed
  • Actions that change state
  • Navigating to legal links

Text links vs Link buttons

If an action results in a URL change or new browser tab use a Text link. Everything else is a Button.

Semantics

HTML text links and buttons have important differences in behaviors, interactions and expectations. For example, a Text link will perform its interaction when clicked and when the enter key is pressed. A Button will perform its interaction when clicked and when the enter and spacebar keys are pressed. When holding the control or command key a Text link will open a new browser tab, a Button will not.

Buttons take action, links navigate

  • Use a link when you’re navigating to another place, such as: an item page, a seller profile, a page "skip link" etc.
  • Use a button when you are performing an action, such as: "bid," "add," "search," etc.

Anatomy

Behavior

Inline

Inline links appear within paragraphs and sentences. They always have an underline to differentiate between non-link content.

A sentence with two links highlighted with underlines.

Color

Links should generally match the color of the content around it. Standalone links can use a secondary color within a list to avoid overwhelming the UI or a primary color for more emphasis.

Exception: Legal links must use the specific legal link color.

Two text blocks in black and gray. Each has a text link that matches the color of the surrounding text.

Size

Text links inherit their size and styling from the content around them.

Three different text blocks in different sizes. The text links in each are the same size and color as the surrounding text.

State

Text links use state layers for interaction states. The available states are enabled, hover, focused, visited, and disabled. Learn more about the state layer color values in Color tokens.

The different states lined up for text links. From left to right are enabled, hover, focused, visited, and disabled.

Background

Links placed on backgrounds using our expanded color palette should use the coordinating foreground color to match. This ensures we meet WCAG’s 4.5:1 ratio standard for AA contrast. See Accessibility foundations for more info.

A marketing banner with a text link under the call to action. The text link matches the blue color theme.

Platforms

Native

Keep in mind that on native devices, it's common for an entire line of text to be tappable when it contains a link. This is particularly important if multiple links are close together, as it could lead to accidental taps.

A mobile screen with a block of text with three lines. The last line has a text link and a pink shape overlapping the full width of the text line to indicate the line itself is tappable.

Best practices