SectionHead draft
The numbered head that opens a section: a serif italic number in the live accent with a short accent underline, alone in its own column beside an h2 title and an optional lede; the number stacks above the title on narrow viewports. One layout, no variant, no states — the page places it.
Variants: — · A11y: pending
No states: nothing hovers, nothing focuses (RFC §3.3). Stacked at a viewport width of 768px and below — the one media query, in section-head.css, restating --ll-breakpoint-md (§3.4). The <em> rendering of the title (§7 Q8) is proven by the local suite, not shown as a docs example: an element-valued prop has no JSX snippet form in the docs generator yet. The stacked heads of Fundamentals and the landing stay product compositions (LL.Eyebrow + title + text, §7 Q1).
Examples
Live renders — hover and keyboard states all work here.
Phases
What you do at each moment of the game.
Wave management
<SectionHead num="01" title="Phases" lede="What you do at each moment of the game." />
<SectionHead num="02" title="Wave management" />
Guidelines
Golden rules
- One layout, always an h2. The number in its own column beside the title, stacked above it at 768px and below (--ll-breakpoint-md). The heading level is always 2 — no level, layout or size option (RFC §7 Q1, Q10, checkpoint row).
- The number is order, not meaning. num is required and rendered verbatim, hidden from assistive technology: the document order (and the role guides' table of contents) already give it (RFC §7 Q2, Q9). The product computes it — two digits by convention, "01" … "11".
- The title wraps. No single-line rule: a long or translated title wraps instead of overflowing (RFC §7 Q7, WCAG 1.4.10). An <em> in it renders italic in the live accent (§7 Q8).
- The page places it. The component ships no margin, padding or width: the <section>, its anchor id, its spacing and the page grid are the product's (RFC §2.3, §3.4).
Do
- Pass the section number as a string the product formats ("01"): the component never pads or computes it (§3.1).
- Give id to name the section: <section aria-labelledby="phases"> with <SectionHead id="phases" …> — the id lands on the h2 (§3.1, §4.1).
- Keep the section's own anchor id (the TOC target) on the product's <section>, not on the head (§3.1).
- Put the lede in lede, not after the component: it sits s-15 under the title and is left out entirely when omitted (§7 Q11).
- Use h3 for the headings inside the section: the head is the h2 (§7 Q10).
Don't
- Don't put an Eyebrow, the number or any label inside title — the h2's accessible name stays the title alone (§4.1; Eyebrow §7 Q9).
- Don't rely on the number being announced: a product that needs it voiced writes it into the title, where it joins the heading's name (§4.3).
- Don't force the title onto one line or truncate it (§7 Q7).
- Don't override the number's size, the underline or the column width product-side — one recipe (§7 Q3–Q6).
The 5 accents
Each tile scopes the accent axis with data-accent on the tile itself — the element-scoped theme contract.
Phases
What you do at each moment of the game.
Phases
What you do at each moment of the game.
Phases
What you do at each moment of the game.
Phases
What you do at each moment of the game.
Phases
What you do at each moment of the game.
Props
| Prop | Type | Default | Optional | Note |
|---|---|---|---|---|
num |
string |
— | no | required: the section's number, rendered verbatim in its own column and hidden from assistive technology (RFC §3.1, §7 Q2, Q9). Two digits by product convention; the product computes it, the component never formats it |
title |
ReactNode |
— | no | required: the heading text, rendered inside the one h2; may hold an <em>, rendered italic in the live accent (§7 Q8); wraps freely (§7 Q7). Never an Eyebrow, the number or any label inside it (Eyebrow §7 Q9) |
lede |
ReactNode |
— | yes | the introductory paragraph under the title, type/body in fg/dim (§7 Q11, Q12); omitted (or empty) → no <p> is rendered at all |
id |
string |
— | yes | forwarded to the h2, never to the root, so the product can name its <section> with aria-labelledby; omitted → no id attribute anywhere in the component (§3.1). The section's own anchor id stays on the product's <section> |
Accessibility pending
- Semantic structure
- Exactly one root <div class="ll-section-head"> (no role) holding, in DOM order, one <span class="ll-section-head-num" aria-hidden="true"> whose text is num verbatim, then one <div class="ll-section-head-body"> holding exactly one h2 and, only when lede is given, one p (RFC §3.4, §4.1). The heading is always an h2 (§7 Q10) whose accessible name is the title alone: the number sits outside it and is hidden unconditionally (§7 Q9). id, when given, lands on the h2 only. The root is a div, not a header: inside a <section> a header maps to no landmark.
- Keyboard
- Nothing to do: no interactive element, nothing focusable — no a, button, input or tabindex is rendered by the component (RFC §3.3, §4.2). The aria-hidden number holds text only, so aria-hidden-focus has nothing to find. Interactive content in title or lede is not expected; if the product nests a link it keeps its own semantics, product-side.
- Decisions
- Contrast is computed by the gate from resolved tokens, never declared here: the title fg/default, the lede fg/dim, the number and the title's <em> accent/default, each on bg/default — pairs already declared in contrast-pairs.json at normal-text (stricter than the large text the 44px number and 32px title need), the accent pair scored once per accent (RFC §4.3). The aria-hidden number is still visible text: WCAG 1.4.3 applies and the declared pair covers it. The underline is decoration (no text), exempt, no pair. The title wraps — no nowrap — and the body column is minmax(0, 1fr) with overflow-wrap: break-word, and the head stacks at a viewport width of 768px and below (--ll-breakpoint-md), so nothing overflows horizontally (WCAG 1.4.10).
- Notes
- Implemented per RFC §4; this status moves to pass only through the accessibility engine gate, never by assertion.