unslopkit

Components / Modals and sheets

Version conflict

Two people edited the same thing. Both versions sit side by side with the lines that differ marked, and you pick the one to keep.

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-version-conflict">
<div class="bd"><div class="dlg" role="dialog" aria-modal="true" aria-labelledby="ukc-modal-version-conflict-t" aria-describedby="ukc-modal-version-conflict-d">
  <h3 id="ukc-modal-version-conflict-t">Two versions of this batch sheet</h3>
  <p class="lead" id="ukc-modal-version-conflict-d">You and Ines both changed <strong>Seeded rye, Thursday bake</strong> while the bakery wifi was down. Pick the one to keep.</p>
  <div class="pair" role="radiogroup" aria-label="Version to keep">
    <div class="ver">
      <label for="ukc-modal-version-conflict-a"><input id="ukc-modal-version-conflict-a" type="radio" name="ukc-modal-version-conflict-keep" checked><span><b>Your edit</b><small>This tablet, 6:12 am</small></span></label>
      <dl>
        <div><dt>Rye flour</dt><dd>1,000 g</dd></div>
        <div class="chg"><dt>Water</dt><dd>780 g</dd></div>
        <div><dt>Salt</dt><dd>20 g</dd></div>
        <div class="chg"><dt>Bulk rise</dt><dd>4 h 30</dd></div>
      </dl>
      <p class="fate keep"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg> Keeping this one</p><p class="fate drop">Goes to history</p>
    </div>
    <div class="ver">
      <label for="ukc-modal-version-conflict-b"><input id="ukc-modal-version-conflict-b" type="radio" name="ukc-modal-version-conflict-keep"><span><b>Ines Aguilar</b><small>Office laptop, 6:09 am</small></span></label>
      <dl>
        <div><dt>Rye flour</dt><dd>1,000 g</dd></div>
        <div class="chg"><dt>Water</dt><dd>740 g</dd></div>
        <div><dt>Salt</dt><dd>20 g</dd></div>
        <div class="chg"><dt>Bulk rise</dt><dd>5 h</dd></div>
      </dl>
      <p class="fate keep"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg> Keeping this one</p><p class="fate drop">Goes to history</p>
    </div>
  </div>
  <p class="key"><span class="mark" aria-hidden="true"></span> Marked lines differ. The version you drop stays in history for 30 days.</p>
  <div class="row"><button class="btn" type="button">Decide later</button><button class="btn pri" type="button">Keep selected</button></div>
</div></div>
</div>

More modals and sheets

All 25
  • Reading sheet

  • Booking review

  • Fenwick Yard Coworking

    No. 004417

    Notice of overstay

    Room
    4, the Greenhouse
    Booked until
    3:00 pm
    Left at
    3:40 pm
    • Ticked: Stayed past the booking
    • Ticked: Next group kept waiting
    • Not ticked: Whiteboard left full

    Overstay fee, 40 minutes$18.00

    Waived on its own if nobody had the room after you.

    Overstay ticket

  • Printer 2

    The Riso has run out of fluorescent pink. 212 of 500 zines are printed and the rest are waiting in the queue.

    Details
    drum 2    ink 0%
    job       zine-spring-v4.pdf
    sheets    212 / 500
    code      -192

    Old desktop error

  • Modal with flush buttons

  • Centered dialog