+234 Design System

Tag

Topics and filters. The only pill-shaped thing in the system, which is what keeps the shape meaningful.

When to use it

Links, and a filter that is on

HTML
<a class="p234-tag" href="#">Visa</a>
<a class="p234-tag" href="#">Canada</a>
<a class="p234-tag" href="#">Work permit</a>
<button class="p234-tag" type="button" aria-pressed="true">Markets</button>

Link or button

A tag that navigates is an anchor. A tag that toggles a filter in place is a button with aria-pressed, which is what announces the state to a screen reader. The pressed style is a brand tint with an inset brand ring, so the state does not rely on the fill alone.

In an article

Under the body

The list sets out which passports qualify for the youth mobility pool next year.

Canada Work permit Youth mobility
HTML
<div class="p234-prose">
  <p>The list sets out which passports qualify for the youth mobility pool next year.</p>
</div>
<div style="display:flex;gap:var(--p234-space-3);flex-wrap:wrap;margin-top:var(--p234-space-6)">
  <a class="p234-tag" href="#">Canada</a>
  <a class="p234-tag" href="#">Work permit</a>
  <a class="p234-tag" href="#">Youth mobility</a>
</div>

How many

Three to six. A wall of tags is the same failure as a wall of related links: it tells the reader nothing about which one matters. Visa articles are auto-tagged with travel and country tags by a database trigger, so the count can grow without anyone deciding to grow it. Cap it in the template.

Tokens this component reads

--p234-color-ink--p234-color-paper-sunk--p234-color-brand--p234-color-brand-tint--p234-type-ui-sm-*--p234-radius-pill--p234-space-2--p234-space-4