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

Select

Lets people pick one option from a list, such as state, local government area or service category.

Updated

Live example

Select

Where you live, so we can send your message to the right office.

Controls
Property Control What it does
Default, open, active, error, disabled
Hint
Help text under the label
Required
Asterisk in the label row and native required
The question people answer

Overview

Use a select for a short list people can scan in a native menu. For long lists people type to filter, use the Combo box. Every field has a visible label, and a hint only when most people need help to answer.

Use a select for

  • State when the list is short enough for a native menu (about 7 to 15 options)
  • Service category or department from a fixed catalogue
  • Any fixed list people can scan without typing

Don’t use a select for

  • Yes or no, or two or three options everyone should see (use radio buttons)
  • Long lists people filter by typing (use a combo box)
  • Answers people type from scratch (use a text input)

Types

Where you live, so we can send your message to the right office.

Select

A native select for about 7 to 15 known options. The first option, 'Select a state', has no value.

Select a state

  • Kano
  • Lagos
  • Ogun

Select, open

On desktop the browser opens a list like this. On phones the phone opens its own picker.

Specifications

The properties of Form/Select field and Form/Combo box. The same in HTML, WordPress and React.

Select properties
Property Type Possible values Description
select · state string
  • default default
  • open
  • active
  • error
  • disabled
Active is the field in use: a 2px border/dark (not the keyboard focus ring). Open shows the list. On phones, the native OS picker opens. Error shows the message and a red border.
required boolean
  • false default
  • true
Shows an asterisk in the label row and sets the native required attribute on the control. Use optional text beside the label when the field is not mandatory.
options array label + value The list of choices. The first option is “Select a …” with no value so it fails validation until someone picks.

In code, use a native <select> with <label for>. For long filterable lists, see the Combo box page.

Tokens

Select tokens and contrast
Part Token Contrast on the page
Field border border/strong, 1px · border/dark, 2px when active 4.2:1 · 14.3:1
Error border status/error/surface 4.9:1
Menu surface/canvas · border/default · radius/050 · header band surface/muted + divider —
Option spacing/500 (40px tall) · border/dark 2px on keyboard focus 14.3:1
Chosen option Semi bold · action/primary/default check icon 5.8:1
Scrollbar thumb text/muted on surface/muted 6.1:1

Use cases

Do

Select a state

  • Kano
  • Lagos
  • Ogun

Use a select for about 7 to 15 known options people can scan in a menu.

Don’t

Don’t use a select for yes or no. Two radios are quicker and show both answers at once.

Layout

How the field and its menu are sized and placed.

Menu under the field
The menu opens 4px below the field, the same width as the field. It never covers the field.
6 options, then scroll
Show six options at once. Cut the seventh in half so people know they can scroll.
40px options
Every option is 40px tall, so it is easy to tap.
Phone pickers stay
On phones, keep the native picker. Do not replace it with a custom web menu.
Width fits the longest option
On desktop and tablet, size the field to the longest option. On mobile, fill the width.

Copywriting

How to write the label, the options and the messages.

Say what to choose

“State”, “Topic”, “Local government area”.

Start with “Select a…”

The first select option has no value: “Select a state”.

Order options clearly

Alphabetical for states and LGAs. Most common first only when you have evidence.

Keep options short

A few words each, so the menu is easy to scan.

Say how to fix an error

“Select the state you live in”, not “Invalid selection”.

Help when nothing matches

“No matches for ‘Ikx’. Check the spelling, or type fewer letters.”

Examples

Select copywriting examples
Write Don’t write Why
Select a state -- Please select -- Says what to do in plain words.
Select the state you live in Invalid selection Says how to fix it.
No matches for "Ikx" No data Says what happened and what to try.
Local government area LGA (select one) Spells it out; the field shows it’s one choice.
Abia, Adamawa, Akwa Ibom … Lagos, Abuja, then the rest Alphabetical, so people can find their state.

Accessibility

Selects use native <select> and <option> elements. Combo boxes follow the WAI-ARIA combobox pattern with a visible <label>.

Keyboard interaction for selects and combo boxes
Key What it does
Space or Alt + ↓ Opens the list.
↑ / ↓ Moves through options.
Enter Selects the option and closes the list.
Esc Closes the list. On a combo box, Esc again clears the text.
Typing Select: jumps to the first option starting with that letter. Combo box: filters the list.
Tab Closes the list and moves to the next field.
  • Every field has a visible label linked with for/id (WCAG 1.3.1, 3.3.2).
  • Combo boxes announce how many results match in a polite live region (WCAG 4.1.3).
  • The menu never covers the field and closes on Esc (WCAG 1.4.13).
  • Options are 40px tall, above the 24px minimum target (WCAG 2.5.8).
  • The chosen option uses a check icon, not colour alone (WCAG 1.4.1).
  • The field border is 4.2:1 and goes 2px when active (WCAG 1.4.11).

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 Form/Select field and Form/Combo box from 01 Library – Foundations. Don’t detach them.

References

Feedback

Report a problem with this page