Table of Contents | ||||||||
---|---|---|---|---|---|---|---|---|
|
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
A Link is a basic navigational element that allows users to navigate through your website or application. They may appear on their own, within a sentence or paragraph, or directly following content.
Table of Contents | ||||||||
---|---|---|---|---|---|---|---|---|
|
Usage
Tip |
---|
Do’s
|
Warning |
---|
Dont’s
|
Links vs Buttons
Links and buttons have different behaviours and generally have distinct visual styling that differentiate from each other.
There are clear use cases that help you decide whether a link or a button is the appropriate interactive element:
Panel | ||
---|---|---|
| ||
Links
|
Panel | ||
---|---|---|
| ||
Buttons
|
Links that look like buttons
In some cases links are styled to look like buttons to increase their prominence and align their styles with other interactive elements of a webpage. This should be avoided as much as possible, although design and brand choices sometimes make this difficult. Use your best judgement when designing link styles to determine if a button like style is necessary.
Anatomy
| Item | Component type | Content type | Notes | ||||||
---|---|---|---|---|---|---|---|---|---|---|
1 | Default | n/a | text |
| ||||||
2 | Hover | n/a | text | |||||||
3 | Focus | n/a | text | |||||||
4 | Active | n/a | text | |||||||
5 | Visited | n/a | text | |||||||
6 | Selected | n/a | text |
Visual style
<explain different types of links>
<Explain size>
Primary
Used for the primary CTA on a page, linking to primary content.
Secondary
Used to link to secondary content on a page.
Subtle
Used for links in the footer
Nav
Used for links in the primary navigation component.
Selector
Used in the product header for selecting product quantities.
Retailer
Used in the product header for linking to retailers.
Heading
Used in headings to link to further content. Heading links can be applied to app heading sizes. Note
To be added:
Explain how retailer link works in StorybookEditorial
Links must be kept short and to the point.
Avoid using “Click here” or “Start here” and provide descriptive text so the user knows where they are navigating
Provide
alt
text that can be read by screen readers to provide more context.Use sentence-case for link text. Screen readers will ready capitalised links letter by letter.
Behaviour
Links are triggered by the
enter
key.Links change style based on whether the user has visited the destination before.
Accessibility
Ensure an appropriate aria-label is used
Use concise and meaningful text for links
Avoid the use of “Click here“, “More“, “Read more“, “Find out more” etc
Do not capitalise the text in links.
Don’t use URLs for link text
Do not use the word "link" as part of the link text
Link’s should open in the same tab