ナビゲーション

v2.1.0
アプリケーションのブロック

請求の概要

プラン、席数と使用量、更新日、最近の請求書を示します。

請求の概要は、アカウントの所有者が確かめに来ることに答えます。ワークスペースがどのプランを利用しているか、料金はいくらか、どれだけ使ったか、いつ更新されるかを、それぞれを変更する手段とともに示します。金額は価格、使用量はメーター、残りはデータリストで、1 枚のシートに載せます。

請求の概要

<section class="sheet container-inline flex flex-col gap-lg p-lg max-w(720) mx-auto" aria-labelledby="billing-title">  <header class="flex flex-wrap items-start justify-between gap-md">    <div class="flex flex-col gap-xs">      <div class="flex items-center gap-xs">        <h2 class="heading heading-sm" id="billing-title">Pro plan</h2>        <span class="badge badge-success badge-dot">Active</span>      </div>      <p class="price">        <span class="price-currency">$</span><span class="price-amount">100</span><span class="price-period">per month, before tax</span>      </p>      <p class="m(0) fg-text-muted">5 seats at $20 each, billed monthly in US dollars.</p>    </div>    <div class="flex flex-wrap gap-xs my(-5)">      <a class="btn btn-sm" href="#billing-title">Change plan</a>      <a class="btn btn-sm" href="#billing-title">Manage seats</a>    </div>  </header>  <div class="field pt-lg bt(1) bt-solid b-line-hair">    <div class="flex flex-wrap items-baseline justify-between gap-sm">      <label for="billing-minutes">Build minutes</label>      <span class="font-regular fg-text-muted">1,240 of 2,000 used</span>    </div>    <meter class="meter" id="billing-minutes" min="0" max="2000" low="1500" high="1800" optimum="0" value="1240">      1,240 of 2,000 minutes    </meter>    <span class="field-hint">      760 minutes are left until <time datetime="2026-12-01">1 December</time>. Every seat adds 400 a month.    </span>  </div>  <dl class="data-list">    <div class="data-list-item">      <dt class="data-list-term">Seats</dt>      <dd class="data-list-value">5 of 5 in use</dd>    </div>    <div class="data-list-item">      <dt class="data-list-term">Billing period</dt>      <dd class="data-list-value">        <time datetime="2026-11-01">1</time> to <time datetime="2026-11-30">30 November 2026</time>      </dd>    </div>    <div class="data-list-item">      <dt class="data-list-term">Renews</dt>      <dd class="data-list-value">        <time datetime="2026-12-01">1 December 2026</time>, for $100 before tax      </dd>    </div>    <div class="data-list-item">      <dt class="data-list-term">Invoices go to</dt>      <dd class="data-list-value">billing@atlaslabs.dev</dd>    </div>  </dl></section>
<section className="sheet container-inline flex flex-col gap-lg p-lg max-w(720) mx-auto" aria-labelledby="billing-title">  <header className="flex flex-wrap items-start justify-between gap-md">    <div className="flex flex-col gap-xs">      <div className="flex items-center gap-xs">        <h2 className="heading heading-sm" id="billing-title">Pro plan</h2>        <span className="badge badge-success badge-dot">Active</span>      </div>      <p className="price">        <span className="price-currency">$</span><span className="price-amount">100</span><span className="price-period">per month, before tax</span>      </p>      <p className="m(0) fg-text-muted">5 seats at $20 each, billed monthly in US dollars.</p>    </div>    <div className="flex flex-wrap gap-xs my(-5)">      <a className="btn btn-sm" href="#billing-title">Change plan</a>      <a className="btn btn-sm" href="#billing-title">Manage seats</a>    </div>  </header>  <div className="field pt-lg bt(1) bt-solid b-line-hair">    <div className="flex flex-wrap items-baseline justify-between gap-sm">      <label htmlFor="billing-minutes">Build minutes</label>      <span className="font-regular fg-text-muted">1,240 of 2,000 used</span>    </div>    <meter className="meter" id="billing-minutes" min="0" max="2000" low={1500} high={1800} optimum={0} value="1240">      1,240 of 2,000 minutes    </meter>    <span className="field-hint">      760 minutes are left until <time dateTime="2026-12-01">1 December</time>. Every seat adds 400 a month.    </span>  </div>  <dl className="data-list">    <div className="data-list-item">      <dt className="data-list-term">Seats</dt>      <dd className="data-list-value">5 of 5 in use</dd>    </div>    <div className="data-list-item">      <dt className="data-list-term">Billing period</dt>      <dd className="data-list-value">        <time dateTime="2026-11-01">1</time> to <time dateTime="2026-11-30">30 November 2026</time>      </dd>    </div>    <div className="data-list-item">      <dt className="data-list-term">Renews</dt>      <dd className="data-list-value">        <time dateTime="2026-12-01">1 December 2026</time>, for $100 before tax      </dd>    </div>    <div className="data-list-item">      <dt className="data-list-term">Invoices go to</dt>      <dd className="data-list-value">billing@atlaslabs.dev</dd>    </div>  </dl></section>
<section class="sheet container-inline flex flex-col gap-lg p-lg max-w(720) mx-auto" aria-labelledby="billing-title">  <header class="flex flex-wrap items-start justify-between gap-md">    <div class="flex flex-col gap-xs">      <div class="flex items-center gap-xs">        <h2 class="heading heading-sm" id="billing-title">Pro plan</h2>        <span class="badge badge-success badge-dot">Active</span>      </div>      <p class="price">        <span class="price-currency">$</span><span class="price-amount">100</span><span class="price-period">per month, before tax</span>      </p>      <p class="m(0) fg-text-muted">5 seats at $20 each, billed monthly in US dollars.</p>    </div>    <div class="flex flex-wrap gap-xs my(-5)">      <a class="btn btn-sm" href="#billing-title">Change plan</a>      <a class="btn btn-sm" href="#billing-title">Manage seats</a>    </div>  </header>  <div class="field pt-lg bt(1) bt-solid b-line-hair">    <div class="flex flex-wrap items-baseline justify-between gap-sm">      <label for="billing-minutes">Build minutes</label>      <span class="font-regular fg-text-muted">1,240 of 2,000 used</span>    </div>    <meter class="meter" id="billing-minutes" min="0" max="2000" low="1500" high="1800" optimum="0" value="1240">      1,240 of 2,000 minutes    </meter>    <span class="field-hint">      760 minutes are left until <time datetime="2026-12-01">1 December</time>. Every seat adds 400 a month.    </span>  </div>  <dl class="data-list">    <div class="data-list-item">      <dt class="data-list-term">Seats</dt>      <dd class="data-list-value">5 of 5 in use</dd>    </div>    <div class="data-list-item">      <dt class="data-list-term">Billing period</dt>      <dd class="data-list-value">        <time datetime="2026-11-01">1</time> to <time datetime="2026-11-30">30 November 2026</time>      </dd>    </div>    <div class="data-list-item">      <dt class="data-list-term">Renews</dt>      <dd class="data-list-value">        <time datetime="2026-12-01">1 December 2026</time>, for $100 before tax      </dd>    </div>    <div class="data-list-item">      <dt class="data-list-term">Invoices go to</dt>      <dd class="data-list-value">billing@atlaslabs.dev</dd>    </div>  </dl></section>
<template>  <section class="sheet container-inline flex flex-col gap-lg p-lg max-w(720) mx-auto" aria-labelledby="billing-title">    <header class="flex flex-wrap items-start justify-between gap-md">      <div class="flex flex-col gap-xs">        <div class="flex items-center gap-xs">          <h2 class="heading heading-sm" id="billing-title">Pro plan</h2>          <span class="badge badge-success badge-dot">Active</span>        </div>        <p class="price">          <span class="price-currency">$</span><span class="price-amount">100</span><span class="price-period">per month, before tax</span>        </p>        <p class="m(0) fg-text-muted">5 seats at $20 each, billed monthly in US dollars.</p>      </div>      <div class="flex flex-wrap gap-xs my(-5)">        <a class="btn btn-sm" href="#billing-title">Change plan</a>        <a class="btn btn-sm" href="#billing-title">Manage seats</a>      </div>    </header>    <div class="field pt-lg bt(1) bt-solid b-line-hair">      <div class="flex flex-wrap items-baseline justify-between gap-sm">        <label for="billing-minutes">Build minutes</label>        <span class="font-regular fg-text-muted">1,240 of 2,000 used</span>      </div>      <meter class="meter" id="billing-minutes" min="0" max="2000" low="1500" high="1800" optimum="0" value="1240">        1,240 of 2,000 minutes      </meter>      <span class="field-hint">        760 minutes are left until <time datetime="2026-12-01">1 December</time>. Every seat adds 400 a month.      </span>    </div>    <dl class="data-list">      <div class="data-list-item">        <dt class="data-list-term">Seats</dt>        <dd class="data-list-value">5 of 5 in use</dd>      </div>      <div class="data-list-item">        <dt class="data-list-term">Billing period</dt>        <dd class="data-list-value">          <time datetime="2026-11-01">1</time> to <time datetime="2026-11-30">30 November 2026</time>        </dd>      </div>      <div class="data-list-item">        <dt class="data-list-term">Renews</dt>        <dd class="data-list-value">          <time datetime="2026-12-01">1 December 2026</time>, for $100 before tax        </dd>      </div>      <div class="data-list-item">        <dt class="data-list-term">Invoices go to</dt>        <dd class="data-list-value">billing@atlaslabs.dev</dd>      </div>    </dl>  </section></template>

