unslopkit

Components / Modals and sheets

Session timeout

A warning that you are about to be signed out, with the time left drawn as a draining ring. Use it where a quiet screen must lock itself.

1:42left

Still there?

The patient portal signs you out after 15 quiet minutes, so nobody else at this screen can read your records. Your refill request for Dr. Okafor is saved as a draft.

Signing out at 2:47 pm

Drawn in your kit, Plain.Change the look

The code

Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.

<div class="ukc-modal-session-timeout">
<div class="bd"><div class="dlg" role="alertdialog" aria-modal="true" aria-labelledby="ukc-modal-session-timeout-t" aria-describedby="ukc-modal-session-timeout-d">
  <div class="top">
    <div class="dial" role="timer" aria-label="1 minute 42 seconds left">
      <svg viewBox="0 0 80 80" aria-hidden="true"><circle class="track" cx="40" cy="40" r="34"/><circle class="ticks" cx="40" cy="40" r="26" pathLength="120"/><circle class="left" cx="40" cy="40" r="34" pathLength="100" transform="rotate(-90 40 40)"/></svg>
      <span class="num">1:42</span><span class="unit">left</span>
    </div>
    <div class="txt">
      <h3 id="ukc-modal-session-timeout-t">Still there?</h3>
      <p id="ukc-modal-session-timeout-d">The patient portal signs you out after 15 quiet minutes, so nobody else at this screen can read your records. Your refill request for Dr. Okafor is saved as a draft.</p>
    </div>
  </div>
  <div class="row"><button class="btn pri" type="button">Stay signed in</button><button class="btn" type="button">Sign out now</button></div>
  <p class="when"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg> Signing out at 2:47 pm</p>
</div></div>
</div>

More modals and sheets

All 25
  • Microphone permission

  • Shortcuts sheet

  • What's new pager

  • File preview

  • Version conflict

  • Reading sheet