@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
Toolbar with shortcuts
Icon buttons that show their name and keyboard shortcut on hover or focus. Tips at either end line up with the toolbar edge.
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-toolbar-keys">
<div class="ed">
<div class="tb" role="toolbar" aria-label="Note formatting">
<span class="tk first"><button type="button" aria-label="Bold" aria-pressed="true" aria-keyshortcuts="Control+B" aria-describedby="ukc-tooltip-toolbar-keys-bold"><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="M7 5h6a3.5 3.5 0 0 1 0 7H7zM7 12h7a3.5 3.5 0 0 1 0 7H7z"/></svg></button><span class="tip" role="tooltip" id="ukc-tooltip-toolbar-keys-bold">Bold <kbd>Ctrl</kbd><kbd>B</kbd></span></span>
<span class="tk"><button type="button" aria-label="Italic" aria-pressed="false" aria-keyshortcuts="Control+I" aria-describedby="ukc-tooltip-toolbar-keys-italic"><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="M10 5h8M6 19h8M14 5l-4 14"/></svg></button><span class="tip" role="tooltip" id="ukc-tooltip-toolbar-keys-italic">Italic <kbd>Ctrl</kbd><kbd>I</kbd></span></span>
<span class="sep" aria-hidden="true"></span>
<span class="tk"><button type="button" aria-label="Bulleted list" aria-keyshortcuts="Control+Shift+8" aria-describedby="ukc-tooltip-toolbar-keys-list"><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="M9 7h11M9 12h11M9 17h11"/><circle cx="4.5" cy="7" r="1"/><circle cx="4.5" cy="12" r="1"/><circle cx="4.5" cy="17" r="1"/></svg></button><span class="tip" role="tooltip" id="ukc-tooltip-toolbar-keys-list">List <kbd>Ctrl</kbd><kbd>Shift</kbd><kbd>8</kbd></span></span>
<span class="tk show"><button type="button" aria-label="Add link" aria-keyshortcuts="Control+K" aria-describedby="ukc-tooltip-toolbar-keys-link"><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="M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1"/><path d="M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1"/></svg></button><span class="tip" role="tooltip" id="ukc-tooltip-toolbar-keys-link">Add link <kbd>Ctrl</kbd><kbd>K</kbd></span></span>
<span class="sep" aria-hidden="true"></span>
<span class="tk last"><button type="button" aria-label="Attach photo" aria-describedby="ukc-tooltip-toolbar-keys-photo"><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="M20 11.5l-8.2 8.2a5 5 0 0 1-7.1-7.1l8.5-8.5a3.3 3.3 0 0 1 4.7 4.7l-8.3 8.3a1.7 1.7 0 0 1-2.4-2.4L15 7"/></svg></button><span class="tip" role="tooltip" id="ukc-tooltip-toolbar-keys-photo">Attach photo</span></span>
</div>
<p class="body"><strong>Replaced two joists</strong> under the bathroom floor. Photos of the rot are in the <a href="#">Alder Lane folder</a>, and the client has seen them.</p>
</div>
</div>
.ukc-tooltip-toolbar-keys { 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-toolbar-keys *, .ukc-tooltip-toolbar-keys *::before, .ukc-tooltip-toolbar-keys *::after { box-sizing: border-box; }
.ukc-tooltip-toolbar-keys :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-tooltip-toolbar-keys :where(ul, ol) { padding: 0; list-style: none; }
.ukc-tooltip-toolbar-keys :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-tooltip-toolbar-keys :where(a) { color: inherit; }
.ukc-tooltip-toolbar-keys svg { flex: none; }
.ukc-tooltip-toolbar-keys .ed { max-width: 340px; border: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-lg), 14px); background: var(--uk-paper); }
.ukc-tooltip-toolbar-keys .tb { display: flex; align-items: center; gap: 2px; padding: 6px; border-bottom: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-lg), 14px) min(var(--uk-radius-lg), 14px) 0 0; background: var(--uk-surface); }
.ukc-tooltip-toolbar-keys .sep { width: 1px; height: 20px; margin: 0 5px; background: var(--uk-line); }
.ukc-tooltip-toolbar-keys .tk { position: relative; display: inline-flex; }
.ukc-tooltip-toolbar-keys .tk > button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--uk-radius-sm); background: transparent; color: var(--uk-ink); cursor: pointer; }
.ukc-tooltip-toolbar-keys .tk > button:hover, .ukc-tooltip-toolbar-keys .tk.show > button { background: var(--ink-soft); }
.ukc-tooltip-toolbar-keys .tb:has(.tk:hover, .tk:focus-within) .tk.show:not(:hover, :focus-within) > button { background: transparent; }
.ukc-tooltip-toolbar-keys .tk > button[aria-pressed="true"] { background: var(--tint-strong); color: var(--accent-deep); }
.ukc-tooltip-toolbar-keys .tk > button:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 1px; }
.ukc-tooltip-toolbar-keys .tip { position: absolute; z-index: 3; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 3px; padding: 4px 5px 4px 9px; border-radius: min(var(--uk-radius-sm), 5px); background: var(--uk-ink); color: var(--uk-paper); font-size: 12.5px; line-height: 18px; white-space: nowrap; }
.ukc-tooltip-toolbar-keys .tip::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 8px; }
.ukc-tooltip-toolbar-keys .tk.first .tip { left: 0; transform: none; }
.ukc-tooltip-toolbar-keys .tk.last .tip { left: auto; right: 0; transform: none; padding-right: 9px; }
.ukc-tooltip-toolbar-keys kbd { min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 4px; border: 1px solid color-mix(in srgb, var(--uk-paper) 28%, transparent); border-radius: 3px; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 10.5px; color: color-mix(in srgb, var(--uk-paper) 82%, var(--uk-ink)); }
.ukc-tooltip-toolbar-keys kbd:first-of-type { margin-left: 5px; }
.ukc-tooltip-toolbar-keys .body { min-height: 92px; padding: 14px 16px 18px; font-size: 14px; line-height: 1.6; }
.ukc-tooltip-toolbar-keys .body a { color: var(--uk-accent); text-underline-offset: 3px; }
.ukc-tooltip-toolbar-keys .tk .tip { visibility: hidden; opacity: 0; transition: opacity var(--uk-motion-duration) var(--uk-motion-ease), visibility 0s linear var(--uk-motion-duration); }
.ukc-tooltip-toolbar-keys .tk:hover .tip, .ukc-tooltip-toolbar-keys .tk:focus-within .tip, .ukc-tooltip-toolbar-keys .tk.show .tip { visibility: visible; opacity: 1; transition-delay: 0s; }
.ukc-tooltip-toolbar-keys .tb:has(.tk:hover, .tk:focus-within) .tk.show:not(:hover, :focus-within) .tip { visibility: hidden; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ukc-tooltip-toolbar-keys .tk .tip { 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 Draft saved 2 min ago
Before you can send Line items added Client email is missing No due date yet