Components / Tooltips and popovers
Confirm popover
A small popover that opens from a remove button, says what will happen, and asks once. Lighter than a modal for a single row.
Saturday · Port Arlen to Skerry
- 06:55MV Kittiwake
Remove the 06:55 sailing?
Nobody is booked on it yet.
- 07:40MV Sandpiper
Remove the 07:40 sailing?
14 booked passengers move to the 08:25 and get a text.
- 08:25MV Kittiwake
Remove the 08:25 sailing?
9 booked passengers move to the 09:10 and get a text.
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-tooltip-confirm-popover">
<div class="tt">
<p class="k">Saturday · Port Arlen to Skerry</p>
<ul class="sail">
<li><span class="tm">06:55</span><span class="bt">MV Kittiwake</span><details name="ukc-tooltip-confirm-popover"><summary aria-label="Remove the 06:55 sailing"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v5M14 11v5"/></svg></summary><div class="pop" role="group" aria-labelledby="ukc-tooltip-confirm-popover-0655"><p class="q" id="ukc-tooltip-confirm-popover-0655">Remove the 06:55 sailing?</p><p class="why">Nobody is booked on it yet.</p><div class="acts"><button type="button" class="keep">Keep it</button><button type="button" class="rm"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v5M14 11v5"/></svg> Remove</button></div></div></details></li>
<li><span class="tm">07:40</span><span class="bt">MV Sandpiper</span><details name="ukc-tooltip-confirm-popover" open><summary aria-label="Remove the 07:40 sailing"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v5M14 11v5"/></svg></summary><div class="pop" role="group" aria-labelledby="ukc-tooltip-confirm-popover-0740"><p class="q" id="ukc-tooltip-confirm-popover-0740">Remove the 07:40 sailing?</p><p class="why">14 booked passengers move to the 08:25 and get a text.</p><div class="acts"><button type="button" class="keep">Keep it</button><button type="button" class="rm"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v5M14 11v5"/></svg> Remove</button></div></div></details></li>
<li><span class="tm">08:25</span><span class="bt">MV Kittiwake</span><details name="ukc-tooltip-confirm-popover"><summary aria-label="Remove the 08:25 sailing"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v5M14 11v5"/></svg></summary><div class="pop" role="group" aria-labelledby="ukc-tooltip-confirm-popover-0825"><p class="q" id="ukc-tooltip-confirm-popover-0825">Remove the 08:25 sailing?</p><p class="why">9 booked passengers move to the 09:10 and get a text.</p><div class="acts"><button type="button" class="keep">Keep it</button><button type="button" class="rm"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v5M14 11v5"/></svg> Remove</button></div></div></details></li>
</ul>
</div>
</div>
.ukc-tooltip-confirm-popover { position: relative; font-family: var(--uk-font-body, system-ui, sans-serif); color: var(--uk-ink); font-size: 15px; line-height: 1.5;
--tint: color-mix(in srgb, var(--uk-accent) 12%, var(--uk-paper));
--tint-strong: color-mix(in srgb, var(--uk-accent) 22%, var(--uk-paper));
--accent-deep: color-mix(in srgb, var(--uk-accent) 72%, black);
--ink-soft: color-mix(in srgb, var(--uk-ink) 8%, var(--uk-paper));
--line-strong: color-mix(in srgb, var(--uk-ink) 32%, var(--uk-paper));
--danger-tint: color-mix(in srgb, var(--uk-danger) 12%, var(--uk-paper));
--high-tint: color-mix(in srgb, var(--uk-highlight) 28%, var(--uk-paper)); }
.ukc-tooltip-confirm-popover *, .ukc-tooltip-confirm-popover *::before, .ukc-tooltip-confirm-popover *::after { box-sizing: border-box; }
.ukc-tooltip-confirm-popover :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-tooltip-confirm-popover :where(ul, ol) { padding: 0; list-style: none; }
.ukc-tooltip-confirm-popover :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-tooltip-confirm-popover :where(a) { color: inherit; }
.ukc-tooltip-confirm-popover svg { flex: none; }
.ukc-tooltip-confirm-popover { padding-bottom: 104px; }
.ukc-tooltip-confirm-popover .tt { max-width: 340px; display: grid; gap: 8px; }
.ukc-tooltip-confirm-popover .k { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--uk-muted); }
.ukc-tooltip-confirm-popover .sail { border-top: 1px solid var(--uk-line); }
.ukc-tooltip-confirm-popover .sail li { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 6px 0 6px 4px; border-bottom: 1px solid var(--uk-line); }
.ukc-tooltip-confirm-popover .tm { font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 14px; font-variant-numeric: tabular-nums; }
.ukc-tooltip-confirm-popover .bt { min-width: 0; font-size: 14px; color: var(--uk-muted); }
.ukc-tooltip-confirm-popover summary { width: 32px; height: 32px; display: grid; place-items: center; list-style: none; border-radius: var(--uk-radius-sm); color: var(--uk-muted); cursor: pointer; }
.ukc-tooltip-confirm-popover summary::-webkit-details-marker { display: none; }
.ukc-tooltip-confirm-popover summary:hover { background: var(--ink-soft); color: var(--uk-ink); }
.ukc-tooltip-confirm-popover details[open] summary { background: var(--danger-tint); color: var(--uk-danger); box-shadow: inset 0 0 0 1px var(--uk-danger); }
.ukc-tooltip-confirm-popover summary:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
.ukc-tooltip-confirm-popover .pop { position: absolute; z-index: 3; top: calc(100% + 5px); right: 0; width: min(264px, 100%); display: grid; gap: 4px; padding: 14px; border: var(--uk-border-width) solid var(--line-strong); border-radius: min(var(--uk-radius-lg), 12px); background: var(--uk-paper); box-shadow: var(--uk-shadow-float); }
.ukc-tooltip-confirm-popover .pop::before { content: ""; position: absolute; top: calc(-5px - var(--uk-border-width) / 2); right: 11px; width: 10px; height: 10px; background: var(--uk-paper); border: inherit; border-right: 0; border-bottom: 0; border-radius: 1px 0 0 0; transform: rotate(45deg); }
.ukc-tooltip-confirm-popover .q { font-size: 15px; font-weight: 600; }
.ukc-tooltip-confirm-popover .why { font-size: 13px; color: var(--uk-muted); }
.ukc-tooltip-confirm-popover .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.ukc-tooltip-confirm-popover .acts button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--uk-radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; }
.ukc-tooltip-confirm-popover .keep { border: var(--uk-border-width) solid var(--uk-line); background: var(--uk-paper); }
.ukc-tooltip-confirm-popover .rm { border: 1px solid var(--uk-danger); background: var(--danger-tint); color: var(--uk-danger); }
.ukc-tooltip-confirm-popover .acts button:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
More tooltips and popovers
All 26Chapter 4 · The oil years
The lamp at Ness Point burned colza oil until 1871,Pressed from rapeseed. It smoked less than whale oil and cost about a third as much.Keeper's log, Ness Point, March 1869 when the keepers changed to paraffin and the weekly ration fell from nine gallons to five.
- Spike saysFerns sulk in direct sun. Park this one a metre back from the window and mist it on Sundays.
Boston fern
- Tall mug$28 · 6 left Bud vase$34 · 3 left Noodle bowl$42 · 2 left
Autumn firing, ash glaze. Point at a dot for the price. Loaves sold per hour - Today
- Last Saturday
- 7:00 to 8:00Today12Last Sat102 more than last week
- 8:00 to 9:00Today31Last Sat265 more than last week
- 9:00 to 10:00Today44Last Sat359 more than last week
- 10:00 to 11:00Today38Last Sat413 fewer than last week
- 11:00 to 12:00Today52Last Sat4012 more than last week
- 12:00 to 13:00Today47Last Sat3611 more than last week
- 13:00 to 14:00Today29Last Sat301 fewer than last week
- 14:00 to 15:00Today18Last Sat224 fewer than last week
Marsh Road Velo · Thursday note
Clocks went back, so we roll out at 8:30 sharp. This Sunday is the Old Quarry LoopMmarshroadvelo.ccOld Quarry Loop62 km840 m upCafe at km 38, ridden anticlockwise, with the stop at Hollin Bridge.