Components / Tooltips and popovers
Feature callout
An accent callout pointing at a new button, with a step count, a short title, and skip and next actions.
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-coachmark">
<div class="bar">
<p class="ttl">Invoices</p>
<button type="button" class="btn">Filter</button>
<div class="cm show">
<button type="button" class="btn" aria-describedby="ukc-tooltip-coachmark-text"><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="M12 16V4M7 9l5-5 5 5M4 20h16"/></svg> Export<span class="new" aria-hidden="true"></span></button>
<div class="card" role="dialog" aria-labelledby="ukc-tooltip-coachmark-title">
<p class="step">New · 1 of 3</p>
<h4 id="ukc-tooltip-coachmark-title">Export a whole month</h4>
<p id="ukc-tooltip-coachmark-text">Pick a date range and Halden bundles every invoice into one PDF for your accountant.</p>
<div class="acts"><button type="button" class="ghost">Skip tour</button><button type="button" class="next">Next</button></div>
</div>
</div>
</div>
</div>
.ukc-tooltip-coachmark { 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-coachmark *, .ukc-tooltip-coachmark *::before, .ukc-tooltip-coachmark *::after { box-sizing: border-box; }
.ukc-tooltip-coachmark :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-tooltip-coachmark :where(ul, ol) { padding: 0; list-style: none; }
.ukc-tooltip-coachmark :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-tooltip-coachmark :where(a) { color: inherit; }
.ukc-tooltip-coachmark svg { flex: none; }
.ukc-tooltip-coachmark { padding-bottom: 196px; }
.ukc-tooltip-coachmark .bar { max-width: 360px; display: flex; align-items: center; gap: 8px; }
.ukc-tooltip-coachmark .ttl { margin-right: auto; font-family: var(--uk-font-display, inherit); font-size: 19px; }
.ukc-tooltip-coachmark .btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: var(--uk-border-width) solid var(--uk-line); border-radius: var(--uk-radius-sm); background: var(--uk-paper); font-size: 14px; cursor: pointer; }
.ukc-tooltip-coachmark .btn:hover { background: var(--uk-surface); }
.ukc-tooltip-coachmark .btn:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
.ukc-tooltip-coachmark .new { position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border-radius: 999px; background: var(--uk-accent); box-shadow: 0 0 0 2px var(--uk-paper); }
.ukc-tooltip-coachmark .cm { position: relative; display: inline-flex; }
.ukc-tooltip-coachmark .card { position: absolute; z-index: 3; top: calc(100% + 12px); right: 0; width: 256px; display: grid; gap: 6px; padding: 16px; border-radius: min(var(--uk-radius-lg), 12px); background: var(--uk-accent); color: var(--uk-accent-ink); box-shadow: var(--uk-shadow-float); }
.ukc-tooltip-coachmark .card::before { content: ""; position: absolute; top: -6px; right: 36px; width: 12px; height: 12px; border-radius: 2px 0 0 0; background: var(--uk-accent); transform: rotate(45deg); }
.ukc-tooltip-coachmark .card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; }
.ukc-tooltip-coachmark .step { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--uk-accent-ink) 72%, var(--uk-accent)); }
.ukc-tooltip-coachmark h4 { font-family: var(--uk-font-display, inherit); font-size: 18px; font-weight: 600; line-height: 1.2; }
.ukc-tooltip-coachmark #ukc-tooltip-coachmark-text { font-size: 14px; line-height: 1.45; color: color-mix(in srgb, var(--uk-accent-ink) 90%, var(--uk-accent)); }
.ukc-tooltip-coachmark .acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.ukc-tooltip-coachmark .acts button { height: 30px; padding: 0 12px; border: 0; border-radius: var(--uk-radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; }
.ukc-tooltip-coachmark .ghost { background: transparent; color: var(--uk-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.ukc-tooltip-coachmark .next { background: var(--uk-accent-ink); color: var(--uk-accent); }
.ukc-tooltip-coachmark .acts button:focus-visible { outline: 2px solid var(--uk-accent-ink); outline-offset: 2px; }
.ukc-tooltip-coachmark .cm .card { visibility: hidden; opacity: 0; transition: opacity var(--uk-motion-duration) var(--uk-motion-ease), visibility 0s linear var(--uk-motion-duration); }
.ukc-tooltip-coachmark .cm:hover .card, .ukc-tooltip-coachmark .cm:focus-within .card, .ukc-tooltip-coachmark .cm.show .card { visibility: visible; opacity: 1; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .ukc-tooltip-coachmark .cm .card { transition: none; } }
More tooltips and popovers
All 26Draft saved 2 min ago
Before you can send Line items added Client email is missing No due date yetPrinted invoices
Paper size and margins for the PDF.
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.
- 06:55MV Kittiwake
Chapter 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.