ブロックはコピーして使えるマークアップです。文字色と文字サイズはページから引き継ぎます。プレビューでは body に fg-text-body text-sm を設定しています。各ブロックはサイズコンテナーで、広いページでも、サイドバーほどの幅でも、ダイアログ内でも、自身の幅に応じて配置が変わります。

#構成

  • プランとその状態を、言葉で示します。 プラン名がブロックの見出しで、その横のバッジが「Active」(有効)と伝えます。ここではトーンがステータスを表し、言葉も同じことを伝えます。
  • 金額は price です。 数字、その上端にそろえた小さな通貨記号、数字のベースラインに控えめな文字色で置いた課金周期で構成します。「before tax」(税抜)は課金周期の一部です。税を含まない金額は、読まれるその場所でそう断る必要があるからです。
  • 金額の内訳を、控えめな 1 行で示します。 5 席、1 席あたり 20 ドルです。読み手が自分で計算できるようにします。
  • 変更するための 2 つの手段を、ヘッダーの末尾に置きます。 小さなボタンの見た目にしたリンクです。どちらもプライマリーではありません。概要には、これだけはすべきだという操作がないからです。ブロックが狭いときは、価格の下に折り返します。
  • 使用量はネイティブの <meter> です。 low、high、optimum が、値に余裕がなくなる境目を示します。ここでは 2,000 分のうち 1,500 分と 1,800 分です。そのため、クラスを付けなくても、塗りは警告の色に、続いて危険の色に変わります。メーターは数値を表示しません。値はラベルの横に書かれ、ヒントが残量とリセットの時期を伝えます。
  • 日付とそのほかの項目は data-list です。 1 行に項目名と値を 1 組ずつ置きます。リストの幅が 20rem 未満になると、各項目名は値の上に移ります。
  • 数字は互いに一致します。 5 席 × 20 ドルで 100 ドル、5 席 × 400 分で 2,000 分、1,240 分を使って残りは 760 分です。

