Skip to content

Official government website An official website of the Federal Government of Nigeria

How you know
Federal Ministry of Communications, Innovation & Digital Economy Nigerian Design Standards

Link

Links take people to another page, a place on the same page or another site. They sit inside a sentence or on their own, and keep their underline in every state.

Updated

Live example

Link

Overview

A link takes people somewhere: to another page, to a place on the same page, or to another site. If the control does something on the page, use a button.

Use a link to

  • Go to another page
  • Go to a place on the same page
  • Go to another website

Don’t use a link to

  • Submit a form, open a dialog or menu, or change the page (use a button)
  • Show an icon (use a tertiary button)
  • Take people to one item with a title, summary and image (use a clickable card)

Inline and standalone

Two ways to use the same component, not separate variants or states. Both keep the underline, so they can be found without colour.

Specifications

The properties the nds-link component has. The same in HTML, WordPress and React.

Link properties
Property Type Possible values Description
size string
  • sm
  • md default
  • lg
Text size: 12/16, 14/20 or 16/20. Match the text around the link.
state string
  • default default
  • hover
  • focused
  • pressed
  • visited
For design and QA. In code they come from :hover, :focus-visible, :active and :visited.
underline fixed always on Always on, in every state and size, 3px below the text. People find links by the underline, not the colour.

In code, write a real <a href="…">. For a link that opens a new tab, say so in the link text and add rel="noopener noreferrer".

Tokens

Link colour tokens and contrast
State Token Contrast on the page
Default status/info/surface 5.6:1
Hover status/info/hover 7.5:1
Focused status/info/hover, with a border/focus ring 7.5:1 · ring 4.5:1
Pressed status/info/pressed 9.8:1
Visited text/muted 6.6:1

Use cases

Placement

Where links sit and how much room they need.

Wrap with the text

Inline links wrap onto the next line with the sentence. Don’t force them onto one line.

Make standalone links easy to tap

Give them 24px of height: add 4px above and below for Md and Lg, 8px for Sm.

Match the text size

Md is the default. Md next to 14px text, Lg next to 16px (proposed).

No icons

A link is text and an underline. When an action needs an icon, use a tertiary button.

Space links apart

Don’t put two links next to each other with no space. Leave space or a separator.

Copywriting

How to write link text. Clear words help everyone, especially people using screen readers, who often hear links as a list.

Say where it goes

Use the name of the page or the thing people will get.

Make sense on its own

The link text alone should say where it goes, without the sentence around it.

Don’t write “click here”

Or “read more” and “learn more”. If the design needs short text, add hidden context for screen readers: “Learn more about fees”.

No bare URLs

Write the name of the page, not www.example.gov.ng.

Say if it opens a new tab

Add “(opens in a new tab)” to the link text.

Use sentence case

Capitalise only the first word and names.

Accessibility

Built on a real <a href> element, so it works with keyboards, screen readers and browser features like open in new tab.

Keyboard interaction for links
Key What it does
Enter Follows the link.
Space Does nothing. Space belongs to buttons and scrolls the page.
Tab Moves focus to the next link or control.
  • The underline stays in every state, so links aren’t shown by colour alone (WCAG 1.4.1).
  • Link text meets WCAG 2.2 AA contrast: 5.6:1 by default and 6.6:1 when visited.
  • Keyboard focus shows a ring in border/focus (4.5:1).
  • Standalone links have at least 24px of tap area, with space above and below (WCAG 2.5.8).
  • Link text says where it goes, or the sentence around it does (WCAG 2.4.4).

For developers

Copy the code for HTML, WordPress or React from the Code tab in Live example. The options are listed under Specifications.

For designers

Use the nds-link component from 01 Library – Foundations. Don’t detach it.

References

Feedback

Report a problem with this page