FAQ
A marketing section of up to six common questions, each a native disclosure row whose answer opens in place, under one h2.
When to use
- Near the end of a landing page, after the main sections and before the closing statement, for the questions people ask before they sign up or take part ("How do I join an event?", "What do the tests cover?") (canonical §11 row 1, §10.25, D-CSN-31).
- When each answer is one or two sentences and the questions are independent of each other.
When not to use
| Situation | Use instead |
|---|---|
| More than six questions, or questions grouped by topic | A help page (Legal and help) with h2 sections |
| Information everyone needs to act | Write it in the page itself, in the hero or a section; never hide a limit or a price inside a disclosure (canonical §12.5) |
| Filter groups, navigation groups, settings sections | The compact accordion (a button with aria-expanded) |
| A step-by-step explanation | The steps row |
| Long answers with lists, tables, or links to many places | A help page |
Anatomy
- Section (
.oa-faq):<section aria-labelledby>, a column with 48px between the header and the list. - Section header: an optional eyebrow and the
h2(Section header). Theh2names the section. - List (
.oa-faq__liston.oa-accordion): the accordion ofaccordion.md, at most 768px wide (--container-reading). - Row (
.oa-accordion__item): a native<details>, with a 1pxoutline-varianthairline above the first row and below each. - Question (
.oa-accordion__summary): the<summary>, at least 64px tall,title-sm, with theexpand_morechevron (.oa-accordion__icon) at the inline end. Questions are not headings. - Answer (
.oa-accordion__panel):body-mdat a 24px line inon-surface-variant, at most 640px, 24px below.
Variants
| Variant | Use for | Key tokens |
|---|---|---|
| Default | Every FAQ | the default accordion rows (--text-title-sm, --text-body-md, --color-outline-variant) |
| One question open | When the first answer matters most, open it with the open attribute |
the same; the chevron turns 180° |
There is no compact or centered FAQ.
Sizes
| Size | Height | Padding | Type style | Icon size |
|---|---|---|---|---|
| One size | rows at least 64px (--space-16), 20px block padding |
rows 16px inline (--space-row-inset); answers 16px at the start, 48px at the end, 24px below |
question title-sm (16/24 600); answer body-md at a 24px line (the body-lg line height) |
chevron 24px (--size-icon-lg) |
The list is at most 768px wide; answers at most 640px. The header sits 48px above the list (--space-section-head).
Tokens
| Part | Property | Token |
|---|---|---|
| Section | gap | --space-section-head (48px) |
| List | width | --container-reading (48rem) |
| Rows | hairlines | 1px --color-outline-variant |
| Question | type, color | --text-title-sm, --color-on-surface |
| Question | height, padding | --space-16 minimum, --space-5 block, --space-row-inset inline |
| Chevron | color, turn | --color-on-surface-variant; rotate(180deg) over --duration-short-4 with --ease-standard |
| Answer | type, color | --text-body-md at --text-body-lg--line-height, --color-on-surface-variant |
| Answer | padding, width | --space-row-inset start, --space-12 end, --space-6 below; 640px at most |
| Hover, pressed | layer | --opacity-state-hover (8%), --opacity-state-pressed (12%) of the question color |
| Focus | ring | inset: --size-focus-inset (−4px) |
States
| State | What changes |
|---|---|
| Closed | The question and the chevron pointing down |
| Open | The answer shows below; the chevron points up (turned 180°) |
| Hover | An 8% layer of on-surface on the question row |
| Pressed | A 12% layer, at once |
| Focus-visible | The family ring drawn inside the row (−4px), because the rows sit edge to edge |
| Reduced motion | The chevron turns at once |
Behavior
- Each row opens and closes on its own; several can be open at once. The panel's height never animates (D-CSN-31).
- Enter and Space on a focused question toggle it (native
<details>); it works without JavaScript and with find-in-page, which opens a row that holds the match. - Below 640px the list takes the column's width; questions wrap to two lines; the chevron stays at the inline end.
- At most six questions: more belong on a help page (canonical §11 row 1).
Accessibility
- Element.
<section aria-labelledby="{h2 id}">with the section'sh2; native<details>and<summary>. Questions are not headings: never put anh3inside a summary (canonical §10.25). - Name. Each summary's name is its question; the chevron is
aria-hidden="true". - Keyboard. Tab moves from question to question; Enter or Space toggles; links inside an open answer follow in the Tab order.
- Targets. Rows are at least 64px tall and span the list's width.
- Contrast. Questions
on-surface; answerson-surface-variant(7.2:1 or more light, 5.4:1 or more dark); the hairlines are decoration.
RTL and languages
- The chevron sits at the inline end (the left in Arabic) and never mirrors; it turns 180° when open (canonical §8.3).
- Arabic questions use "؟"; product names inside answers sit in
<bdi lang="en" translate="no">. - French questions run longer and wrap; French puts a narrow no-break space before "?" (canonical §3.7).
Content
- Questions: as the reader would ask them, in the first person where natural, ending with "?": "How do I join an event?", "Can I collect points without a phone?", "Do meals and photos use my points?", "Will my results choose a career for me?" (Tamakkan).
- Answers: start with the answer ("Yes." / "No.") when the question allows it, then the reason, in two sentences at most (canonical §12.1): "No. The browser demo uses fictional people and sample activity."
- Section title: a statement or a label: "A few good questions." (Global Games), "A few things you might be wondering." (Tamakkan); the eyebrow names the moment: "Before you jump in", "Good questions".
- Answers never promise dates that are not committed ("no release date has been announced yet", Tamakkan) and never link to something that does not work (canonical §12.5).
- Arabic (Global Games): "قبل أن تبدأ" · "أسئلة قد تخطر ببالك." · "كيف أنضمّ إلى فعالية؟" · "هل يمكنني جمع النقاط دون هاتف؟" · "نعم. يمسح فريق الجناح بطاقة Global ID المطبوعة لتسجيل الزيارة."
- French: no family FAQ ships in French yet; translations go through native review.
Do and don't
| Do | Don't |
|---|---|
One h2 for the section; questions as summaries |
Each question an h3 or a button styled as a heading |
The expand_more chevron at the inline end |
A plus that turns into a cross (Global Games and Tamakkan today) |
| Up to six questions, answers of one or two sentences | Twenty questions or answers with tables |
Native <details> that works without script |
A script-only accordion that hides answers from find-in-page |
| Several rows open at once | Closing the other rows when one opens |
Code
HTML (reference CSS)
Six questions (Global Games), the first one open:
<section class="oa-faq" aria-labelledby="mk-faq-games-title">
<div class="oa-section-header">
<p class="oa-eyebrow oa-eyebrow--rule">Before you jump in</p>
<h2 class="oa-section-header__title" id="mk-faq-games-title">A few good questions.</h2>
</div>
<div class="oa-accordion oa-faq__list">
<details class="oa-accordion__item" open>
<summary class="oa-accordion__summary">How do I join an event?<span class="oa-icon oa-accordion__icon" aria-hidden="true" translate="no">expand_more</span></summary>
<div class="oa-accordion__panel"><p>Sign in using an access method connected to your account. Your organizer needs to enroll you in the event before it appears in your events list.</p></div>
</details>
<details class="oa-accordion__item">
<summary class="oa-accordion__summary">Can I collect points without a phone?<span class="oa-icon oa-accordion__icon" aria-hidden="true" translate="no">expand_more</span></summary>
<div class="oa-accordion__panel"><p>Yes. Booth staff scan your printed Global ID badge to record a visit.</p></div>
</details>
<details class="oa-accordion__item">
<summary class="oa-accordion__summary">Do meals and photos use my points?<span class="oa-icon oa-accordion__icon" aria-hidden="true" translate="no">expand_more</span></summary>
<div class="oa-accordion__panel"><p>No. Meals and photos use the event’s separate reward allowances.</p></div>
</details>
<details class="oa-accordion__item">
<summary class="oa-accordion__summary">What happens if my badge is scanned twice?<span class="oa-icon oa-accordion__icon" aria-hidden="true" translate="no">expand_more</span></summary>
<div class="oa-accordion__panel"><p>A repeat booth visit adds no extra points. Reward claims are checked against the participant’s remaining allowance, including at equivalent service stations.</p></div>
</details>
<details class="oa-accordion__item">
<summary class="oa-accordion__summary">Where should staff start?<span class="oa-icon oa-accordion__icon" aria-hidden="true" translate="no">expand_more</span></summary>
<div class="oa-accordion__panel"><p>Open the staff guide for a role-by-role walkthrough, or explore the browser demo first. Your organizer assigns your event role and the booths you can operate.</p></div>
</details>
<details class="oa-accordion__item">
<summary class="oa-accordion__summary">Does the demo change a real event?<span class="oa-icon oa-accordion__icon" aria-hidden="true" translate="no">expand_more</span></summary>
<div class="oa-accordion__panel"><p>No. The browser demo uses fictional people and sample activity.</p></div>
</details>
</div>
</section>Arabic (Global Games), in a page with <html lang="ar" dir="rtl">:
<section class="oa-faq" aria-labelledby="mk-faq-games-ar-title">
<div class="oa-section-header">
<p class="oa-eyebrow oa-eyebrow--rule">قبل أن تبدأ</p>
<h2 class="oa-section-header__title" id="mk-faq-games-ar-title">أسئلة قد تخطر ببالك.</h2>
</div>
<div class="oa-accordion oa-faq__list">
<details class="oa-accordion__item">
<summary class="oa-accordion__summary">كيف أنضمّ إلى فعالية؟<span class="oa-icon oa-accordion__icon" aria-hidden="true" translate="no">expand_more</span></summary>
<div class="oa-accordion__panel"><p>سجّل دخولك باستخدام طريقة مرتبطة بحسابك. يجب أن يضيفك المنظّم إلى الفعالية قبل ظهورها في قائمتك.</p></div>
</details>
<details class="oa-accordion__item" open>
<summary class="oa-accordion__summary">هل يمكنني جمع النقاط دون هاتف؟<span class="oa-icon oa-accordion__icon" aria-hidden="true" translate="no">expand_more</span></summary>
<div class="oa-accordion__panel"><p>نعم. يمسح فريق الجناح بطاقة <bdi lang="en" translate="no">Global ID</bdi> المطبوعة لتسجيل الزيارة.</p></div>
</details>
<details class="oa-accordion__item">
<summary class="oa-accordion__summary">هل تستهلك الوجبات والصور نقاطي؟<span class="oa-icon oa-accordion__icon" aria-hidden="true" translate="no">expand_more</span></summary>
<div class="oa-accordion__panel"><p>لا. للوجبات والصور أرصدة مكافآت مستقلة في الفعالية.</p></div>
</details>
</div>
</section>Every variant is in reference/snippets/marketing.html. The rows are the accordion of disclosure.css (Accordion); marketing.css adds the section's column and the list's width.
Tailwind CSS v4
<section aria-labelledby="faq-title" className="flex flex-col gap-section-head">
<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">
Before you jump in
</p>
<h2 id="faq-title" className="text-hero-md text-balance">A few good questions.</h2>
</div>
<div className="w-full max-w-reading">
{questions.map((q) => (
<details key={q.key} className="border-b border-outline-variant first:border-t">
<summary className="relative isolate flex min-h-16 cursor-pointer list-none items-center justify-between gap-4 border border-transparent px-row-inset py-5 text-title-sm text-on-surface before:absolute before:-inset-px before:-z-1 before:bg-current before:opacity-0 before:transition-opacity before:duration-short-3 before:ease-standard hover:before:opacity-(--opacity-state-hover) active:before:opacity-(--opacity-state-pressed) active:before:transition-none focus-visible:-outline-offset-4 [&::-webkit-details-marker]:hidden">
{q.question}
<Icon name="expand_more" size={24} className="shrink-0 text-on-surface-variant transition-transform duration-short-4 ease-standard in-open:rotate-180" />
</summary>
<div className="max-w-160 ps-row-inset pe-12 pb-6 text-body-md/6 text-on-surface-variant">
<p>{q.answer}</p>
</div>
</details>
))}
</div>
</section>text-body-md/6 sets the answer's 24px line height on the 14px size; max-w-160 is the answer's 640px.
React
| Prop | Type | Default | Description |
|---|---|---|---|
id |
string |
— | The h2 id; the section is labeled by it. |
eyebrow |
string |
— | Optional, 2–5 words. |
title |
string |
— | The section's h2. |
items |
{ key: string; question: string; answer: ReactNode }[] |
— | One to six questions, in order. |
defaultOpen |
string |
— | The key of a question to show open. |
const QUESTIONS = ["join", "noPhone", "rewards", "scannedTwice", "staff", "demo"] as const
<Faq
id="faq-title"
eyebrow={t("faq.eyebrow")}
title={t("faq.title")}
items={QUESTIONS.map((key) => ({ key, question: t(`faq.${key}.q`), answer: t(`faq.${key}.a`) }))}
defaultOpen="join"
/>