Skip to content

Signal

Components

List row

Rows in result, browse, settings and sheet lists: lead, title, trailing value, chevron; swipe and drag in sheet lists.

Contract

Contract: components/list-row.yaml. States are drawn live by transit.js.

Variants

Two forms: a result row (lead, title, subtitle, a line bar or capsules, chevron) and a settings row (an Accent Signal glyph, title, trailing value or switch). Nothing else exists. On the web listRow() builds the result row; active marks the open one.

// Do
const T = window.ChiTransitTransit;
T.listRow({ title: "Clark/Lake", subtitle: "Elevated · Blue in subway", onclick: open,
  trail: T.stopTrail({ routeType: "train", routes: ["blue", "brown", "green", "orange", "pink", "purple"] }) });
// Don't: an SF Symbol stand-in as the lead; use a Signal glyph such as T.icon("i-settings")
T.listRow({ lead: T.el("img", { src: "gearshape.png", alt: "" }), title: "Settings" });

Usage

Do

  • Lead with a mode badge or a Signal glyph; trail with a line bar, capsules, a value or a switch.
  • Give swipe and drag their accessibility actions.

Don't

  • Don't use SF Symbol stand-ins on the web; settings rows use the Signal glyphs.

Accessibility

  • The row is one element: title, subtitle and trailing value; the lead and chevron are hidden.