Link
A link takes the reader to another page, another place on the page or another site. It sits in running text or on a line of its own, and it is always underlined.
Anatomy and states
Before the interview with Arjun Thapa, check his documents against the work permit checklist and ask him for the missing ones.
A link takes the size and weight of the text around it, in brand blue, with an underline at 30 percent of that blue. Hover brings the underline to full strength, and keyboard focus draws the focus ring around the words.
A link is always underlined, so it does not depend on color alone.
- Ink in light
- The brand blue
- --brand-blue
- Ink in dark
- The lighter brand blue made for text
- --brand-ink
- Underline at rest
- 1 px, 30 percent of the ink, 2 px below the text
- Underline on hover
- The full ink
- Focus
- 2 px outline, 2 px offset
- --focus-ring
- Size and weight
- Those of the surrounding text
- Transition
- 150 ms on the standard curve
- --duration-fast
When to use it
Use a link when the result is a new location. When the result is an action on this screen, such as saving or opening a dialog, use a button, even a quiet one.
A call to action that should look like a button, such as View candidates, is a button with an address. It keeps the behavior of a link.
Links to other sites
A link to another site opens in a new tab, shows the external glyph after its text and tells a screen reader that it opens a new tab. Links within Werklist open in the same tab.
Read more on werklist.com, opens in a new tab
- External glyph
- The font size of the text, 4 px after it, not underlined
- --space-1
- Read to a screen reader
- opens in a new tab
Writing the link
Link the words that name the destination, and make them readable on their own: work permit checklist, not Click here or Learn more. Leave punctuation outside the link.
Two links with the same text lead to the same place. Show an address as text only when the address is the point, such as an email address to write to.
A long address breaks inside the column on a phone, so the page does not scroll sideways.
Keyboard and screen readers
Tab reaches a link and Enter follows it. Space scrolls the page and leaves the link alone.
A screen reader lists links out of their sentences, so the text alone must say where each one leads.
Permitted and not permitted
Permitted
Check the work permit checklist
The link sits on the words that name the page
werklist.com with the external glyph
The reader knows a new tab opens
Not permitted
Click here
Read alone, it says nothing about the destination
A link that saves or opens a dialog
An action on this screen is a button