ナビゲーション

v2.1.0
本文

リスト

画像やアイコン、テキスト、末尾の要素を並べた行の一覧。

このページの内容

リストは、メンバー、ファイル、連携サービス、設定などを、識別用の画像やアイコン、テキスト、末尾の要素を持つ行に並べます。行の細い区切り線はテキストの位置から始まるため、左端のアバターやアイコンがひとつの列として揃って見えます。リスト自体には背景面がないため、カードやシートに配置します。

リスト

<section class="card">  <header class="card-header">    <h3 class="card-title">Members</h3>    <p class="card-description">People with access to this project.</p>  </header>  <ul class="list">    <li class="list-row">      <span class="avatar list-media">        <img class="avatar-image" src="/demo/portrait-1.svg" alt>      </span>      <div class="list-body">        <p class="list-title">Ada Lovelace</p>        <p class="list-description">ada@example.com</p>      </div>      <span class="list-end"><span class="badge">Owner</span></span>    </li>    <li class="list-row">      <span class="avatar list-media">        <img class="avatar-image" src="/demo/portrait-2.svg" alt>      </span>      <div class="list-body">        <p class="list-title">Alan Turing</p>        <p class="list-description">alan@example.com</p>      </div>      <span class="list-end">Admin</span>    </li>    <li class="list-row">      <span class="avatar list-media" aria-hidden="true">GH</span>      <div class="list-body">        <p class="list-title">Grace Hopper</p>        <p class="list-description">grace@example.com</p>      </div>      <span class="list-end">Member</span>    </li>  </ul></section>
<section className="card">  <header className="card-header">    <h3 className="card-title">Members</h3>    <p className="card-description">People with access to this project.</p>  </header>  <ul className="list">    <li className="list-row">      <span className="avatar list-media">        <img className="avatar-image" src="/demo/portrait-1.svg" alt="" />      </span>      <div className="list-body">        <p className="list-title">Ada Lovelace</p>        <p className="list-description">ada@example.com</p>      </div>      <span className="list-end"><span className="badge">Owner</span></span>    </li>    <li className="list-row">      <span className="avatar list-media">        <img className="avatar-image" src="/demo/portrait-2.svg" alt="" />      </span>      <div className="list-body">        <p className="list-title">Alan Turing</p>        <p className="list-description">alan@example.com</p>      </div>      <span className="list-end">Admin</span>    </li>    <li className="list-row">      <span className="avatar list-media" aria-hidden="true">GH</span>      <div className="list-body">        <p className="list-title">Grace Hopper</p>        <p className="list-description">grace@example.com</p>      </div>      <span className="list-end">Member</span>    </li>  </ul></section>
<section class="card">  <header class="card-header">    <h3 class="card-title">Members</h3>    <p class="card-description">People with access to this project.</p>  </header>  <ul class="list">    <li class="list-row">      <span class="avatar list-media">        <img class="avatar-image" src="/demo/portrait-1.svg" alt>      </span>      <div class="list-body">        <p class="list-title">Ada Lovelace</p>        <p class="list-description">ada@example.com</p>      </div>      <span class="list-end"><span class="badge">Owner</span></span>    </li>    <li class="list-row">      <span class="avatar list-media">        <img class="avatar-image" src="/demo/portrait-2.svg" alt>      </span>      <div class="list-body">        <p class="list-title">Alan Turing</p>        <p class="list-description">alan@example.com</p>      </div>      <span class="list-end">Admin</span>    </li>    <li class="list-row">      <span class="avatar list-media" aria-hidden="true">GH</span>      <div class="list-body">        <p class="list-title">Grace Hopper</p>        <p class="list-description">grace@example.com</p>      </div>      <span class="list-end">Member</span>    </li>  </ul></section>
<template>  <section class="card">    <header class="card-header">      <h3 class="card-title">Members</h3>      <p class="card-description">People with access to this project.</p>    </header>    <ul class="list">      <li class="list-row">        <span class="avatar list-media">          <img class="avatar-image" src="/demo/portrait-1.svg" alt>        </span>        <div class="list-body">          <p class="list-title">Ada Lovelace</p>          <p class="list-description">ada@example.com</p>        </div>        <span class="list-end"><span class="badge">Owner</span></span>      </li>      <li class="list-row">        <span class="avatar list-media">          <img class="avatar-image" src="/demo/portrait-2.svg" alt>        </span>        <div class="list-body">          <p class="list-title">Alan Turing</p>          <p class="list-description">alan@example.com</p>        </div>        <span class="list-end">Admin</span>      </li>      <li class="list-row">        <span class="avatar list-media" aria-hidden="true">GH</span>        <div class="list-body">          <p class="list-title">Grace Hopper</p>          <p class="list-description">grace@example.com</p>        </div>        <span class="list-end">Member</span>      </li>    </ul>  </section></template>

