Components / Tooltips and popovers
View menu with checks
A dropdown with rows you can tick and a pick-one group, each choice marked on the left and its shortcut on the right.
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-basecoat-view-menu">
<div class="anchor">
<button class="trig" type="button" aria-haspopup="menu" aria-expanded="true" aria-controls="ukc-bc-view-menu">View <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="M6 9l6 6 6-6"/></svg></button>
<div class="mnu" role="menu" id="ukc-bc-view-menu" aria-label="View options">
<div role="group" aria-labelledby="ukc-bc-view-show">
<div class="hd" role="heading" aria-level="3" id="ukc-bc-view-show">Show</div>
<div role="menuitemcheckbox" aria-checked="true" tabindex="-1"><span class="ind" aria-hidden="true"><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></span>Crew column<kbd>C</kbd></div>
<div role="menuitemcheckbox" aria-checked="true" tabindex="-1"><span class="ind" aria-hidden="true"><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></span>Due dates<kbd>D</kbd></div>
<div role="menuitemcheckbox" aria-checked="false" tabindex="-1"><span class="ind" aria-hidden="true"><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></span>Archived jobs</div>
</div>
<hr role="separator">
<div role="group" aria-labelledby="ukc-bc-view-sort">
<div class="hd" role="heading" aria-level="3" id="ukc-bc-view-sort">Sort by</div>
<div role="menuitemradio" aria-checked="false" tabindex="-1"><span class="ind" aria-hidden="true"><i></i></span>Customer</div>
<div role="menuitemradio" aria-checked="true" tabindex="-1"><span class="ind" aria-hidden="true"><i></i></span>Due date</div>
<div role="menuitemradio" aria-checked="false" aria-disabled="true" tabindex="-1"><span class="ind" aria-hidden="true"><i></i></span>Amount owed</div>
</div>
</div>
</div>
</div>
.ukc-tooltip-basecoat-view-menu { 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-basecoat-view-menu *, .ukc-tooltip-basecoat-view-menu *::before, .ukc-tooltip-basecoat-view-menu *::after { box-sizing: border-box; }
.ukc-tooltip-basecoat-view-menu :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-tooltip-basecoat-view-menu :where(ul, ol) { padding: 0; list-style: none; }
.ukc-tooltip-basecoat-view-menu :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-tooltip-basecoat-view-menu :where(a) { color: inherit; }
.ukc-tooltip-basecoat-view-menu svg { flex: none; }
.ukc-tooltip-basecoat-view-menu .anchor { position: relative; width: 260px; height: 296px; }
.ukc-tooltip-basecoat-view-menu .trig { 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-md); background: var(--uk-paper); font-size: 14px; font-weight: 600; cursor: pointer; }
.ukc-tooltip-basecoat-view-menu .mnu { position: absolute; top: 42px; left: 0; width: 240px; padding: 4px; border: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-lg), 14px); background: var(--uk-paper); box-shadow: var(--uk-shadow-float); }
.ukc-tooltip-basecoat-view-menu .hd { padding: 6px 8px 4px; font-size: 12px; font-weight: 600; color: var(--uk-muted); }
.ukc-tooltip-basecoat-view-menu [role^="menuitem"] { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: min(var(--uk-radius-sm), 8px); font-size: 14px; cursor: default; }
.ukc-tooltip-basecoat-view-menu [role^="menuitem"]:not([aria-disabled="true"]):hover, .ukc-tooltip-basecoat-view-menu [role^="menuitem"]:focus-visible { background: var(--ink-soft); outline: none; }
.ukc-tooltip-basecoat-view-menu [aria-checked="false"] .ind { visibility: hidden; }
.ukc-tooltip-basecoat-view-menu [aria-disabled="true"] { opacity: 0.5; }
.ukc-tooltip-basecoat-view-menu .ind { display: grid; place-items: center; }
.ukc-tooltip-basecoat-view-menu .ind i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ukc-tooltip-basecoat-view-menu kbd { font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 11px; color: var(--uk-muted); }
.ukc-tooltip-basecoat-view-menu hr { margin: 4px -4px; border: 0; border-top: var(--uk-border-width) solid var(--uk-line); }
.ukc-tooltip-basecoat-view-menu .trig:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
More tooltips and popovers
All 26Printed 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.
- 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