unslopkit

Components / Modals and sheets

Microphone permission

A short ask before the app listens: what it hears, when, and three plain answers stacked from most to least access.

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-permission-prompt">
<div class="bd"><div class="dlg" role="dialog" aria-modal="true" aria-labelledby="ukc-modal-permission-prompt-t" aria-describedby="ukc-modal-permission-prompt-d">
  <div class="tile" aria-hidden="true"><svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="3" width="6" height="11" rx="3"/><path d="M5 11a7 7 0 0 0 14 0M12 18v3M8.5 21h7"/></svg><span class="lv"><i></i><i></i><i></i><i></i><i></i></span></div>
  <h3 id="ukc-modal-permission-prompt-t">Let Tapehouse use the microphone?</h3>
  <p id="ukc-modal-permission-prompt-d">It listens only while the red light is on, to record takes and tune the room. Nothing leaves this laptop until you bounce a mix.</p>
  <ul class="acts">
    <li><button class="btn pri" type="button">Allow while recording</button></li>
    <li><button class="btn" type="button">Allow for this session only</button></li>
    <li><button class="btn" type="button">Don't allow</button></li>
  </ul>
  <p class="hint">You can change this later in Settings, under Inputs.</p>
</div></div>
</div>

More modals and sheets

All 25
  • Shortcuts sheet

  • What's new pager

  • File preview

  • Version conflict

  • Reading sheet

  • Booking review