#構成要素

  • list-mediaは、行を識別するためのアバター、アイコン、サムネイルなどを置く部分です。行の幅が狭くなっても、メディアのサイズは保たれます。
  • list-bodyにはlist-titleと、必要に応じてlist-descriptionを入れます。それぞれ1行で表示し、行の幅が狭いときは末尾を省略記号で示します。
  • list-meta はテキストの下の 3 行目で、時刻、状態、件数を示します。行の中で list-body の後に置き、行が狭いときは折り返します。
  • list-endは、値、ステータス、コントロールなどを行末に配置します。

行の下の細い区切り線は、本文の左端から始まります。ブラウザーがアンカーポジショニングに対応している場合は、本文をその行のスコープ内でアンカーとして登録し、その左端を基準に線を引きます。未対応の場合は、行の全幅に線を引きます。

#設定

行末にスイッチを置くと、設定パネルとして使えます。行のタイトルをスイッチのラベルにします。

設定

<ul class="list">  <li class="list-row">    <div class="list-body">      <p class="list-title" id="set-preview">Preview deployments</p>      <p class="list-description">Every pull request gets its own URL.</p>    </div>    <span class="list-end">      <input type="checkbox" role="switch" class="switch" checked aria-labelledby="set-preview">    </span>  </li>  <li class="list-row">    <div class="list-body">      <p class="list-title" id="set-comments">Comments</p>      <p class="list-description">Let reviewers leave notes on a preview.</p>    </div>    <span class="list-end">      <input type="checkbox" role="switch" class="switch" aria-labelledby="set-comments">    </span>  </li></ul>
<ul className="list">  <li className="list-row">    <div className="list-body">      <p className="list-title" id="set-preview">Preview deployments</p>      <p className="list-description">Every pull request gets its own URL.</p>    </div>    <span className="list-end">      <input type="checkbox" role="switch" className="switch" defaultChecked aria-labelledby="set-preview" />    </span>  </li>  <li className="list-row">    <div className="list-body">      <p className="list-title" id="set-comments">Comments</p>      <p className="list-description">Let reviewers leave notes on a preview.</p>    </div>    <span className="list-end">      <input type="checkbox" role="switch" className="switch" aria-labelledby="set-comments" />    </span>  </li></ul>
<ul class="list">  <li class="list-row">    <div class="list-body">      <p class="list-title" id="set-preview">Preview deployments</p>      <p class="list-description">Every pull request gets its own URL.</p>    </div>    <span class="list-end">      <input type="checkbox" role="switch" class="switch" checked aria-labelledby="set-preview">    </span>  </li>  <li class="list-row">    <div class="list-body">      <p class="list-title" id="set-comments">Comments</p>      <p class="list-description">Let reviewers leave notes on a preview.</p>    </div>    <span class="list-end">      <input type="checkbox" role="switch" class="switch" aria-labelledby="set-comments">    </span>  </li></ul>
<template>  <ul class="list">    <li class="list-row">      <div class="list-body">        <p class="list-title" id="set-preview">Preview deployments</p>        <p class="list-description">Every pull request gets its own URL.</p>      </div>      <span class="list-end">        <input type="checkbox" role="switch" class="switch" checked aria-labelledby="set-preview">      </span>    </li>    <li class="list-row">      <div class="list-body">        <p class="list-title" id="set-comments">Comments</p>        <p class="list-description">Let reviewers leave notes on a preview.</p>      </div>      <span class="list-end">        <input type="checkbox" role="switch" class="switch" aria-labelledby="set-comments">      </span>    </li>  </ul></template>

#3 行目

行のメディア、テキスト、末尾は互いに中央で揃います。テキストがタイトルと 1 行の説明である間は、これで 1 つの行として読めます。独立した行が必要な時刻、状態、件数には list-meta を使います。これは行の中で list-body の後に置くパーツで、本文の中の 3 行目ではありません。テキストの下に配置され、メディアと末尾は他の行と同じく、タイトルと説明の中央に揃ったままです。

3 行目

