Components / Tooltips and popovers
Why it is disabled
A blocked button that stays focusable and explains itself with a short checklist of what is done and what is still missing.
Draft saved 2 min ago
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-disabled-reason">
<div class="foot">
<p class="saved">Draft saved 2 min ago</p>
<div class="acts">
<button type="button" class="sec">Save draft</button>
<span class="dr show">
<button type="button" class="pri" aria-disabled="true" aria-describedby="ukc-tooltip-disabled-reason-tip">Send invoice</button>
<span class="tip" role="tooltip" id="ukc-tooltip-disabled-reason-tip">
<span class="h">Before you can send</span>
<span class="ok"><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> Line items added</span>
<span class="no"><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 6l12 12M18 6L6 18"/></svg> Client email is missing</span>
<span class="no"><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 6l12 12M18 6L6 18"/></svg> No due date yet</span>
</span>
</span>
</div>
</div>
</div>
.ukc-tooltip-disabled-reason { 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-disabled-reason *, .ukc-tooltip-disabled-reason *::before, .ukc-tooltip-disabled-reason *::after { box-sizing: border-box; }
.ukc-tooltip-disabled-reason :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-tooltip-disabled-reason :where(ul, ol) { padding: 0; list-style: none; }
.ukc-tooltip-disabled-reason :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-tooltip-disabled-reason :where(a) { color: inherit; }
.ukc-tooltip-disabled-reason svg { flex: none; }
.ukc-tooltip-disabled-reason { padding-top: 128px; }
.ukc-tooltip-disabled-reason .foot { max-width: 380px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; padding-top: 14px; border-top: 1px solid var(--uk-line); }
.ukc-tooltip-disabled-reason .saved { font-size: 13px; color: var(--uk-muted); }
.ukc-tooltip-disabled-reason .acts { display: flex; gap: 8px; margin-left: auto; }
.ukc-tooltip-disabled-reason .sec, .ukc-tooltip-disabled-reason .pri { height: 38px; padding: 0 16px; border-radius: var(--uk-radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; }
.ukc-tooltip-disabled-reason .sec { border: var(--uk-border-width) solid var(--uk-line); background: var(--uk-paper); }
.ukc-tooltip-disabled-reason .pri { border: 0; background: var(--uk-accent); color: var(--uk-accent-ink); }
.ukc-tooltip-disabled-reason .pri[aria-disabled="true"] { background: var(--ink-soft); color: var(--uk-muted); cursor: not-allowed; }
.ukc-tooltip-disabled-reason .sec:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
.ukc-tooltip-disabled-reason .pri:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
.ukc-tooltip-disabled-reason .dr { position: relative; display: inline-flex; }
.ukc-tooltip-disabled-reason .tip { position: absolute; z-index: 2; right: 0; bottom: calc(100% + 11px); width: max-content; display: grid; gap: 5px; padding: 10px 14px 12px 12px; border: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-md), 8px); background: var(--uk-paper); box-shadow: var(--uk-shadow-float); font-size: 13px; line-height: 1.35; }
.ukc-tooltip-disabled-reason .tip::before { content: ""; position: absolute; right: 52px; bottom: calc(-5px - var(--uk-border-width) / 2); width: 10px; height: 10px; background: var(--uk-paper); border: inherit; border-top: 0; border-left: 0; border-radius: 0 0 1px 0; transform: rotate(45deg); }
.ukc-tooltip-disabled-reason .tip::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 11px; }
.ukc-tooltip-disabled-reason .h { margin-bottom: 2px; font-weight: 600; }
.ukc-tooltip-disabled-reason .ok, .ukc-tooltip-disabled-reason .no { display: flex; align-items: center; gap: 8px; }
.ukc-tooltip-disabled-reason .ok { color: var(--uk-muted); }
.ukc-tooltip-disabled-reason .ok svg { color: var(--uk-accent); }
.ukc-tooltip-disabled-reason .no svg { color: var(--uk-danger); }
.ukc-tooltip-disabled-reason .dr .tip { visibility: hidden; opacity: 0; transition: opacity var(--uk-motion-duration) var(--uk-motion-ease), visibility 0s linear var(--uk-motion-duration); }
.ukc-tooltip-disabled-reason .dr:hover .tip, .ukc-tooltip-disabled-reason .dr:focus-within .tip, .ukc-tooltip-disabled-reason .dr.show .tip { visibility: visible; opacity: 1; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .ukc-tooltip-disabled-reason .dr .tip { transition: none; } }
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.