Panels & chrome Chip
// Chip

Chip

An entity chip, a compact reference to one thing (a run, a PR, a host) that reads as one unit and, as a link or button, is one target.

.talos-chip names one entity in a row of text or a table cell: a run, a pull request, a person, a host. Its parts (kind, title, meta, dot or icon) read as a single unit, and when the chip is an <a> or a <button> the whole chip is one target. The shape is the flag chamfer, a single top-right cut drawn by the chamfer engine. Every part is optional; the title truncates and nothing else shrinks. It lives in the talos-chip.css module, which all.css loads.

Anatomy

PREVIEW
Runnightly backup4mPR#128 popover placementedge-03
<span class="talos-chip">
  <span class="talos-chip__dot"></span>        <!-- or svg.talos-chip__icon -->
  <span class="talos-chip__kind">Run</span>
  <span class="talos-chip__title">nightly backup</span>
  <span class="talos-chip__meta">4m</span>
</span>

__kind is the uppercase HUD label in the tone colour, __title the name, __meta a quiet tabular figure (an age, a count). The leading mark is either a __dot or an svg.talos-chip__icon, both in the tone colour.

Tones

PREVIEW
HostneutralRunnominalRunwarningRuncriticalNoteinfoRunmuted
<span class="talos-chip talos-chip--nominal">…</span>
<span class="talos-chip talos-chip--warning">…</span>
<span class="talos-chip talos-chip--critical">…</span>
<span class="talos-chip talos-chip--info">…</span>
<span class="talos-chip talos-chip--muted">…</span>

A tone rebinds one channel triplet, --_tone-hsl, which colours the kind, the dot, the icon, the edge and a faint fill. --nominal, --warning and --critical are the canonical band names; --info is informational, not a band; --muted de-emphasises the chip to tertiary text and a subtle edge.

Solid and small

PREVIEW
EnvproductionIncidentINC-4212mpassingTagv0.13.0
<span class="talos-chip talos-chip--solid">…</span>
<span class="talos-chip talos-chip--solid talos-chip--critical">…</span>
<span class="talos-chip talos-chip--sm talos-chip--nominal">…</span>

--solid is the loud variant: filled with the tone, text in the page colour. The neutral solid stays monochrome, a white fill with black text. --sm is for dense rows: tighter padding, a smaller cut, a smaller dot.

PREVIEW
Runnightly backup4mViewcurrent
<a class="talos-chip talos-chip--warning" href="/runs/42">…</a>
<button class="talos-chip" type="button">…</button>
<a class="talos-chip" href="/views/ops" aria-current="page">…</a>
<button class="talos-chip" type="button" disabled>…</button>

As an <a> or a <button> the chip gets a pointer cursor, its edge and fill lift on hover, and :focus-visible paints the edge in the focus colour (the clip-path would hide an outline). aria-current and aria-expanded="true" hold a strong edge; :disabled or aria-disabled="true" dims it. A chip that opens a popover gets aria-expanded from the popover.

Filter toggles

PREVIEW
<ul class="talos-chip-list" aria-label="Filter by status">
  <li><button class="talos-chip talos-chip--nominal" type="button" aria-pressed="true">…</button></li>
  <li><button class="talos-chip talos-chip--critical" type="button" aria-pressed="false">…</button></li>
</ul>

A <button aria-pressed> chip is a filter toggle. Pressed ("true") keeps the tone with a stronger fill; unpressed ("false") drops to a subtle edge and disabled text, tone parts included. Your script flips the attribute.

Chip list

PREVIEW
  • Regioneu-west-3
  • Tieredge
  • healthy
  • +4 more
<ul class="talos-chip-list">
  <li><span class="talos-chip talos-chip--sm">…</span></li>
  <li><span class="talos-chip talos-chip--sm">…</span></li>
</ul>

.talos-chip-list wraps a row of chips with an even gap and no bullets. Its <li> children are display: contents, so the list stays semantic while the chips lay out as direct flex items. A plain <div> works too.

Classes

ClassRole
.talos-chipthe chip: inline-flex, flag chamfer, neutral tone
.talos-chip__kinduppercase HUD label in the tone colour
.talos-chip__titlethe entity name; truncates
.talos-chip__metatabular secondary figure
.talos-chip__dot / __iconleading mark in the tone colour
--nominal --warning --critical --info --mutedtones
--solidfilled, loud
--smdense rows
.talos-chip-listwrapping row of chips; <li> children are transparent