<ul class="list" aria-label="Notifications">  <li class="list-row">    <span class="avatar list-media"><img class="avatar-image" src="/demo/portrait-1.svg" alt></span>    <div class="list-body">      <p class="list-title">Ada Lovelace left a comment</p>      <p class="list-description">“The hero reads much better.”</p>    </div>    <p class="list-meta">      <time datetime="2026-11-12T17:40">Yesterday, 17:40</time><span class="badge badge-sm badge-dot">Unread</span>    </p>    <span class="list-end">      <button type="button" class="btn btn-quiet btn-square btn-sm" aria-label="Mark “Ada Lovelace left a comment” as read">        <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>      </button>    </span>  </li>  <li class="list-row">    <span class="avatar list-media"><img class="avatar-image" src="/demo/portrait-2.svg" alt></span>    <div class="list-body">      <p class="list-title">Alan Turing invited you to Borealis</p>      <p class="list-description">You joined as a member.</p>    </div>    <p class="list-meta"><time datetime="2026-11-11T14:05">11 November</time></p>  </li></ul>
import CheckIcon from '@master/icons-react/native/16/soft/check'<ul className="list" aria-label="Notifications">  <li className="list-row">    <span className="avatar list-media">      <img className="avatar-image" src="/demo/portrait-1.svg" alt="" />    </span>    <div className="list-body">      <p className="list-title">Ada Lovelace left a comment</p>      <p className="list-description">“The hero reads much better.”</p>    </div>    <p className="list-meta">      <time dateTime="2026-11-12T17:40">Yesterday, 17:40</time><span className="badge badge-sm badge-dot">Unread</span>    </p>    <span className="list-end">      <button type="button" className="btn btn-quiet btn-square btn-sm" aria-label="Mark “Ada Lovelace left a comment” as read">        <CheckIcon className="icon" />      </button>    </span>  </li>  <li className="list-row">    <span className="avatar list-media">      <img className="avatar-image" src="/demo/portrait-2.svg" alt="" />    </span>    <div className="list-body">      <p className="list-title">Alan Turing invited you to Borealis</p>      <p className="list-description">You joined as a member.</p>    </div>    <p className="list-meta"><time dateTime="2026-11-11T14:05">11 November</time></p>  </li></ul>
<script>  import CheckIcon from '@master/icons-svelte/native/16/soft/check'</script><ul class="list" aria-label="Notifications">  <li class="list-row">    <span class="avatar list-media"><img class="avatar-image" src="/demo/portrait-1.svg" alt></span>    <div class="list-body">      <p class="list-title">Ada Lovelace left a comment</p>      <p class="list-description">“The hero reads much better.”</p>    </div>    <p class="list-meta">      <time datetime="2026-11-12T17:40">Yesterday, 17:40</time><span class="badge badge-sm badge-dot">Unread</span>    </p>    <span class="list-end">      <button type="button" class="btn btn-quiet btn-square btn-sm" aria-label="Mark “Ada Lovelace left a comment” as read">        <CheckIcon class="icon" />      </button>    </span>  </li>  <li class="list-row">    <span class="avatar list-media"><img class="avatar-image" src="/demo/portrait-2.svg" alt></span>    <div class="list-body">      <p class="list-title">Alan Turing invited you to Borealis</p>      <p class="list-description">You joined as a member.</p>    </div>    <p class="list-meta"><time datetime="2026-11-11T14:05">11 November</time></p>  </li></ul>
<script setup>import CheckIcon from '@master/icons-vue/native/16/soft/check'</script><template>  <ul class="list" aria-label="Notifications">    <li class="list-row">      <span class="avatar list-media">        <img class="avatar-image" src="/demo/portrait-1.svg" alt>      </span>      <div class="list-body">        <p class="list-title">Ada Lovelace left a comment</p>        <p class="list-description">“The hero reads much better.”</p>      </div>      <p class="list-meta">        <time datetime="2026-11-12T17:40">Yesterday, 17:40</time><span class="badge badge-sm badge-dot">Unread</span>      </p>      <span class="list-end">        <button type="button" class="btn btn-quiet btn-square btn-sm" aria-label="Mark “Ada Lovelace left a comment” as read">          <CheckIcon class="icon" />        </button>      </span>    </li>    <li class="list-row">      <span class="avatar list-media">        <img class="avatar-image" src="/demo/portrait-2.svg" alt>      </span>      <div class="list-body">        <p class="list-title">Alan Turing invited you to Borealis</p>        <p class="list-description">You joined as a member.</p>      </div>      <p class="list-meta"><time datetime="2026-11-11T14:05">11 November</time></p>    </li>  </ul></template>

