@Dana WhitfieldDana WhitfieldElectrician · Crew B At Birch Street until 4 pm Usually replies within an hour 14 jobs with your crew can you check the panel before Friday's inspection?
Components / Tooltips and popovers
Popover with header
A bordered popover with a titled header, a body, and an outlined arrow. For a few details about one item without leaving the page.
Thursday 14 Nov
Site visit · 42 Alder Lane
Bring the moisture meter. The client saw damp behind the back bedroom wall.
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-tabler-popover">
<div class="day">
<p class="k">Thursday 14 Nov</p>
<button type="button" class="ev quiet"><span class="time">7:00</span>Materials pickup</button>
<div class="pw show">
<button type="button" class="ev" aria-describedby="ukc-tooltip-tabler-popover-visit"><span class="time">8:00</span>Site visit, Alder Lane</button>
<div class="pv" role="tooltip" id="ukc-tooltip-tabler-popover-visit">
<span class="arrow"></span>
<p class="hd">Site visit · 42 Alder Lane</p>
<div class="bd">
<p class="meta"><span><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"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg> 8:00 to 10:30</span><span><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"><circle cx="12" cy="8" r="4"/><path d="M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6"/></svg> Dana Whitfield</span></p>
<p>Bring the moisture meter. The client saw damp behind the back bedroom wall.</p>
</div>
</div>
</div>
</div>
</div>
.ukc-tooltip-tabler-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-tabler-popover *, .ukc-tooltip-tabler-popover *::before, .ukc-tooltip-tabler-popover *::after { box-sizing: border-box; }
.ukc-tooltip-tabler-popover :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-tooltip-tabler-popover :where(ul, ol) { padding: 0; list-style: none; }
.ukc-tooltip-tabler-popover :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-tooltip-tabler-popover :where(a) { color: inherit; }
.ukc-tooltip-tabler-popover svg { flex: none; }
.ukc-tooltip-tabler-popover { padding-bottom: 172px; }
.ukc-tooltip-tabler-popover .day { display: grid; justify-items: start; gap: 8px; }
.ukc-tooltip-tabler-popover .k { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--uk-muted); }
.ukc-tooltip-tabler-popover .pw { position: relative; display: inline-block; }
.ukc-tooltip-tabler-popover .ev { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 10px; border: 0; border-left: 3px solid var(--uk-accent); border-radius: min(var(--uk-radius-sm), 4px); background: var(--tint); color: var(--uk-ink); font-size: 14px; text-align: left; cursor: pointer; }
.ukc-tooltip-tabler-popover .ev.quiet { border-left-color: var(--line-strong); background: var(--ink-soft); }
.ukc-tooltip-tabler-popover .ev .time { font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; color: var(--accent-deep); }
.ukc-tooltip-tabler-popover .ev.quiet .time { color: var(--uk-muted); }
.ukc-tooltip-tabler-popover .ev:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
.ukc-tooltip-tabler-popover .pv { position: absolute; z-index: 3; top: calc(100% + 8px + var(--uk-border-width)); left: 0; width: 252px; font-size: 14px; line-height: 1.45; background: var(--uk-paper); border: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-lg), 10px); box-shadow: var(--uk-shadow-float); }
.ukc-tooltip-tabler-popover .pv::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; }
.ukc-tooltip-tabler-popover .arrow { position: absolute; top: calc(-8px - var(--uk-border-width)); left: 16px; width: 16px; height: 8px; }
.ukc-tooltip-tabler-popover .arrow::before, .ukc-tooltip-tabler-popover .arrow::after { content: ""; position: absolute; left: 0; border: 0 solid transparent; border-width: 0 8px 8px; }
.ukc-tooltip-tabler-popover .arrow::before { top: 0; border-bottom-color: var(--uk-line); }
.ukc-tooltip-tabler-popover .arrow::after { top: var(--uk-border-width); border-bottom-color: var(--uk-paper); }
.ukc-tooltip-tabler-popover .hd { padding: 8px 16px; border-bottom: var(--uk-border-width) solid var(--uk-line); font-size: 15px; font-weight: 600; }
.ukc-tooltip-tabler-popover .bd { display: grid; gap: 8px; padding: 10px 16px 14px; }
.ukc-tooltip-tabler-popover .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--uk-muted); }
.ukc-tooltip-tabler-popover .meta span { display: inline-flex; align-items: center; gap: 6px; }
.ukc-tooltip-tabler-popover .pw .pv { visibility: hidden; opacity: 0; transition: opacity var(--uk-motion-duration) var(--uk-motion-ease), visibility 0s linear var(--uk-motion-duration); }
.ukc-tooltip-tabler-popover .pw:hover .pv, .ukc-tooltip-tabler-popover .pw:focus-within .pv, .ukc-tooltip-tabler-popover .pw.show .pv { visibility: visible; opacity: 1; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .ukc-tooltip-tabler-popover .pw .pv { transition: none; } }
More tooltips and popovers
All 26- CopyCopied
Format
HAL-0000Four digits after the dash. It is printed top right on every job sheet.
Mara Reyes2h ago