Components / Tooltips and popovers
Full name on overflow
File names cut short with an ellipsis. Hover or focus a row and the full name opens in place, with who added it and when.
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-truncate-reveal">
<ul class="files">
<li class="f"><a href="#" aria-describedby="ukc-tooltip-truncate-reveal-1"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H6v18h12V7z"/><path d="M14 3v4h4"/></svg><span class="nm">Alder-Lane-bathroom-before-demo.jpg</span></a><span class="sz">2.4 MB</span><span class="tip" role="tooltip" id="ukc-tooltip-truncate-reveal-1"><span class="full" aria-hidden="true">Alder-Lane-bathroom-before-demo.jpg</span><span class="meta">Added by Mara Reyes · Tue 12 Nov</span></span></li>
<li class="f show"><a href="#" aria-describedby="ukc-tooltip-truncate-reveal-2"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H6v18h12V7z"/><path d="M14 3v4h4"/></svg><span class="nm">42-Alder-Lane-electrical-certificate-signed-v2.pdf</span></a><span class="sz">812 KB</span><span class="tip" role="tooltip" id="ukc-tooltip-truncate-reveal-2"><span class="full" aria-hidden="true">42-Alder-Lane-electrical-certificate-signed-v2.pdf</span><span class="meta">Added by Dana Whitfield · Thu 14 Nov</span></span></li>
<li class="f"><a href="#" aria-describedby="ukc-tooltip-truncate-reveal-3"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H6v18h12V7z"/><path d="M14 3v4h4"/></svg><span class="nm">Materials-receipt-Birch-Street-November.pdf</span></a><span class="sz">96 KB</span><span class="tip" role="tooltip" id="ukc-tooltip-truncate-reveal-3"><span class="full" aria-hidden="true">Materials-receipt-Birch-Street-November.pdf</span><span class="meta">Added by Joel Okafor · Fri 15 Nov</span></span></li>
<li class="f"><a href="#" aria-describedby="ukc-tooltip-truncate-reveal-4"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H6v18h12V7z"/><path d="M14 3v4h4"/></svg><span class="nm">Floor-plan.pdf</span></a><span class="sz">1.1 MB</span><span class="tip" role="tooltip" id="ukc-tooltip-truncate-reveal-4"><span class="full" aria-hidden="true">Floor-plan.pdf</span><span class="meta">Added by Mara Reyes · Mon 4 Nov</span></span></li>
</ul>
</div>
.ukc-tooltip-truncate-reveal { 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-truncate-reveal *, .ukc-tooltip-truncate-reveal *::before, .ukc-tooltip-truncate-reveal *::after { box-sizing: border-box; }
.ukc-tooltip-truncate-reveal :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-tooltip-truncate-reveal :where(ul, ol) { padding: 0; list-style: none; }
.ukc-tooltip-truncate-reveal :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-tooltip-truncate-reveal :where(a) { color: inherit; }
.ukc-tooltip-truncate-reveal svg { flex: none; }
.ukc-tooltip-truncate-reveal .files { max-width: 300px; border-top: 1px solid var(--uk-line); }
.ukc-tooltip-truncate-reveal .f { position: relative; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--uk-line); }
.ukc-tooltip-truncate-reveal .f a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 4px 9px 8px; color: var(--uk-ink); font-size: 14px; line-height: 20px; text-decoration: none; }
.ukc-tooltip-truncate-reveal .f a svg { color: var(--uk-muted); }
.ukc-tooltip-truncate-reveal .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ukc-tooltip-truncate-reveal .sz { padding-right: 8px; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; color: var(--uk-muted); white-space: nowrap; }
.ukc-tooltip-truncate-reveal .f:hover, .ukc-tooltip-truncate-reveal .f:focus-within, .ukc-tooltip-truncate-reveal .f.show { background: var(--uk-surface); }
.ukc-tooltip-truncate-reveal .f a:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: -2px; }
.ukc-tooltip-truncate-reveal .tip { position: absolute; z-index: 2; top: calc(2px - var(--uk-border-width)); left: calc(26px - var(--uk-border-width)); width: max-content; max-width: calc(100% - 26px + var(--uk-border-width)); display: grid; gap: 2px; padding: 7px 10px 8px 8px; border: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-sm), 6px); background: var(--uk-paper); box-shadow: var(--uk-shadow-float); }
.ukc-tooltip-truncate-reveal .full { font-size: 14px; line-height: 20px; color: var(--uk-ink); overflow-wrap: anywhere; }
.ukc-tooltip-truncate-reveal .meta { font-size: 12px; line-height: 16px; color: var(--uk-muted); }
.ukc-tooltip-truncate-reveal .f .tip { visibility: hidden; opacity: 0; transition: opacity var(--uk-motion-duration) var(--uk-motion-ease), visibility 0s linear var(--uk-motion-duration); }
.ukc-tooltip-truncate-reveal .f:hover .tip, .ukc-tooltip-truncate-reveal .f:focus-within .tip, .ukc-tooltip-truncate-reveal .f.show .tip { visibility: visible; opacity: 1; transition-delay: 0s; }
.ukc-tooltip-truncate-reveal .files:has(.f:hover, .f:focus-within) .f.show:not(:hover, :focus-within) .tip { visibility: hidden; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ukc-tooltip-truncate-reveal .f .tip { 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.
- Spike saysFerns sulk in direct sun. Park this one a metre back from the window and mist it on Sundays.
Boston fern