Section header
The heading block of a marketing section: an eyebrow with its rule, the section's h2, and a one-sentence lead, above the section's content.
When to use
- At the top of every section of a marketing landing page, before its card grid, steps row, FAQ, or band (canonical §11 row 1, D-CSN-36).
- With a trailing link when the section shows part of a list that has its own page ("Latest jobs" with "See all 15 jobs").
- With a status dot when the section groups things by state ("Live now", "Coming soon" on Global ID's landing).
- Centered for a short intro or the page's closing statement ("Come curious. Leave with a story.").
- Inside the CTA band and the FAQ, which build on it.
When not to use
| Situation | Use instead |
|---|---|
| The top of the page | The hero: it holds the page's h1 |
| A section heading inside an app screen, a settings group, a detail page | A plain h2 in text-title-lg (canonical §3.5) |
| A card's or a tile's title | The card title, text-title-md (Card) |
| A label above a value ("Total", "On campus") | The stat tile label, or a plain eyebrow (.oa-eyebrow) without the rule |
| A heading that needs a status chip, a count, or actions beside it in an app | The list or table header of List and Data table |
Anatomy
- Eyebrow (optional):
.oa-eyebrow.oa-eyebrow--rule, the 32 × 2pxprimaryrule then 2–5 words inprimary-ink, uppercased by CSS in English and French (Typography). - Title (
.oa-section-header__title): the section'sh2inhero-md, 12px under the eyebrow. - Status dot (optional): an
.oa-status.oa-status--lgdot (Status indicator) inside theh2, before its words, placed by.oa-section-header__status. - Lead (optional,
.oa-section-header__lead): one sentence inlead,on-surface-variant, 16px under the title, at most 672px wide. - Text block (
.oa-section-header__text): wraps 1–4 in the trailing-action variant. - Trailing action (
.oa-section-header__action): a standalone link witharrow_forward, at the inline end, bottom-aligned (Link).
The section's content follows 48px under the header (mt-section-head, D-LAY-10).
Variants
| Variant | Use for | Key tokens |
|---|---|---|
| Default | Every marketing section | --text-hero-md, --text-lead, --color-primary-ink (eyebrow), --color-primary (rule), --container-reading |
Centered (--center) |
A short intro; the page's closing statement | the same, centered |
Trailing action (--action) |
A section that previews a longer list | .oa-link--standalone, --space-4 |
| Status | Sections grouped by state: live, coming soon | the status indicator's large dot: .oa-status--success (--color-success / --color-success-container), .oa-status--pending (--color-warning / --color-warning-container) |
| In the inverse band | The CTA band | eyebrow --color-inverse-primary, lead --color-inverse-on-surface-variant |
Sizes
| Size | Height | Padding | Type style | Icon size |
|---|---|---|---|---|
| One size | the content's | none; the block is at most 768px wide (max-w-reading), the lead 672px (max-w-measure) |
eyebrow eyebrow (12/16 600, +0.12em; 13px in Arabic); title hero-md (32px at 390px, 56px from 1280px); lead lead (18px, 20px from about 890px) |
trailing link icon 20px (--size-icon-md); status dot 12px with a 5px halo |
Tokens
| Part | Property | Token |
|---|---|---|
| Block | width | --container-reading (48rem); the action variant spans its container |
| Eyebrow | color, type | --color-primary-ink, --text-eyebrow (base.css) |
| Eyebrow rule | size, color | --size-eyebrow-rule-inline × --size-eyebrow-rule-block (32 × 2px), --color-primary |
| Eyebrow → title | space | --space-3 (12px) |
| Title | type | --text-hero-md with its line height, letter spacing, and weight; text-wrap: balance |
| Title → lead | space | --space-4 (16px) |
| Lead | type, color, width | --text-lead, --color-on-surface-variant, --container-measure (42rem) |
| Status dot | color, halo, placement | .oa-status--lg (feedback.css): --color-success + --color-success-container, or --color-warning + --color-warning-container (--pending); --space-3 (12px) before the words |
| Action row | gap | --space-4 (16px) |
| Header → content | space | --space-section-head (48px) |
States
The header is static. Its trailing link has the link states: underline thickening on hover, the family ring on focus (8px corners, a pill for standalone links). The status dot never animates: it marks a group, not a live state, so it takes the --success or --pending tone, never --live, which pulses (canonical §10.23).
Behavior
- Spacing. Eyebrow, 12px, title, 16px, lead (canonical §10.27, the component's own anatomy; §4.5's generic heading block spaces its children 16px). The content starts 48px below (
mt-section-head). - Wrapping. The title balances its lines (
text-wrap: balance); the lead usespretty. - Trailing action. The text block sits at the start and the link at the end, aligned to the bottom of the lead. When they do not fit side by side the link wraps under the text, 16px below.
- Centered. The eyebrow, title, and lead center on the block, and the block centers in its container. Keep centered text to two short lines.
- Phones. Nothing changes but the type sizes, which are fluid.
Accessibility
- Element. The title is the section's
h2. Name the section with it:<section aria-labelledby="{h2 id}">. The eyebrow is a<p>above it; it is not part of the heading (canonical §11). - Status. The dot is decorative and
aria-hidden="true"; the words carry the status ("Live now", "Coming soon") (canonical §10.23, §13). - Trailing link. Its text names the destination ("See all 15 jobs"); it is 48px tall; its arrow is decorative.
- Contrast. Title
on-surface; leadon-surface-variant(7.2:1 or more light, 5.4:1 or more dark); eyebrowprimary-ink(5.45:1 or more). The rule is decoration. - Uppercase. The eyebrow is uppercased by CSS on sentence-case source, so screen readers and translation tools get the words as written.
RTL and languages
- The block is start-aligned, so in Arabic it sits on the right; the rule leads the eyebrow on the right; the trailing link moves to the left and its arrow turns (canonical §14.2).
- Arabic eyebrows are not uppercased (base.css matches the eyebrow's own language,
.oa-eyebrow:lang(ar), so an English or French eyebrow inside an Arabic page keeps its capitals) and take 13px with no tracking (the:lang(ar)block ofoait.css); titles keep their size at line height 1.45 with no tracking (canonical §3.7). - French eyebrows keep their accents because the source is in sentence case and CSS does the uppercasing ("é" becomes "É"); check French titles at 360px: French runs about 26% longer overall and up to 32% for short labels (D-TYP-15).
Content
- Eyebrow: a 2–5 word label with no full stop, written in sentence case: "How we work", "The opportunity board", "Before you jump in", "For the people building teams". Two ideas join with " · " (D-BCP-17).
- Title: a statement with a full stop when it says something ("Four steps. No guesswork.", "Six ways to put AI to work.", "A clearer path to your next job."); a label without one when it names a thing ("Latest jobs", "How it works", "Live now") (D-BCP-17).
- Lead: one sentence of 12–25 words in marketing (canonical §12.1): "Open your passport, meet your campus, and make the day your own." (Global Games), "Bring your opportunities to people across the Middle East and North Africa." (Global Jobs). A two-sentence lede keeps one sentence: oait's "Start with one. A short briefing is all it takes to find the right first step." becomes "A short briefing is all it takes to find the right first step."
- Trailing link: names where it goes, with the count when there is one: "See all 15 jobs". Never "See more" or "Learn more" (D-BCP-21).
- Arabic (oait): "منهجية العمل" · "أربع خطوات، بلا تخمين." · "مسار واضح من أول محادثة حتى نتائج تدوم."
- French (Global ID): "Disponible maintenant" · "Déjà en service sur tout le campus." · "Bientôt" · "La suite pour Global ID."
Do and don't
| Do | Don't |
|---|---|
One h2 per section, in hero-md |
Several sizes of section title on one page |
| The eyebrow above the title, with its rule | The eyebrow below the title, or typed in capitals |
| A statement with a full stop, or a label without one | "Our Services", Title Case, or an exclamation mark |
"See all 15 jobs" with arrow_forward at the end of the row |
"See more" with north_east for a page inside the product |
| The status dot with its words | A dot alone, or a pulsing dot on a section title |
Code
HTML (reference CSS)
Default (oait):
<div class="oa-section-header">
<p class="oa-eyebrow oa-eyebrow--rule">How we work</p>
<h2 class="oa-section-header__title">Four steps. No guesswork.</h2>
<p class="oa-section-header__lead">A clear path from the first conversation to results that last.</p>
</div>Trailing action (Global Jobs):
<div class="oa-section-header oa-section-header--action">
<div class="oa-section-header__text">
<p class="oa-eyebrow oa-eyebrow--rule">The opportunity board</p>
<h2 class="oa-section-header__title">Latest jobs</h2>
<p class="oa-section-header__lead">Your next chapter could start here.</p>
</div>
<a class="oa-link oa-link--standalone oa-section-header__action" href="#jobs"><span class="oa-link__label">See all 15 jobs</span><span class="oa-icon oa-icon--md oa-icon--mirror oa-link__icon" aria-hidden="true" translate="no">arrow_forward</span></a>
</div>Status (Global ID):
<div class="oa-section-header">
<h2 class="oa-section-header__title"><span class="oa-status oa-status--lg oa-status--success oa-section-header__status" aria-hidden="true"><span class="oa-status__dot"></span></span>Live now</h2>
<p class="oa-section-header__lead">Working across campus today.</p>
</div>
<div class="oa-section-header">
<h2 class="oa-section-header__title"><span class="oa-status oa-status--lg oa-status--pending oa-section-header__status" aria-hidden="true"><span class="oa-status__dot"></span></span>Coming soon</h2>
<p class="oa-section-header__lead">What’s next for Global ID.</p>
</div>Centered, a closing statement (Global Games):
<div class="oa-section-header oa-section-header--center">
<h2 class="oa-section-header__title">Come curious. Leave with a story.</h2>
<p class="oa-section-header__lead">Open your passport, meet your campus, and make the day your own.</p>
</div>Arabic (oait), in a page with <html lang="ar" dir="rtl">, and French (Global ID) with lang="fr":
<div class="oa-section-header">
<p class="oa-eyebrow oa-eyebrow--rule">منهجية العمل</p>
<h2 class="oa-section-header__title">أربع خطوات، بلا تخمين.</h2>
<p class="oa-section-header__lead">مسار واضح من أول محادثة حتى نتائج تدوم.</p>
</div>
<div class="oa-section-header">
<h2 class="oa-section-header__title"><span class="oa-status oa-status--lg oa-status--success oa-section-header__status" aria-hidden="true"><span class="oa-status__dot"></span></span>Disponible maintenant</h2>
<p class="oa-section-header__lead">Déjà en service sur tout le campus.</p>
</div>Every variant is in reference/snippets/marketing.html; the CSS is reference/css/marketing.css, with .oa-eyebrow from base.css.
Tailwind CSS v4
<section aria-labelledby="approach-title">
<div className="flex max-w-reading flex-col items-start">
<p className="mb-3 flex items-center gap-3 text-eyebrow text-primary-ink uppercase before:h-0.5 before:w-8 before:shrink-0 before:rounded-full before:bg-primary before:content-[''] [&:lang(ar)]:normal-case">
How we work
</p>
<h2 id="approach-title" className="text-hero-md text-balance">Four steps. No guesswork.</h2>
<p className="mt-4 max-w-measure text-lead text-pretty text-on-surface-variant">
A clear path from the first conversation to results that last.
</p>
</div>
<div className="mt-section-head">{/* the section's content */}</div>
</section>- Centered:
mx-auto items-center text-centeron the block. - Trailing action: wrap the three lines in a block, then
flex flex-wrap items-end justify-between gap-4on the row and a standalone link witharrow_forwardat its end. - Status: the status indicator's large dot, placed in the line:
<span aria-hidden="true" className="ms-[5px] me-3 inline-block size-3 rounded-full border border-transparent bg-success align-middle shadow-[0_0_0_5px_var(--color-success-container)]" />first inside theh2;bg-warningandvar(--color-warning-container)for "Coming soon".
React
| Prop | Type | Default | Description |
|---|---|---|---|
id |
string |
— | The h2 id; the section is labeled by it. |
eyebrow |
string |
— | 2–5 words, sentence case. Omit it for status headers. |
title |
string |
— | The h2. |
lead |
string |
— | One sentence under the title. |
align |
"start" | "center" |
"start" |
Centered for short intros and closing statements. |
status |
"success" | "pending" |
— | Draws the status indicator's large dot, decorative and static, before the title: success for "Live now", pending for "Coming soon". |
action |
{ label: string; href: string } |
— | The trailing standalone link with arrow_forward. |
<section aria-labelledby="latest-jobs" className="flex flex-col">
<SectionHeader
id="latest-jobs"
eyebrow={t("home.board.eyebrow")}
title={t("home.board.title")}
lead={t("home.board.lead")}
action={{ label: t("home.board.all", { count: 15 }), href: "/en/jobs" }}
/>
<JobGrid className="mt-section-head" jobs={latest} />
</section>