Skip to content

Commit

Permalink
Add links in a new tab advice
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Nov 21, 2023
1 parent 0e09214 commit ae337a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/styles/links/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ White links can be used in dark areas where the default colour would not provide
Links within [heading elements](/design-system/styles/typography/#headings) have an `›` pseudo element added after them. The exception for this is headings within cards.

{{ example({ group: "styles", item: "links", example: "heading-link", html: true, nunjucks: false, open: false, size: "xxs" }) }}

## Opening links in new tabs

Follow the advice from GOV.UK on [opening links in a new tab](https://design-system.service.gov.uk/styles/links/#opening-links-in-a-new-tab).

Avoid opening links in a new tab unless not doing so would detrement the user's experience.

0 comments on commit ae337a3

Please sign in to comment.