unslopkit

Components / Alerts and banners

Unsaved changes bar

A floating bar that counts what has not been saved yet and offers to save or throw it away. The dashed edge is the hint that nothing is final.

3 unsaved changesSpring dinner menu, edited 2 minutes ago

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-alert-unsaved-bar">
<div class="ub" role="status">
  <span class="mark" aria-hidden="true"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20l1-4.5L16.5 4 20 7.5 8.5 19z"/><path d="M14 6.5l3.5 3.5"/></svg></span>
  <p><strong>3 unsaved changes</strong><span>Spring dinner menu, edited 2 minutes ago</span></p>
  <div class="acts"><button class="drop" type="button">Discard</button><button class="save" type="button">Save menu</button></div>
</div>
</div>

More alerts and banners

All 26
  • Error with details

  • Skerry LineHarbour office, Pier 2

    Fares change on 1 April

    Fuel and harbour dues went up this winter, so most tickets rise by about six percent. Anything bought before 1 April is good at the old fare all season.

    Return fares, Skerry to Holm
    TicketUntil 31 MarchFrom 1 April
    Foot passenger£12.60£13.40
    Car and driver£46.00£48.80
    Bicycle£4.00£4.00 no change

    Ines Halvorsen Harbour master

    Buy tickets at the current fare

    Price change letter

  • Cancelled your Thursday 7:30 AM reformer class

    Undo with a timer

  • Important

    Inspections are paused on 24 and 25 December.

    Book before 20 December to be seen this year.

    Notification banner

  • Warning You can be fined up to $5,000 if you start work without a permit.

    Warning text

  • Error summary