Light themes
Dark themes

Make your own

Marker

A marker is a line in a conversation that is not a message: a date, a status, something the system did.

Today
The courier picked up order PL-20418
Checking the address
Looked through 4 earlier orders
Order PL-20418 was paid14:10
Conversation shortened

Playground

A line in a conversation that nobody wrote: an event, work in progress, a label between rules or a row with weight.

HTML

Variants

ClassUse
tray-markerAn event, with an icon: "The courier picked up the order", "Explored 4 files".
tray-marker with aria-busy="true"Something in progress: a Spinner as the icon and gently pulsing text ("Checking the address"). Give it role="status".
tray-marker tray-marker--separatorA label between two hairlines: a date, "New messages", "Conversation shortened".
tray-marker tray-marker--rowA filled row for an event that deserves weight, with a time or a button at its end (tray-marker__end).

Markup

HTML
<div class="tray-marker">
  <span class="tray-marker__icon">…icon…</span>
  <span class="tray-marker__text">The courier picked up order PL-20418</span>
</div>

Markers are label type in ink-soft: quieter than a message, never in a bubble. They sit in the tray-thread between messages.

Accessibility

A marker is plain text, and its icon is aria-hidden, so the sentence carries the event. A separator is read as its words alone: its hairlines are drawn in CSS. A running marker takes role="status" and aria-busy="true". When the work ends, write the result into the same element and remove aria-busy, so the result is read and the pulse stops. Under prefers-reduced-motion: reduce the pulse stops and the Spinner turns slowly instead.

Do and don't

  • Do write a marker as a plain past-tense sentence, without a full stop.
  • Do replace a running marker with its result when the work ends, rather than adding a second line.
  • Don't use a marker for anything a person wrote.
↑↓ to moveEnter to openEsc to close