網站導覽

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。兩者各占一行,列寬不足時以省略號結尾。
  • list-meta 是文字下方的第三行,用於時間、狀態或數量。它在列中接在 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>

#第三行

一列的媒體、文字和列尾彼此置中;只要文字是一個標題加上一行說明,整列看起來就是一體。需要獨立一行的時間、狀態或數量則使用 list-meta:它是列中接在 list-body 之後的部件,不是放進內文的第三行。它位於文字下方,媒體和列尾仍對齊標題與說明的中央,和其他每一列相同。

第三行

<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 內多加一行:內文會比媒體高,而對著三行置中的頭像不屬於其中任何一行。

#互動式

list-interactive 適用於可開啟或選取的列。將 list-row 直接加在 <a> 或 <button> 上。每列都會成為左右留有空間的圓角操作目標,並立即回應指標。各列已有清楚的範圍,因此會隱藏細分隔線。在代表目前項目的列上設定 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>

#選擇元件

  • 需要逐欄比較各列時,使用表格。
  • 只有少量導覽目的地,每項有圖示且只有一行文字時,使用導覽清單。
  • 需要用鍵盤選取選項時,使用清單方塊。

#無障礙

  • 使用 <ul> 或 <ol>,讓螢幕閱讀器宣告項目數量。
  • 如果列中已寫出名稱,旁邊的頭像便屬於裝飾,請使用 alt="" 或 aria-hidden="true"。
  • 整列是單一連結時,列內不得包含其他控制項。若列內有開關或選單按鈕等獨立控制項,請用一般的 <li> 包住整列。

#類別

類別說明
list清單
list-row一般列使用清單項目。整列都可操作時,使用連結或按鈕。
list-media列首的識別圖像,例如頭像、圖示或縮圖
list-body只包含標題和選填說明;第三行使用 list-meta
list-title列名稱以單行顯示,過長時在末尾加上省略號。
list-description較低調的第二行文字,限一行,超出時以省略號截斷。
list-meta文字下方的第三行,在列中接在 list-body 之後,用於時間、狀態或數量。媒體和列尾仍對齊標題與說明的中央,而不是三行的中央
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;    }  }}