unslopkit

Components / Modals and sheets

Location and language picker

A tall modal for choosing where you are: a back link to the region, a large heading, a search field, and each place paired with its language.

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-carbon-dotcom-locale-modal">
<div class="bd"><div class="dlg" role="dialog" aria-modal="true" aria-labelledby="ukc-modal-carbon-dotcom-locale-modal-t">
  <div class="hdr">
    <button class="back" type="button"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 12H5M11 6l-6 6 6 6"/></svg> Europe <svg width="18" height="18" 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="M3 12h18M12 3c2.4 2.5 3.6 5.5 3.6 9s-1.2 6.5-3.6 9c-2.4-2.5-3.6-5.5-3.6-9S9.6 5.5 12 3z"/></svg></button>
    <h2 id="ukc-modal-carbon-dotcom-locale-modal-t">Choose your location</h2>
  </div>
  <button class="x" type="button" aria-label="Close"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button>
  <div class="search"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="6.5"/><path d="M16 16l4.5 4.5"/></svg><input type="search" placeholder="Search by location or language" aria-label="Search locations"></div>
  <ul class="list">
    <li><a href="#"><span>Ireland</span><span>English</span></a></li>
    <li><a href="#" class="is-hover"><span>Netherlands</span><span>Nederlands</span></a></li>
    <li><a href="#"><span>Netherlands</span><span>English</span></a></li>
    <li><a href="#"><span>Portugal</span><span>Português</span></a></li>
    <li><a href="#"><span>United Kingdom</span><span>English</span></a></li>
  </ul>
</div></div>
</div>

More modals and sheets

All 25
  • Status modal

  • 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

    Session timeout

  • Microphone permission

  • Shortcuts sheet

  • What's new pager

  • File preview