カード番号、有効期限、住所は、ここでは表示も入力の要求もしません。プロダクトが支払い方法を表示する場合、それは決済プロバイダーが返すブランド名と下 4 桁であり、このブロックの入力欄にすることは決してありません。

#請求書付き

請求ページでは、概要は 3 つの事実を並べた 1 行に縮まり、その後に最近の請求書がテーブルとして続きます。各請求書を同じ 4 つの項目で比べられます。「All invoices」(すべての請求書)が残りへ案内します。

請求書付き

<section class="container-inline flex flex-col gap-lg max-w(880) mx-auto" aria-labelledby="billing-invoices-title">  <header class="flex flex-wrap items-end justify-between gap-md">    <div class="flex flex-col gap-2xs">      <h2 class="heading heading-lg" id="billing-invoices-title">Billing</h2>      <p class="m(0) fg-text-muted">Atlas Labs is on Pro, billed monthly in US dollars.</p>    </div>    <a class="btn" href="#billing-invoices-title">Manage billing</a>  </header>  <div class="sheet overflow-hidden">    <dl class="grid gap-lg m(0) px-md py-lg grid-cols(3)@container(--xl)">      <div class="flex flex-col gap-2xs">        <dt class="fg-text-muted">Next invoice</dt>        <dd class="m(0)">          <p class="price price-sm">            <span class="price-currency">$</span><span class="price-amount">100</span><span class="price-period">on <time datetime="2026-12-01">1 December</time></span>          </p>        </dd>      </div>      <div class="flex flex-col gap-2xs">        <dt class="fg-text-muted">Seats</dt>        <dd class="m(0) fg-text-strong font-medium">5 at $20 a month</dd>      </div>      <div class="flex flex-col gap-2xs">        <dt class="fg-text-muted">Build minutes</dt>        <dd class="m(0) fg-text-strong font-medium">1,240 of 2,000 used</dd>      </div>    </dl>    <div class="scroll-area scroll-area-inline bt(1) bt-solid b-line-hair">      <table class="table whitespace-nowrap">        <caption class="table-title">Recent invoices</caption>        <thead>          <tr class="table-row">            <th class="table-heading" scope="col">Invoice</th>            <th class="table-heading" scope="col">Issued</th>            <th class="table-heading" scope="col">Status</th>            <th class="table-heading table-numeric" scope="col">Amount</th>          </tr>        </thead>        <tbody>          <tr class="table-row">            <th class="table-cell table-primary" scope="row">              <a class="link link-quiet" href="#billing-invoices-title">INV-2026-011</a>            </th>            <td class="table-cell"><time datetime="2026-11-01">1 Nov 2026</time></td>            <td class="table-cell"><span class="badge badge-success badge-dot">Paid</span></td>            <td class="table-cell table-numeric">$100.00</td>          </tr>          <tr class="table-row">            <th class="table-cell table-primary" scope="row">              <a class="link link-quiet" href="#billing-invoices-title">INV-2026-010</a>            </th>            <td class="table-cell"><time datetime="2026-10-01">1 Oct 2026</time></td>            <td class="table-cell"><span class="badge badge-success badge-dot">Paid</span></td>            <td class="table-cell table-numeric">$100.00</td>          </tr>          <tr class="table-row">            <th class="table-cell table-primary" scope="row">              <a class="link link-quiet" href="#billing-invoices-title">INV-2026-009</a>            </th>            <td class="table-cell"><time datetime="2026-09-01">1 Sep 2026</time></td>            <td class="table-cell"><span class="badge badge-success badge-dot">Paid</span></td>            <td class="table-cell table-numeric">$80.00</td>          </tr>        </tbody>      </table>    </div>  </div>  <p class="flex flex-wrap items-baseline justify-between gap-sm m(0) fg-text-muted">    <span>Amounts are in US dollars and exclude tax.</span>    <a class="link" href="#billing-invoices-title">All invoices</a>  </p></section>
<section className="container-inline flex flex-col gap-lg max-w(880) mx-auto" aria-labelledby="billing-invoices-title">  <header className="flex flex-wrap items-end justify-between gap-md">    <div className="flex flex-col gap-2xs">      <h2 className="heading heading-lg" id="billing-invoices-title">Billing</h2>      <p className="m(0) fg-text-muted">Atlas Labs is on Pro, billed monthly in US dollars.</p>    </div>    <a className="btn" href="#billing-invoices-title">Manage billing</a>  </header>  <div className="sheet overflow-hidden">    <dl className="grid gap-lg m(0) px-md py-lg grid-cols(3)@container(--xl)">      <div className="flex flex-col gap-2xs">        <dt className="fg-text-muted">Next invoice</dt>        <dd className="m(0)">          <p className="price price-sm">            <span className="price-currency">$</span><span className="price-amount">100</span><span className="price-period">on <time dateTime="2026-12-01">1 December</time></span>          </p>        </dd>      </div>      <div className="flex flex-col gap-2xs">        <dt className="fg-text-muted">Seats</dt>        <dd className="m(0) fg-text-strong font-medium">5 at $20 a month</dd>      </div>      <div className="flex flex-col gap-2xs">        <dt className="fg-text-muted">Build minutes</dt>        <dd className="m(0) fg-text-strong font-medium">1,240 of 2,000 used</dd>      </div>    </dl>    <div className="scroll-area scroll-area-inline bt(1) bt-solid b-line-hair">      <table className="table whitespace-nowrap">        <caption className="table-title">Recent invoices</caption>        <thead>          <tr className="table-row">            <th className="table-heading" scope="col">Invoice</th>            <th className="table-heading" scope="col">Issued</th>            <th className="table-heading" scope="col">Status</th>            <th className="table-heading table-numeric" scope="col">Amount</th>          </tr>        </thead>        <tbody>          <tr className="table-row">            <th className="table-cell table-primary" scope="row">              <a className="link link-quiet" href="#billing-invoices-title">INV-2026-011</a>            </th>            <td className="table-cell"><time dateTime="2026-11-01">1 Nov 2026</time></td>            <td className="table-cell">              <span className="badge badge-success badge-dot">Paid</span>            </td>            <td className="table-cell table-numeric">$100.00</td>          </tr>          <tr className="table-row">            <th className="table-cell table-primary" scope="row">              <a className="link link-quiet" href="#billing-invoices-title">INV-2026-010</a>            </th>            <td className="table-cell"><time dateTime="2026-10-01">1 Oct 2026</time></td>            <td className="table-cell">              <span className="badge badge-success badge-dot">Paid</span>            </td>            <td className="table-cell table-numeric">$100.00</td>          </tr>          <tr className="table-row">            <th className="table-cell table-primary" scope="row">              <a className="link link-quiet" href="#billing-invoices-title">INV-2026-009</a>            </th>            <td className="table-cell"><time dateTime="2026-09-01">1 Sep 2026</time></td>            <td className="table-cell">              <span className="badge badge-success badge-dot">Paid</span>            </td>            <td className="table-cell table-numeric">$80.00</td>          </tr>        </tbody>      </table>    </div>  </div>  <p className="flex flex-wrap items-baseline justify-between gap-sm m(0) fg-text-muted">    <span>Amounts are in US dollars and exclude tax.</span>    <a className="link" href="#billing-invoices-title">All invoices</a>  </p></section>
<section class="container-inline flex flex-col gap-lg max-w(880) mx-auto" aria-labelledby="billing-invoices-title">  <header class="flex flex-wrap items-end justify-between gap-md">    <div class="flex flex-col gap-2xs">      <h2 class="heading heading-lg" id="billing-invoices-title">Billing</h2>      <p class="m(0) fg-text-muted">Atlas Labs is on Pro, billed monthly in US dollars.</p>    </div>    <a class="btn" href="#billing-invoices-title">Manage billing</a>  </header>  <div class="sheet overflow-hidden">    <dl class="grid gap-lg m(0) px-md py-lg grid-cols(3)@container(--xl)">      <div class="flex flex-col gap-2xs">        <dt class="fg-text-muted">Next invoice</dt>        <dd class="m(0)">          <p class="price price-sm">            <span class="price-currency">$</span><span class="price-amount">100</span><span class="price-period">on <time datetime="2026-12-01">1 December</time></span>          </p>        </dd>      </div>      <div class="flex flex-col gap-2xs">        <dt class="fg-text-muted">Seats</dt>        <dd class="m(0) fg-text-strong font-medium">5 at $20 a month</dd>      </div>      <div class="flex flex-col gap-2xs">        <dt class="fg-text-muted">Build minutes</dt>        <dd class="m(0) fg-text-strong font-medium">1,240 of 2,000 used</dd>      </div>    </dl>    <div class="scroll-area scroll-area-inline bt(1) bt-solid b-line-hair">      <table class="table whitespace-nowrap">        <caption class="table-title">Recent invoices</caption>        <thead>          <tr class="table-row">            <th class="table-heading" scope="col">Invoice</th>            <th class="table-heading" scope="col">Issued</th>            <th class="table-heading" scope="col">Status</th>            <th class="table-heading table-numeric" scope="col">Amount</th>          </tr>        </thead>        <tbody>          <tr class="table-row">            <th class="table-cell table-primary" scope="row">              <a class="link link-quiet" href="#billing-invoices-title">INV-2026-011</a>            </th>            <td class="table-cell"><time datetime="2026-11-01">1 Nov 2026</time></td>            <td class="table-cell"><span class="badge badge-success badge-dot">Paid</span></td>            <td class="table-cell table-numeric">$100.00</td>          </tr>          <tr class="table-row">            <th class="table-cell table-primary" scope="row">              <a class="link link-quiet" href="#billing-invoices-title">INV-2026-010</a>            </th>            <td class="table-cell"><time datetime="2026-10-01">1 Oct 2026</time></td>            <td class="table-cell"><span class="badge badge-success badge-dot">Paid</span></td>            <td class="table-cell table-numeric">$100.00</td>          </tr>          <tr class="table-row">            <th class="table-cell table-primary" scope="row">              <a class="link link-quiet" href="#billing-invoices-title">INV-2026-009</a>            </th>            <td class="table-cell"><time datetime="2026-09-01">1 Sep 2026</time></td>            <td class="table-cell"><span class="badge badge-success badge-dot">Paid</span></td>            <td class="table-cell table-numeric">$80.00</td>          </tr>        </tbody>      </table>    </div>  </div>  <p class="flex flex-wrap items-baseline justify-between gap-sm m(0) fg-text-muted">    <span>Amounts are in US dollars and exclude tax.</span>    <a class="link" href="#billing-invoices-title">All invoices</a>  </p></section>
<template>  <section class="container-inline flex flex-col gap-lg max-w(880) mx-auto" aria-labelledby="billing-invoices-title">    <header class="flex flex-wrap items-end justify-between gap-md">      <div class="flex flex-col gap-2xs">        <h2 class="heading heading-lg" id="billing-invoices-title">Billing</h2>        <p class="m(0) fg-text-muted">Atlas Labs is on Pro, billed monthly in US dollars.</p>      </div>      <a class="btn" href="#billing-invoices-title">Manage billing</a>    </header>    <div class="sheet overflow-hidden">      <dl class="grid gap-lg m(0) px-md py-lg grid-cols(3)@container(--xl)">        <div class="flex flex-col gap-2xs">          <dt class="fg-text-muted">Next invoice</dt>          <dd class="m(0)">            <p class="price price-sm">              <span class="price-currency">$</span><span class="price-amount">100</span><span class="price-period">on <time datetime="2026-12-01">1 December</time></span>            </p>          </dd>        </div>        <div class="flex flex-col gap-2xs">          <dt class="fg-text-muted">Seats</dt>          <dd class="m(0) fg-text-strong font-medium">5 at $20 a month</dd>        </div>        <div class="flex flex-col gap-2xs">          <dt class="fg-text-muted">Build minutes</dt>          <dd class="m(0) fg-text-strong font-medium">1,240 of 2,000 used</dd>        </div>      </dl>      <div class="scroll-area scroll-area-inline bt(1) bt-solid b-line-hair">        <table class="table whitespace-nowrap">          <caption class="table-title">Recent invoices</caption>          <thead>            <tr class="table-row">              <th class="table-heading" scope="col">Invoice</th>              <th class="table-heading" scope="col">Issued</th>              <th class="table-heading" scope="col">Status</th>              <th class="table-heading table-numeric" scope="col">Amount</th>            </tr>          </thead>          <tbody>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">                <a class="link link-quiet" href="#billing-invoices-title">INV-2026-011</a>              </th>              <td class="table-cell"><time datetime="2026-11-01">1 Nov 2026</time></td>              <td class="table-cell"><span class="badge badge-success badge-dot">Paid</span></td>              <td class="table-cell table-numeric">$100.00</td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">                <a class="link link-quiet" href="#billing-invoices-title">INV-2026-010</a>              </th>              <td class="table-cell"><time datetime="2026-10-01">1 Oct 2026</time></td>              <td class="table-cell"><span class="badge badge-success badge-dot">Paid</span></td>              <td class="table-cell table-numeric">$100.00</td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">                <a class="link link-quiet" href="#billing-invoices-title">INV-2026-009</a>              </th>              <td class="table-cell"><time datetime="2026-09-01">1 Sep 2026</time></td>              <td class="table-cell"><span class="badge badge-success badge-dot">Paid</span></td>              <td class="table-cell table-numeric">$80.00</td>            </tr>          </tbody>        </table>      </div>    </div>    <p class="flex flex-wrap items-baseline justify-between gap-sm m(0) fg-text-muted">      <span>Amounts are in US dollars and exclude tax.</span>      <a class="link" href="#billing-invoices-title">All invoices</a>    </p>  </section></template>
  • 1 行に並ぶ 3 つの事実は、ユーティリティで配置した <dl> です。各項目名を値の上に置き、ブロック幅が 36rem 以上で 3 列になります。次回の請求額は price price-sm で、残りの 2 つは言葉です。
  • 請求書は新しい順に並べます。 金額は table-numeric で小数点の位置をそろえます。9 月分は 80 ドルです。当時、ワークスペースの席数は 4 でした。
  • 請求書の番号が、その請求書へのリンクです。 番号は行見出しなので、各セルは、それが属する請求書とともに読み上げられます。
  • テーブルはスクロール領域の中で横にスクロールします。 使える幅が列の幅より狭い場合です。スクロール領域はシートの中にあり、シートが角を切り抜きます。

#アクセシビリティ

  • 概要は、見出しを名前とする <section> です。2 つ目の例では、<h2> がブロックの名前になり、テーブルには <caption> があるため、テーブルは名前とともに読み上げられます。
  • メーターには <label> があり、値はその横にテキストで書かれています。メーターの色は low、high、optimum から決まります。色が変わったら、言葉もその色と同じことを伝えていなければなりません。
  • ステータスは、ドットを添えた言葉です。「Active」や「Paid」(支払い済み)です。色相はそれを繰り返すだけで、色相だけに意味を担わせることは決してありません。
  • 日付は月を単語で書き、テーブルではそれぞれを <time> にします。
  • 「Change plan」(プランを変更)と「Manage seats」(席数を管理)は別のページへ移動するため、ボタンの見た目にしたリンクです。
  • 通貨は一度、言葉で書きます。「$」だけでは、いくつもの通貨を指します。