ユーティリティで list-body に行を追加しないでください。本文がメディアより高くなり、3 行の中央に置かれたアバターはどの行にも属さなくなります。

#操作できる行

list-interactiveは、項目を開いたり選択したりできる行に使います。<a>または<button>そのものにlist-rowを指定します。各行は左右に余白のある角丸の操作領域になり、ポインターに即座に反応します。行同士の間隔で区切れるため、区切り線は表示しません。現在の行にはaria-currentを指定します。リストの上の見出しに同じ左右の余白 --list-inset(.625rem)を取ると、各行の文字と同じ位置から始まります。変えるときはコンテナにこのプロパティを設定すると、両方がそろって変わります。

操作できる行

<nav class="list list-interactive max-w(360) mx-auto" aria-label="Projects">  <a class="list-row" href="#atlas" aria-current="page">    <span class="avatar avatar-square list-media" aria-hidden="true">AT</span>    <span class="list-body">      <span class="list-title">Atlas</span>      <span class="list-description">atlas.dev</span>    </span>    <span class="list-end">2h</span>  </a>  <a class="list-row" href="#borealis">    <span class="avatar avatar-square list-media" aria-hidden="true">BO</span>    <span class="list-body">      <span class="list-title">Borealis</span>      <span class="list-description">borealis.dev</span>    </span>    <span class="list-end">1d</span>  </a>  <a class="list-row" href="#cirrus">    <span class="avatar avatar-square list-media" aria-hidden="true">CI</span>    <span class="list-body">      <span class="list-title">Cirrus</span>      <span class="list-description">cirrus.dev</span>    </span>    <span class="list-end">6d</span>  </a></nav>
<nav className="list list-interactive max-w(360) mx-auto" aria-label="Projects">  <a className="list-row" href="#atlas" aria-current="page">    <span className="avatar avatar-square list-media" aria-hidden="true">AT</span>    <span className="list-body">      <span className="list-title">Atlas</span>      <span className="list-description">atlas.dev</span>    </span>    <span className="list-end">2h</span>  </a>  <a className="list-row" href="#borealis">    <span className="avatar avatar-square list-media" aria-hidden="true">BO</span>    <span className="list-body">      <span className="list-title">Borealis</span>      <span className="list-description">borealis.dev</span>    </span>    <span className="list-end">1d</span>  </a>  <a className="list-row" href="#cirrus">    <span className="avatar avatar-square list-media" aria-hidden="true">CI</span>    <span className="list-body">      <span className="list-title">Cirrus</span>      <span className="list-description">cirrus.dev</span>    </span>    <span className="list-end">6d</span>  </a></nav>
<nav class="list list-interactive max-w(360) mx-auto" aria-label="Projects">  <a class="list-row" href="#atlas" aria-current="page">    <span class="avatar avatar-square list-media" aria-hidden="true">AT</span>    <span class="list-body">      <span class="list-title">Atlas</span>      <span class="list-description">atlas.dev</span>    </span>    <span class="list-end">2h</span>  </a>  <a class="list-row" href="#borealis">    <span class="avatar avatar-square list-media" aria-hidden="true">BO</span>    <span class="list-body">      <span class="list-title">Borealis</span>      <span class="list-description">borealis.dev</span>    </span>    <span class="list-end">1d</span>  </a>  <a class="list-row" href="#cirrus">    <span class="avatar avatar-square list-media" aria-hidden="true">CI</span>    <span class="list-body">      <span class="list-title">Cirrus</span>      <span class="list-description">cirrus.dev</span>    </span>    <span class="list-end">6d</span>  </a></nav>
<template>  <nav class="list list-interactive max-w(360) mx-auto" aria-label="Projects">    <a class="list-row" href="#atlas" aria-current="page">      <span class="avatar avatar-square list-media" aria-hidden="true">AT</span>      <span class="list-body">        <span class="list-title">Atlas</span>        <span class="list-description">atlas.dev</span>      </span>      <span class="list-end">2h</span>    </a>    <a class="list-row" href="#borealis">      <span class="avatar avatar-square list-media" aria-hidden="true">BO</span>      <span class="list-body">        <span class="list-title">Borealis</span>        <span class="list-description">borealis.dev</span>      </span>      <span class="list-end">1d</span>    </a>    <a class="list-row" href="#cirrus">      <span class="avatar avatar-square list-media" aria-hidden="true">CI</span>      <span class="list-body">        <span class="list-title">Cirrus</span>        <span class="list-description">cirrus.dev</span>      </span>      <span class="list-end">6d</span>    </a>  </nav></template>

