Skip to the content
Konstruktor UI

Feedback and overlays

Status dot

.kui-status is a small dot and a word for the state of a thing: running, done, waiting, failed, idle. The word always comes with the dot.

CSS only

Examples

Every state

Live pulses gently to show that something runs now. The others stand still.

Running Done Waiting for approval Failed Idle Not started
HTML
<span class="kui-status kui-status--live">Running</span>
<span class="kui-status kui-status--ok">Done</span>
<span class="kui-status kui-status--warn">Waiting for approval</span>
<span class="kui-status kui-status--failed">Failed</span>
<span class="kui-status kui-status--idle">Idle</span>
<span class="kui-status">Not started</span>

In a list

At the end of a row, the status says the state of each item in the same place.

  • Nightly backupStarted 02:00Running
  • Bank statement importFinished 07:14Done
  • UmsatzsteuervoranmeldungNeeds Milica’s signatureWaiting
  • Slanje e-fakturaOdbijeno u 09:31Failed
HTML
<ul class="kui-list">
  <li class="kui-list-item"><span class="kui-list-item__main"><span class="kui-list-item__title">Nightly backup</span><span class="kui-list-item__sub">Started 02:00</span></span><span class="kui-status kui-status--live">Running</span></li>
  <li class="kui-list-item"><span class="kui-list-item__main"><span class="kui-list-item__title">Bank statement import</span><span class="kui-list-item__sub">Finished 07:14</span></span><span class="kui-status kui-status--ok">Done</span></li>
  <li class="kui-list-item"><span class="kui-list-item__main"><span class="kui-list-item__title">Umsatzsteuervoranmeldung</span><span class="kui-list-item__sub">Needs Milica’s signature</span></span><span class="kui-status kui-status--warn">Waiting</span></li>
  <li class="kui-list-item"><span class="kui-list-item__main"><span class="kui-list-item__title">Slanje e-faktura</span><span class="kui-list-item__sub">Odbijeno u 09:31</span></span><span class="kui-status kui-status--failed">Failed</span></li>
</ul>

Classes and attributes

.kui-status
The dot and the word. Alone it is the neutral, not started state.
--live, --ok, --warn, --failed
Running now (pulses), done, waiting, failed.
--idle
A hollow ring: present but doing nothing.

Accessibility

  • The word is the status; the dot is decoration. Never show the dot alone.
  • When a status changes while the person looks, put the list in a polite live region or announce the change with kui.announce.
  • Under reduced motion the live dot stops pulsing.

Do and do not

Do

  • Use the same words for the same states across the product.
  • Use a badge instead when the status must stand out in a table.

Do not

  • Do not use a status dot as a button.
  • Do not pick tones by taste: failed is always the danger tone.