# メンバー

ワークスペースに誰がどの役割でいるかを示します。役割の変更、招待の送信、返答待ちの招待を扱います。

メンバーブロックは、ワークスペースの所有者が、誰がどの役割で入れるのかを確かめ、役割を変更し、新しい人に参加を依頼する場所です。メンバーは[シート](https://ui.master.co/ja/components/surface#sheet)に載せた[リスト](https://ui.master.co/ja/components/list.md)で、役割はそれぞれネイティブの[セレクト](https://ui.master.co/ja/components/select.md)、招待は[ダイアログ](https://ui.master.co/ja/components/dialog.md)内のフォームです。まだ返答のない招待は、メンバーの下に、メンバーとは分けて置きます。招待を送っただけのアドレスは、まだメンバーではないからです。

**メンバー**

```html
<section class="container-inline flex flex-col gap-lg max-w(720) mx-auto" aria-labelledby="members-title">
  <header class="flex flex-wrap items-end justify-between gap-md">
    <div class="flex flex-col gap-2xs min-w(0)">
      <h2 class="heading heading-lg" id="members-title">Members</h2>
      <p class="m(0) fg-text-muted">Five people work in Atlas Labs. Each takes one seat on Pro.</p>
    </div>
    <button type="button" class="btn btn-primary" commandfor="members-invite" command="show-modal"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8L13 8"/><path d="M8 3L8 13"/></svg>Invite a member</button>
  </header>
  <div class="sheet px-md py-xs px-lg@container(--md)">
    <ul class="list">
      <li class="list-row">
        <span class="avatar list-media"><img class="avatar-image" src="/demo/people/yiching-lin.webp" alt="" width="256" height="256"></span>
        <div class="list-body">
          <p class="list-title">Yi-ching Lin <span class="badge badge-sm vertical-middle">You</span></p>
          <p class="list-description">yiching@atlaslabs.dev</p>
        </div>
        <span class="list-end fg-text-muted">Owner</span>
      </li>
      <li class="list-row">
        <span class="avatar list-media"><img class="avatar-image" src="/demo/people/pohan-chen.webp" alt="" width="256" height="256"></span>
        <div class="list-body">
          <p class="list-title">Po-han Chen</p>
          <p class="list-description">pohan@atlaslabs.dev</p>
        </div>
        <div class="list-end flex items-center gap-2xs">
          <select class="select select-sm w(104)@container(--md)" aria-label="Role of Po-han Chen">
            <option class="select-option" selected>Admin</option>
            <option class="select-option">Member</option>
            <option class="select-option">Viewer</option>
          </select>
          <button type="button" class="btn btn-quiet btn-square btn-sm" popovertarget="members-menu-pohan" aria-label="More for Po-han Chen"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="3.5" cy="8" r="1.05" fill="currentColor" stroke="none"/><circle cx="8" cy="8" r="1.05" fill="currentColor" stroke="none"/><circle cx="12.5" cy="8" r="1.05" fill="currentColor" stroke="none"/></svg></button>
          <div id="members-menu-pohan" popover class="menu menu-end">
            <button type="button" class="menu-item" popovertarget="members-menu-pohan" popovertargetaction="hide">Make owner</button>
            <hr class="menu-separator">
            <button type="button" class="menu-item menu-item-danger" popovertarget="members-menu-pohan" popovertargetaction="hide">Remove from Atlas Labs</button>
          </div>
        </div>
      </li>
      <li class="list-row">
        <span class="avatar list-media"><img class="avatar-image" src="/demo/people/misaki-sato.webp" alt="" width="256" height="256"></span>
        <div class="list-body">
          <p class="list-title">Misaki Sato</p>
          <p class="list-description">misaki@atlaslabs.dev</p>
        </div>
        <div class="list-end flex items-center gap-2xs">
          <select class="select select-sm w(104)@container(--md)" aria-label="Role of Misaki Sato">
            <option class="select-option" selected>Admin</option>
            <option class="select-option">Member</option>
            <option class="select-option">Viewer</option>
          </select>
          <button type="button" class="btn btn-quiet btn-square btn-sm" popovertarget="members-menu-misaki" aria-label="More for Misaki Sato"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="3.5" cy="8" r="1.05" fill="currentColor" stroke="none"/><circle cx="8" cy="8" r="1.05" fill="currentColor" stroke="none"/><circle cx="12.5" cy="8" r="1.05" fill="currentColor" stroke="none"/></svg></button>
          <div id="members-menu-misaki" popover class="menu menu-end">
            <button type="button" class="menu-item" popovertarget="members-menu-misaki" popovertargetaction="hide">Make owner</button>
            <hr class="menu-separator">
            <button type="button" class="menu-item menu-item-danger" popovertarget="members-menu-misaki" popovertargetaction="hide">Remove from Atlas Labs</button>
          </div>
        </div>
      </li>
      <li class="list-row">
        <span class="avatar list-media"><img class="avatar-image" src="/demo/people/seoyeon-kim.webp" alt="" width="256" height="256"></span>
        <div class="list-body">
          <p class="list-title">Seo-yeon Kim</p>
          <p class="list-description">seoyeon@atlaslabs.dev</p>
        </div>
        <div class="list-end flex items-center gap-2xs">
          <select class="select select-sm w(104)@container(--md)" aria-label="Role of Seo-yeon Kim">
            <option class="select-option">Admin</option>
            <option class="select-option" selected>Member</option>
            <option class="select-option">Viewer</option>
          </select>
          <button type="button" class="btn btn-quiet btn-square btn-sm" popovertarget="members-menu-seoyeon" aria-label="More for Seo-yeon Kim"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="3.5" cy="8" r="1.05" fill="currentColor" stroke="none"/><circle cx="8" cy="8" r="1.05" fill="currentColor" stroke="none"/><circle cx="12.5" cy="8" r="1.05" fill="currentColor" stroke="none"/></svg></button>
          <div id="members-menu-seoyeon" popover class="menu menu-end">
            <button type="button" class="menu-item" popovertarget="members-menu-seoyeon" popovertargetaction="hide">Make owner</button>
            <hr class="menu-separator">
            <button type="button" class="menu-item menu-item-danger" popovertarget="members-menu-seoyeon" popovertargetaction="hide">Remove from Atlas Labs</button>
          </div>
        </div>
      </li>
      <li class="list-row">
        <span class="avatar list-media"><img class="avatar-image" src="/demo/people/kenta-nakamura.webp" alt="" width="256" height="256"></span>
        <div class="list-body">
          <p class="list-title">Kenta Nakamura</p>
          <p class="list-description">kenta@atlaslabs.dev</p>
        </div>
        <div class="list-end flex items-center gap-2xs">
          <select class="select select-sm w(104)@container(--md)" aria-label="Role of Kenta Nakamura">
            <option class="select-option">Admin</option>
            <option class="select-option" selected>Member</option>
            <option class="select-option">Viewer</option>
          </select>
          <button type="button" class="btn btn-quiet btn-square btn-sm" popovertarget="members-menu-kenta" aria-label="More for Kenta Nakamura"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="3.5" cy="8" r="1.05" fill="currentColor" stroke="none"/><circle cx="8" cy="8" r="1.05" fill="currentColor" stroke="none"/><circle cx="12.5" cy="8" r="1.05" fill="currentColor" stroke="none"/></svg></button>
          <div id="members-menu-kenta" popover class="menu menu-end">
            <button type="button" class="menu-item" popovertarget="members-menu-kenta" popovertargetaction="hide">Make owner</button>
            <hr class="menu-separator">
            <button type="button" class="menu-item menu-item-danger" popovertarget="members-menu-kenta" popovertargetaction="hide">Remove from Atlas Labs</button>
          </div>
        </div>
      </li>
    </ul>
  </div>
  <section class="flex flex-col gap-sm" aria-labelledby="members-pending-title">
    <h3 class="heading heading-sm" id="members-pending-title">Pending invitations</h3>
    <div class="sheet px-md py-xs px-lg@container(--md)">
      <ul class="list">
        <li class="list-row">
          <div class="list-body">
            <p class="list-title">chiahao@atlaslabs.dev</p>
            <p class="list-description">Member, expires <time datetime="2026-11-28">28 Nov</time></p>
          </div>
          <div class="list-end flex items-center gap-2xs">
            <button type="button" class="btn btn-quiet btn-sm hidden inline-flex@container(--md)" aria-label="Resend the invitation to chiahao@atlaslabs.dev">Resend</button>
            <button type="button" class="btn btn-quiet btn-sm hidden inline-flex@container(--md)" aria-label="Revoke the invitation to chiahao@atlaslabs.dev">Revoke</button>
            <button type="button" class="btn btn-quiet btn-square btn-sm hidden@container(--md)" popovertarget="members-menu-chiahao" aria-label="More for the invitation to chiahao@atlaslabs.dev"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="3.5" cy="8" r="1.05" fill="currentColor" stroke="none"/><circle cx="8" cy="8" r="1.05" fill="currentColor" stroke="none"/><circle cx="12.5" cy="8" r="1.05" fill="currentColor" stroke="none"/></svg></button>
            <div id="members-menu-chiahao" popover class="menu menu-end">
              <button type="button" class="menu-item" popovertarget="members-menu-chiahao" popovertargetaction="hide">Resend invitation</button>
              <button type="button" class="menu-item menu-item-danger" popovertarget="members-menu-chiahao" popovertargetaction="hide">Revoke invitation</button>
            </div>
          </div>
          <p class="list-meta"><span>Invited by Po-han Chen on <time datetime="2026-11-21">21 Nov</time></span></p>
        </li>
        <li class="list-row">
          <div class="list-body">
            <p class="list-title">yuna@atlaslabs.dev</p>
            <p class="list-description">Viewer, expires <time datetime="2026-11-30">30 Nov</time></p>
          </div>
          <div class="list-end flex items-center gap-2xs">
            <button type="button" class="btn btn-quiet btn-sm hidden inline-flex@container(--md)" aria-label="Resend the invitation to yuna@atlaslabs.dev">Resend</button>
            <button type="button" class="btn btn-quiet btn-sm hidden inline-flex@container(--md)" aria-label="Revoke the invitation to yuna@atlaslabs.dev">Revoke</button>
            <button type="button" class="btn btn-quiet btn-square btn-sm hidden@container(--md)" popovertarget="members-menu-yuna" aria-label="More for the invitation to yuna@atlaslabs.dev"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="3.5" cy="8" r="1.05" fill="currentColor" stroke="none"/><circle cx="8" cy="8" r="1.05" fill="currentColor" stroke="none"/><circle cx="12.5" cy="8" r="1.05" fill="currentColor" stroke="none"/></svg></button>
            <div id="members-menu-yuna" popover class="menu menu-end">
              <button type="button" class="menu-item" popovertarget="members-menu-yuna" popovertargetaction="hide">Resend invitation</button>
              <button type="button" class="menu-item menu-item-danger" popovertarget="members-menu-yuna" popovertargetaction="hide">Revoke invitation</button>
            </div>
          </div>
          <p class="list-meta"><span>Invited by you on <time datetime="2026-11-23">23 Nov</time></span></p>
        </li>
      </ul>
    </div>
  </section>
  <dialog id="members-invite" class="dialog" aria-labelledby="members-invite-title" aria-describedby="members-invite-description">
    <header class="dialog-header">
      <h2 class="dialog-title" id="members-invite-title">Invite a member</h2>
      <p class="dialog-description" id="members-invite-description">They get an email with a link that works for seven days.</p>
    </header>
    <form class="dialog-body flex flex-col gap-md" method="dialog" id="members-invite-form">
      <label class="field">
        Email
        <input class="input" type="email" name="email" autocomplete="off" required autofocus>
      </label>
      <div class="field">
        <label for="members-invite-role">Role</label>
        <select class="select" id="members-invite-role" name="role" aria-describedby="members-invite-role-hint">
          <option class="select-option">Admin</option>
          <option class="select-option" selected>Member</option>
          <option class="select-option">Viewer</option>
        </select>
        <p class="field-hint" id="members-invite-role-hint">A member deploys and reads logs. An admin also manages people and environment variables. A viewer only reads.</p>
      </div>
      <p class="m(0) fg-text-muted">All five seats are taken. A sixth adds $20 a month from the day the invitation is accepted.</p>
    </form>
    <footer class="dialog-footer">
      <button type="button" class="btn" commandfor="members-invite" command="close">Cancel</button>
      <button type="submit" class="btn btn-primary" form="members-invite-form">Send invitation</button>
    </footer>
    <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="members-invite" command="close" aria-label="Close"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 4L12 12"/><path d="M4 12L12 4"/></svg></button>
  </dialog>
</section>
```

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

<a id="anatomy"></a>

## 構成

- **人数と、その費用。** タイトルの下の行で、何人いるか、そして 1 人につき 1 席を使うことを伝えます。ここで人を追加すれば費用が発生するため、ダイアログが開く前にそれを知らせておきます。
- **ページの操作は 1 つ。** 「Invite a member」（メンバーを招待）は唯一のプライマリー[ボタン](https://ui.master.co/ja/components/button.md)で、ヘッダーの末尾に置きます。`commandfor` と `command="show-modal"` でダイアログを開くため、開閉にスクリプトは関与しません。
- **メンバーは `list` の行です。** [アバター](https://ui.master.co/ja/components/avatar.md)が `list-media`、名前とアドレスが `list-body`、役割と行のメニューが `list-end` です。メディアと末尾の要素は、2 行のテキストの中央に揃います。
- **役割はネイティブの `<select>` です。** `select-sm` により、隣の小サイズのボタンと同じ高さになります。行にはラベルを置く余裕がないため、各セレクトには対象の人がわかる名前を付けます。「Role of Po-han Chen」のようになります。
- **所有者の行にはコントロールがありません。** サインインしている本人は、自分の役割を下げることも自分を削除することもできないため、役割は控えめなインク色の文字で示し、タイトル内の[バッジ](https://ui.master.co/ja/components/badge.md)が「You」と伝えます。所有権は、別の行の[メニュー](https://ui.master.co/ja/components/menu.md)にある「Make owner」で移します。
- **取り消せない操作はメニューの中に置きます。** 危険を示すインク色で表示し、その人をどこから削除するのかを明記します。行にボタンとして置くことはしません。赤いボタンが 5 つ並ぶと、退出のためのページになってしまいます。
- **招待は 2 つ目のリストです。** 招待にはアドレスがあるだけで、まだ人がいないため、行にアバターはありません。説明には、役割、送信者、有効期限を示し、日付はそれぞれ `<time>` に入れます。
- **ダイアログは、選択にかかる費用を伝えます。** 役割の下のヒントは各役割でできることを 1 文で示し、最後の行は席が埋まっていることと、1 席増やした場合の追加額を示します。数値は[請求の概要](https://ui.master.co/ja/blocks/billing-summary.md)と一致します。5 席、1 席あたり $20 です。

このブロックは、サーバーが保持する状態を表示します。役割の変更、再送、取り消しは、アプリケーションが送信するリクエストです。それぞれの後に、結果を `role="status"` の領域に書き込んで読み上げられるようにし、行がなくなるときはフォーカスを次の行に移します。

<a id="roles"></a>

## 各役割でできること

役割を選ぶ前に、読み手は役割どうしを比べたくなります。それには[テーブル](https://ui.master.co/ja/components/table.md)を使います。役割を列に、できることを行にし、各セルで「はい」か「いいえ」を伝えます。メンバーの下に置くか、ダイアログのヒントからリンクする専用のページに置きます。

**各役割でできること**

```html
<section class="container-inline flex flex-col gap-md max-w(720) mx-auto" aria-labelledby="members-roles-title">
  <header class="flex flex-col gap-2xs">
    <h2 class="heading heading-lg" id="members-roles-title">Roles</h2>
    <p class="m(0) fg-text-muted">A workspace has one owner. Every other person is an admin, a member or a viewer.</p>
  </header>
  <div class="sheet overflow-hidden">
    <div class="scroll-area scroll-area-inline" tabindex="0" role="region" aria-labelledby="members-roles-title">
      <table class="table">
        <thead>
          <tr class="table-row">
            <th class="table-heading" scope="col"><span class="sr-only">What can be done</span></th>
            <th class="table-heading" scope="col">Owner</th>
            <th class="table-heading" scope="col">Admin</th>
            <th class="table-heading" scope="col">Member</th>
            <th class="table-heading" scope="col">Viewer</th>
          </tr>
        </thead>
        <tbody>
          <tr class="table-row">
            <th class="table-cell table-primary whitespace-nowrap" scope="row">Read deployments and logs</th>
            <td class="table-cell"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5"/></svg><span class="sr-only">Yes</span></td>
            <td class="table-cell"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5"/></svg><span class="sr-only">Yes</span></td>
            <td class="table-cell"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5"/></svg><span class="sr-only">Yes</span></td>
            <td class="table-cell"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5"/></svg><span class="sr-only">Yes</span></td>
          </tr>
          <tr class="table-row">
            <th class="table-cell table-primary whitespace-nowrap" scope="row">Deploy a preview</th>
            <td class="table-cell"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5"/></svg><span class="sr-only">Yes</span></td>
            <td class="table-cell"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5"/></svg><span class="sr-only">Yes</span></td>
            <td class="table-cell"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5"/></svg><span class="sr-only">Yes</span></td>
            <td class="table-cell fg-text-muted"><span aria-hidden="true">–</span><span class="sr-only">No</span></td>
          </tr>
          <tr class="table-row">
            <th class="table-cell table-primary whitespace-nowrap" scope="row">Promote to production</th>
            <td class="table-cell"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5"/></svg><span class="sr-only">Yes</span></td>
            <td class="table-cell"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5"/></svg><span class="sr-only">Yes</span></td>
            <td class="table-cell"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5"/></svg><span class="sr-only">Yes</span></td>
            <td class="table-cell fg-text-muted"><span aria-hidden="true">–</span><span class="sr-only">No</span></td>
          </tr>
          <tr class="table-row">
            <th class="table-cell table-primary whitespace-nowrap" scope="row">Edit environment variables</th>
            <td class="table-cell"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5"/></svg><span class="sr-only">Yes</span></td>
            <td class="table-cell"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5"/></svg><span class="sr-only">Yes</span></td>
            <td class="table-cell fg-text-muted"><span aria-hidden="true">–</span><span class="sr-only">No</span></td>
            <td class="table-cell fg-text-muted"><span aria-hidden="true">–</span><span class="sr-only">No</span></td>
          </tr>
          <tr class="table-row">
            <th class="table-cell table-primary whitespace-nowrap" scope="row">Invite and remove people</th>
            <td class="table-cell"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5"/></svg><span class="sr-only">Yes</span></td>
            <td class="table-cell"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5"/></svg><span class="sr-only">Yes</span></td>
            <td class="table-cell fg-text-muted"><span aria-hidden="true">–</span><span class="sr-only">No</span></td>
            <td class="table-cell fg-text-muted"><span aria-hidden="true">–</span><span class="sr-only">No</span></td>
          </tr>
          <tr class="table-row">
            <th class="table-cell table-primary whitespace-nowrap" scope="row">Change the plan and pay</th>
            <td class="table-cell"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5"/></svg><span class="sr-only">Yes</span></td>
            <td class="table-cell fg-text-muted"><span aria-hidden="true">–</span><span class="sr-only">No</span></td>
            <td class="table-cell fg-text-muted"><span aria-hidden="true">–</span><span class="sr-only">No</span></td>
            <td class="table-cell fg-text-muted"><span aria-hidden="true">–</span><span class="sr-only">No</span></td>
          </tr>
          <tr class="table-row">
            <th class="table-cell table-primary whitespace-nowrap" scope="row">Delete the workspace</th>
            <td class="table-cell"><svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5"/></svg><span class="sr-only">Yes</span></td>
            <td class="table-cell fg-text-muted"><span aria-hidden="true">–</span><span class="sr-only">No</span></td>
            <td class="table-cell fg-text-muted"><span aria-hidden="true">–</span><span class="sr-only">No</span></td>
            <td class="table-cell fg-text-muted"><span aria-hidden="true">–</span><span class="sr-only">No</span></td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
</section>
```

- **チェックマークとダッシュに、それぞれ言葉を添えます。** チェックマークは支援技術から隠した[アイコン](https://ui.master.co/ja/components/icon.md)で、ダッシュは文字です。それぞれの横に `sr-only` の「Yes」または「No」があるため、セルは「画像」や無言ではなく、答えとして読み上げられます。
- **行は、全員ができることから 1 人だけができることへと並べます。** 列を下へ読むと、チェックマークが終わるところでその役割の権限が終わります。行を横へ読むと、権限が途切れるところからダッシュが始まります。
- **横にスクロールし、縦に並べ替えることはしません。** カードとして読むマトリクスは、もはや比較ではありません。狭い場所では、`scroll-area` がインライン軸方向にスクロールし、列が続く側の端をフェードさせます。内部にフォーカスを受け取るものがないため、`tabindex="0"`、ロール、名前を持たせます。

<a id="accessibility"></a>

## アクセシビリティ

- ブロックは `<h2>` を名前とする `<section>` です。返答待ちの招待は `<h3>` の下の独立したセクションなので、見出しで移動する読み手は両方のリストを見つけられます。
- 行内のコントロールには、その行がわかる名前を付けます。「Role of Seo-yeon Kim」「More for Seo-yeon Kim」「Revoke the invitation to yuna@atlaslabs.dev」のようにします。すべて「Role」という名前のコントロールが 5 つあると、フォームフィールドの一覧では区別できません。
- 顔写真は横にある名前の繰り返しなので、`alt` は空にします。
- ダイアログはタイトルを名前とし、その下の文を説明とします。開くと、フォーカスはメールアドレスのフィールドに移ります。閉じると、ブラウザーは、ダイアログを開いたボタンにフォーカスを戻します。
- ダイアログの送信ボタンはフォームの外のフッターにあり、`form` でフォームに関連付けます。メールアドレスのフィールドで Enter キーを押すと送信され、送信できないアドレスの場合は、ブラウザー標準の検証がダイアログを開いたままにします。

<a id="related"></a>

## 関連項目

- [リスト](https://ui.master.co/ja/components/list.md)
- [アバター](https://ui.master.co/ja/components/avatar.md)
- [セレクト](https://ui.master.co/ja/components/select.md)
- [メニュー](https://ui.master.co/ja/components/menu.md)
- [ダイアログ](https://ui.master.co/ja/components/dialog.md)
- [テーブル](https://ui.master.co/ja/components/table.md)
- [スクロール領域](https://ui.master.co/ja/components/scroll-area.md)
- [バッジ](https://ui.master.co/ja/components/badge.md)

- [請求の概要](https://ui.master.co/ja/blocks/billing-summary.md)
- [テーブルビュー](https://ui.master.co/ja/blocks/table-view.md)
- [チーム](https://ui.master.co/ja/blocks/team.md)
- [ログイン](https://ui.master.co/ja/blocks/sign-in.md)