#コンポーネントの選び方

  • 列ごとに各行の内容を比較するならテーブルを使います。
  • アイコン付きで各項目に2行目がない短い移動先一覧には、ナビゲーションを使います。
  • キーボードで選択肢を選ぶならリストボックスを使います。

#アクセシビリティ

  • 行数が読み上げられるように、<ul>または<ol>を使います。
  • 行に名前が表示されている場合、隣のアバターは装飾として扱い、alt=""またはaria-hidden="true"を指定します。
  • 行全体を1つのリンクにする場合、その中にほかのコントロールを入れてはいけません。スイッチやメニューボタンなどを含む行には、通常の<li>を使います。

#クラス

クラス説明
listリスト
list-rowリスト項目の行。行全体が遷移先を持つ場合はリンクまたはボタン
list-media行の先頭に置く目印。アバター、アイコン、またはサムネイル
list-bodyタイトルと任意の説明のみ。3 行目は list-meta に置きます
list-title行の名前。1 行で表示し、収まらない場合は末尾を省略記号で示します。
list-description2 行目に置く控えめな補足です。1 行に収まらない場合は末尾を省略記号で示します。
list-metaテキストの下の 3 行目。行の中で list-body の後に置き、時刻、状態、件数を示します。メディアと末尾は 3 行の中央ではなく、タイトルと説明の中央に揃ったままです
list-end行末に配置する値、ステータス、またはコントロール
list-interactive開いたり選択したりできる行。各行は角丸の操作対象で、ポインターのホバーと押下に反応する。タッチ画面では高さ44px以上で、細い罫線は描画しないlist と併用します

#カスタムプロパティ

プロパティ既定値説明
--list-padding-y.75rem行のブロック方向のパディング
--list-gap.75remメディア、テキスト、末尾要素の間隔
--list-insetインタラクティブなリストで各行の左右に取る余白。未設定なら .625rem。コンポーネントでは宣言せず読み取るだけなので、コンテナに設定するとリストの上の見出しにも届き、各行の文字とそろえられます

#ソース

