导航

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;    }  }}