Components / Tooltips and popovers
Speech bubble helper
A drawn character whose advice pops up in a comic speech bubble when you hover or focus it. For friendly tips in a shop or a first run.
Spike saysFerns sulk in direct sun. Park this one a metre back from the window and mist it on Sundays.
Boston fern
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-speech-bubble">
<div class="shelf">
<span class="helper show">
<button type="button" class="spike" aria-label="Spike's tip for this plant" aria-describedby="ukc-tooltip-speech-bubble-tip"><svg width="56" height="66" viewBox="0 0 56 66" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M22 44V15a6 6 0 0 1 12 0v29"/><path d="M22 31h-5a5 5 0 0 1-5-5v-5"/><path d="M34 35h5a5 5 0 0 0 5-5v-7"/><path d="M13 44h30l-3 18H16z"/><path d="M26 21h.01M31 21h.01"/><path d="M26 26c1.5 1.5 3.5 1.5 5 0"/></svg></button>
<span class="bubble" role="tooltip" id="ukc-tooltip-speech-bubble-tip"><b>Spike says</b>Ferns sulk in direct sun. Park this one a metre back from the window and mist it on Sundays.</span>
</span>
<div class="item"><p class="nm">Boston fern</p><p class="meta">14 cm pot · $18 · 6 in the shop</p></div>
</div>
</div>
.ukc-tooltip-speech-bubble { 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-speech-bubble *, .ukc-tooltip-speech-bubble *::before, .ukc-tooltip-speech-bubble *::after { box-sizing: border-box; }
.ukc-tooltip-speech-bubble :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-tooltip-speech-bubble :where(ul, ol) { padding: 0; list-style: none; }
.ukc-tooltip-speech-bubble :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-tooltip-speech-bubble :where(a) { color: inherit; }
.ukc-tooltip-speech-bubble svg { flex: none; }
.ukc-tooltip-speech-bubble { padding-top: 124px; }
.ukc-tooltip-speech-bubble .shelf { max-width: 340px; display: flex; align-items: flex-end; gap: 14px; padding-bottom: 8px; border-bottom: 3px solid var(--uk-ink); }
.ukc-tooltip-speech-bubble .helper { position: relative; flex: none; display: inline-flex; }
.ukc-tooltip-speech-bubble .spike { display: grid; padding: 2px 4px 0; border: 0; border-radius: min(var(--uk-radius-sm), 8px); background: none; color: var(--uk-ink); cursor: help; transform-origin: 50% 100%; transition: transform var(--uk-motion-duration) var(--uk-motion-ease); }
.ukc-tooltip-speech-bubble .spike:hover, .ukc-tooltip-speech-bubble .helper:focus-within .spike, .ukc-tooltip-speech-bubble .helper.show .spike { transform: rotate(-5deg); }
.ukc-tooltip-speech-bubble .spike:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
.ukc-tooltip-speech-bubble .bubble { position: absolute; z-index: 2; bottom: calc(100% + 16px); left: 0; width: max-content; max-width: 248px; padding: 10px 14px 12px; border: 2px solid var(--uk-ink); border-radius: min(var(--uk-radius-lg), 18px); background: var(--uk-paper); font-size: 14px; line-height: 1.45; }
.ukc-tooltip-speech-bubble .bubble::after { content: ""; position: absolute; left: 24px; bottom: -9px; width: 14px; height: 14px; border: solid var(--uk-ink); border-width: 0 2px 2px 0; background: var(--uk-paper); transform: skewX(18deg) rotate(45deg); }
.ukc-tooltip-speech-bubble .bubble b { display: block; font-family: var(--uk-font-display, inherit); font-size: 16px; }
.ukc-tooltip-speech-bubble .item { padding-bottom: 4px; }
.ukc-tooltip-speech-bubble .nm { font-family: var(--uk-font-display, inherit); font-size: 19px; font-weight: 600; line-height: 1.2; }
.ukc-tooltip-speech-bubble .meta { font-size: 13px; color: var(--uk-muted); }
.ukc-tooltip-speech-bubble .helper .bubble { visibility: hidden; opacity: 0; transition: opacity var(--uk-motion-duration) var(--uk-motion-ease), visibility 0s linear var(--uk-motion-duration); }
.ukc-tooltip-speech-bubble .helper:hover .bubble, .ukc-tooltip-speech-bubble .helper:focus-within .bubble, .ukc-tooltip-speech-bubble .helper.show .bubble { visibility: visible; opacity: 1; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .ukc-tooltip-speech-bubble .helper .bubble { transition: none; } }
@media (prefers-reduced-motion: reduce) { .ukc-tooltip-speech-bubble .spike { transition: none; } }
More tooltips and popovers
All 26- 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.
Lane rates per mile, week 48 Lane Fuel Rate Reno to Boise $0.42 $2.10 Reno to Fresno $0.42 Ines Cabral Tue 24 NovUp 30 cents. Chain controls on Donner Pass add about two hours each way. Reno to Salt Lake $0.47 Marek Dvorak Mon 23 NovHeld flat. Two carriers still want backhauls out of Utah. Reno to Portland $0.44 $2.30