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

Banner

A full-width bar at the very top of the page. The site-wide banner carries a short, time-bound announcement for the whole site. The official banner tells people the site belongs to the Federal Government.

Updated

Live example

Banner

Online services unavailable Saturday 8 November, 10pm to 2am.

Controls
Property Control What it does
Site-wide or official
What and when, in one line

Overview

Use a banner for a time-bound message that affects the whole site: it affects more than one page or service, has a start and an end, and fits in two lines on a phone. Every banner costs screen height, so keep it short and remove it when it expires.

Use a banner for

  • Scheduled maintenance that affects every service
  • Office closures and public holidays
  • A new service or policy change, for two weeks at most

Don’t use a banner for

  • A problem on one page or form (use an alert)
  • Feedback after an action (use a toast)
  • Marketing, promotion or cookie choices

Types

Site-wide or official.

Online services unavailable Saturday 8 November, 10pm to 2am.

A message and one link to the full notice. On mobile the link sits below the message.

Offices closed Monday 1 December for the public holiday.

Turn the link off when the message says everything.

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

How you know

Official

On every page, above the masthead. It can’t be dismissed.

Offices closed Monday 1 December.

Site-wide · short

One line, about 45 characters. Short messages give the most height back.

Specifications

The properties of the nds-banner component. The same in HTML, WordPress and React.

Banner properties
Property Type Possible values Description
message string
  • any text
Required. What and when, 90 characters at most on mobile.
type string
  • site-wide default
  • official
Site-wide is an announcement; official marks a government site.
linkText string
  • any text
Optional. Names the destination. Pass linkHref with it.
showContact boolean
  • false default
  • true
Official banner only. Adds phone and email on desktop.

In code, the site-wide banner is a <section aria-label="Site announcement"> before the header. The dismiss button is always there. A dismissed banner stays hidden for the visit and returns when the message changes. Don’t use role="alert".

Tokens

Banner tokens and contrast
Part Token Contrast on the page
Container Naija Green · spacing/075 + spacing/200 (desktop) · spacing/150 + 16/8 (mobile) · content max grid/container-max 1200 Border is decorative
Message Body/small-emphasized · text/white 5.8:1
Link nds-link, white and underlined 5.8:1
Dismiss (32px target) icon/Close Small, 24px · text/white 5.8:1
Focus ring border/focus on green, to be fixed 1.3:1
Official banner surface/container · Label/small (mobile) · Label/medium (desktop) · spacing/500 inline on desktop · text/primary 15.0:1 · link 4.7:1

Use cases

Do

Online services unavailable Saturday 8 November, 10pm to 2am.

Keep it to one line where you can, with one link named by its destination.

Don’t

Exciting news! We are delighted to announce that a brand new online service is now live. Visit today to learn more about everything it offers.

Don’t write long or promotional messages, or add a button. Link to a page instead.

Layout

Where a banner sits and how much room it takes.

Above the header
At the very top of the page, above the official banner and the masthead.
Not sticky
Scrolls away with the page. It must not cover other content.
One at a time
Show only the most important site-wide banner.
90 characters on mobile
Aim for one line, about 45 characters. Up to 90 characters on mobile.
Link below on mobile
The link sits on its own row (32px), clear of the dismiss control.

Copywriting

How to write banner messages.

Say what and when

Online services unavailable Saturday 8 November, 10pm to 2am.

Front-load the change

Start with what changes for people, not with “We are pleased to announce”.

Name the link
“Read the notice”, not “Click here”.
One link at most

The detail belongs on the page it links to.

Set an end date
Remove the banner when it expires.
Plain words
No hype, and sentence case.

Examples

Banner copywriting examples
Write Don’t write Why
Online services unavailable Saturday 8 November, 10pm to 2am. Scheduled maintenance Says what and when.
Read the notice Click here Names the destination.
Offices closed Monday 1 December Public holiday notice Says what it means for people.
Apply for a passport online from 1 January Exciting news! New service launched Plain words, no hype.
Fees change on 1 March FEES ARE CHANGING Sentence case.

Accessibility

The site-wide banner is a labelled region at the top of the page. It never takes focus on load, and it scrolls away with the page so it does not cover content. Keyboard users reach the link and dismiss control after the skip link; screen readers hear the region name and dismiss label.

Keyboard interaction for the banner
Key What it does
Tab Moves to the link, then the dismiss button, after the skip link.
Shift + Tab Moves back.
Enter or Space Follows the link or activates dismiss.
  • Site-wide: section with aria-label="Site announcement"; dismiss is labelled “Dismiss announcement” (WCAG 4.1.2).
  • Don’t use role="alert" on load. Use role="status" only if the banner appears while someone is already on the page (WCAG 4.1.3).
  • The banner region never takes focus (WCAG 2.4.11). It is not sticky.
  • Message and link on Naija Green are 5.83:1 (WCAG 1.4.3). Links are underlined (WCAG 1.4.1).
  • Dismiss target is 32px (WCAG 2.5.8). The focus ring on green is to be fixed; until then, use a white outline on green.

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 Banner from 01 Library – Foundations. Pick site-wide or official, set the message and link text, and don’t detach it.

References

Feedback

Report a problem with this page