Task body

The one column a task page's work happens in: the app's mount, the contact form, or a privacy notice.

Template · stable · v1.0.0 · owner: Site system lead · contract 19 of 20 points (open: figma)

Do and don't

Do: Health check mount

Rendered by task-body.ts

Open example: Task body · Do: Health check mount Use the full-page example to follow page links.

The app fills it.

Do: A notice

Rendered by task-body.ts

Open example: Task body · Do: A notice Use the full-page example to follow page links.

Reading width.

Don't: Two tasks

Rendered by task-body.ts

Open example: Task body · Don't: Two tasks Use the full-page example to follow page links.

One task per page.

Don't: Full width

Rendered by task-body.ts

Open example: Task body · Don't: Full width Use the full-page example to follow page links.

Choose a column.

Rules

RuleWhyCheck
A task body holds one task.One task in front of the reader is what makes a three-minute check finish.Review: Site system lead

API

PropTypeRequiredDefaultWhat it does
clsstringYesLayout class: is-task (narrow), contact-grid (two columns), prose (a notice).
htmlhtmlYesThe task.

Contract details

The full contract: identity, anatomy, variants, states, tokens, layout, motion, accessibility, content, tests

Identity

AspectValue
Idtask-body
LayerTemplates
Categorysection
OwnerSite system lead
Statusstable
Version1.0.0
Sourceapps/showcase/site/system/templates/task-body.ts (private repository; the contract and the render function are this one module)
VersionDateChange
1.0.02026-10-26Task body as one module: its markup moved out of the page builder (scripts/site) into the system.

Use when

  • Inside every Task page's main. Why: One column keeps the task in front of the reader.

Do not use when

  • On content pages. Why: They use the Page body.

Anatomy

PartWhat it is
rootdiv.wrap.task-body with the layout class (is-task, contact-grid, prose)
insideThe app organism or the notice

Made of: contact-form, health-check, survey.

Used in: task-page, page-apps.

Variants

VariantWhenWhy
is-taskThe health check and survey.A narrow column for questions.
contact-gridThe contact form.The promise beside the form.
prosePrivacy notices.Reading width.

States

StateRendered or not applicable
defaultdefault
hoverNot applicable: The task body is not interactive, so it has no hover state.
focus-visibleNot applicable: The task body does not take focus; links and buttons inside it carry their own focus ring.
activeNot applicable: The task body cannot be pressed.
disabledNot applicable: The task body has nothing to disable.
loadingNot applicable: The task body is rendered at build time and is complete when the page loads.
emptyNot applicable: The task body is not rendered without content; the builder skips it.
errorNot applicable: The task body shows no data that can fail.
currentNot applicable: The task body has no current item.
visitedNot applicable: The task body is not a link.
expandedNot applicable: The task body does not open or close.

Tokens

PartToken
root.width--w-text (is-task, prose)

Layout

AspectValue
breakpointsRequired review at 390, 768, 1024 and 1440 px; execution is not implied by this declaration; columns stack under 768 px; the wrap keeps a 16 px gutter on phones.
wrappingText wraps; nothing scrolls sideways.
textExpansionJapanese runs 20 to 40% longer; headings break between phrases (jaBreaks) and blocks grow downwards.

Spacing and rhythm

AspectValue
internalOne padding: --space-section-sm (D-SITE-005).
externalInside main.
rhythmHeader, task, footer.

Motion

AspectValue
NoneNo intrinsic element animation. The optional claude-entrance consumer profile may translate below-fold structure once (20px, --dur-weave, --ease-enter, --stagger); reduced motion disables it. This preserved baseline entrance is separate from element playback.

Runtime and reuse

  1. Render-only element; mount any registered child enhancements separately. Preserve required Site CSS, fonts, responsive and locale rules from nativeElement.

Accessibility passport

AspectValue
roleregion (section) named by its heading
nameIts h2, by aria-labelledby
keyboardLinks and buttons inside, in reading order.
focusThe --focus ring on every link and button inside.
screenReaderRead in source order; decorative weaving is aria-hidden.
contrastInk on cotton 14:1; text on every dye field 4.5:1 or better (checked by check-brand).
targetLinks and buttons are 44 px tall.

Content

SlotLengthVoice
htmlOne registered task app/form or one privacy notice; do not combine unrelated tasks.Keep the task’s existing labels, heading structure and readable static fallback; the task organism owns its content.

Good: “One health check or survey in the is-task column.” · “One privacy notice in the prose column.”

Bad: “Two unrelated forms in one task body.” · “A task with no selected layout column.”

Japanese: The task organism owns its translated labels, language controls and pending native-review note. Privacy content retains its source document language; English fallback text must remain identified as English.

Icons and illustrations

None: this element uses no icon or illustration of its own.

Decisions and exceptions

  • None.

Usage

7 uses across the built pages (measured by npm run site:system).

Tests

AspectValue
unittests/unit/site-system.test.ts: renders every do and don't example through the registry and checks the classes it owns
visualNot yet: there are no screenshot baselines; the Library page is checked for sideways scroll at 1440 px by tests/site/system.spec.ts
a11ytests/site/system.spec.ts: axe (0 serious or critical) on the element's Library page in light and dark
parityscripts/site/system/check.ts: Library examples are rendered by the same render function the site imports

Figma

not-yet: The Loom Site Figma library is the last stage of the plan; this element is not mapped yet.

Open in Storybook

Start with a conversation about your system.

We read your system, show you what we found, and agree with your team what to fix first.