@master/ui/components/list.css
/* * List: rows of things, each with something to recognize it by, its words, and something at its end: * members, files, settings. Rows sit on hairlines that start at the text, not under the media, so the * column of avatars or icons reads as one edge. A list has no surface of its own. * A row follows one alignment: its media, its words and its end center on one another, which holds while the * words are a title and one line under it. Anything more is list-meta, a line under the words. */@layer components.ui {  .list {    --list-padding-y: .75rem;    --list-gap: .75rem;    --icon-size: 1.125rem;    display: flex;    flex-direction: column;    min-width: 0;    margin: 0;    padding: 0;    color: var(--color-text-body);    font-size: .875rem;    line-height: 1.45;    list-style: none;  }  /* A row: a list item, or a link or a button when the whole row goes somewhere. */  .list-row {    --icon-color: var(--color-text-muted);    position: relative;    display: flex;    align-items: center;    gap: var(--list-gap);    min-width: 0;    margin: 0;    padding: var(--list-padding-y) 0;    border: 0;    background: transparent;    color: inherit;    font: inherit;    font-feature-settings: inherit;    text-align: start;    text-decoration: none;    appearance: none;  }  /* What the row is recognized by: an avatar, an icon or a thumbnail. */  .list-media {    flex: none;  }  /* The words. */  .list-body {    display: grid;    flex: 1 1 0;    gap: .0625rem;    min-width: 0;  }  /*   * The hairline under a row. It spans the row, and where anchor positioning exists it starts at the body's   * edge instead: the body names itself as an anchor, scoped to its own row.   */  .list-row:not(:last-child)::after {    content: '';    position: absolute;    inset-inline: 0;    inset-block-end: 0;    height: 1px;    background: var(--color-line-hair);    pointer-events: none;    /* Forced colors would turn the hairline's fill to the canvas: it keeps a system color, as a checklist's does. */    @media (forced-colors: active) {      background: GrayText;    }  }  @supports (anchor-scope: --list-body) {    .list-row {      anchor-scope: --list-body;    }    .list-body {      anchor-name: --list-body;    }    .list-row:not(:last-child)::after {      inset-inline-start: anchor(--list-body start);    }  }  .list-title {    margin: 0;    overflow: hidden;    color: var(--color-text-strong);    font-weight: var(--font-weight-control);    text-overflow: ellipsis;    white-space: nowrap;  }  .list-description {    margin: 0;    overflow: hidden;    color: var(--color-text-muted);    font-size: .8125rem;    text-overflow: ellipsis;    white-space: nowrap;  }  /*   * A third line: when it happened, a status, a count. It is a part of the row, after the body, not a line of   * the body: the media and the end center on the title and its one line of help, as they do in every other   * row, and this line stands under the words without pulling them down. A row that holds one is a grid of   * three columns whose first and last are as wide as what stands in them, so a row with no media or no end   * keeps the words on its edge; the gap becomes a margin of the media and of the end for the same reason.   */  .list-meta {    display: flex;    flex-wrap: wrap;    align-items: center;    gap: .125rem .5rem;    min-width: 0;    /* As tall as a small badge, so a row whose line holds one is as tall as a row whose line is words alone. */    min-height: 1.1875rem;    margin: 0;    color: var(--color-text-muted);    font-size: .75rem;    font-variant-numeric: tabular-nums;  }  .list-row:has(.list-meta) {    display: grid;    grid-template-columns: auto minmax(0, 1fr) auto;    gap: .25rem 0;    .list-media {      grid-area: 1 / 1;      margin-inline-end: var(--list-gap);    }    .list-body {      grid-area: 1 / 2;    }    .list-end {      grid-area: 1 / 3;      margin-inline-start: var(--list-gap);    }    .list-meta {      grid-area: 2 / 2 / auto / -1;    }  }  /* A value, a status or a control at the end of the row. */  .list-end {    display: inline-flex;    flex: none;    align-items: center;    gap: .5rem;    color: var(--color-text-muted);    font-size: .8125rem;    font-variant-numeric: tabular-nums;  }  /*   * Interactive: rows that open or select. Each is a rounded target with room at its sides, and answers the   * pointer at once; the hairlines step aside, since the rows now part themselves.   */  .list-interactive {    gap: 2px;    /*     * The room at a row's sides. It is read, not declared, here, so a column can set it once for the list and for a     * heading over the list that lines up with the rows' words.     */    .list-row {      padding-inline: var(--list-inset, .625rem);      border-radius: calc(var(--radius-control) * var(--corner-scale));      corner-shape: var(--corner-shape);      user-select: none;      -webkit-user-select: none;      -webkit-tap-highlight-color: transparent;      cursor: pointer;      touch-action: manipulation;      /* A row that is pressed is a touch target. */      @media (pointer: coarse) {        min-height: 2.75rem;      }      /* The pointer's tone leaves the current row alone: hover is a tone, current is a sheet. */      @media (hover: hover) {        &:hover:not([aria-current="page"], [aria-current="true"], [aria-selected="true"], :disabled, [aria-disabled="true"]) {          --icon-color: currentColor;          background: var(--color-surface-chip);        }      }      /* Pressed: a step deeper than the pointer's tone, so a tap is answered where there is no pointer. */      &:active:not([aria-current="page"], [aria-current="true"], [aria-selected="true"], :disabled, [aria-disabled="true"]) {        background: var(--color-surface-inset-hover);      }      /* Current or selected: the row rises one step as a small sheet, as a nav's current row does. */      &:is([aria-current="page"], [aria-current="true"], [aria-selected="true"]) {        --icon-color: currentColor;        @apply --surface-sheet;        color: var(--color-text-strong);        box-shadow: var(--shadow-raised);      }      &:focus-visible {        outline: 2px solid var(--color-focus);        outline-offset: -2px;      }    }    .list-row::after {      display: none;    }  }  /* A row that cannot be opened now steps back and stops answering the pointer. */  .list-interactive .list-row:is(:disabled, [aria-disabled="true"]) {    --icon-color: currentColor;    background: transparent;    box-shadow: none;    color: var(--color-text-disabled);    cursor: not-allowed;  }  @media (forced-colors: active) {    .list-interactive .list-row:is([aria-current="page"], [aria-current="true"], [aria-selected="true"]) {      background: Highlight;      color: HighlightText;      forced-color-adjust: none;      /*       * Opting out is inherited, so the words would keep their theme inks on the highlight: they take its text       * color, and so does the focus outline drawn on it.       */      & :is(.list-title, .list-description, .list-end) {        color: inherit;      }      &:focus-visible {        outline-color: HighlightText;      }    }    .list-interactive .list-row:is(:disabled, [aria-disabled="true"]) {      color: GrayText;    }  }}