unslopkit

Components / Tooltips and popovers

Four placements

Single-line dark tips with a small triangle, shown above, right of, below, or left of the button that owns them.

Shows above Shows to the right Shows to the left Shows below
Drawn in your kit, Plain.Change the look

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-uswds-tooltip">
<div class="pad">
  <span class="tt t show"><button type="button" class="btn" aria-describedby="ukc-tooltip-uswds-tooltip-top">Top</button><span class="tip top" role="tooltip" id="ukc-tooltip-uswds-tooltip-top">Shows above</span></span>
  <span class="tt r"><button type="button" class="btn" aria-describedby="ukc-tooltip-uswds-tooltip-right">Right</button><span class="tip right" role="tooltip" id="ukc-tooltip-uswds-tooltip-right">Shows to the right</span></span>
  <span class="tt l"><button type="button" class="btn" aria-describedby="ukc-tooltip-uswds-tooltip-left">Left</button><span class="tip left" role="tooltip" id="ukc-tooltip-uswds-tooltip-left">Shows to the left</span></span>
  <span class="tt b"><button type="button" class="btn" aria-describedby="ukc-tooltip-uswds-tooltip-bottom">Bottom</button><span class="tip bottom" role="tooltip" id="ukc-tooltip-uswds-tooltip-bottom">Shows below</span></span>
</div>
</div>

More tooltips and popovers

All 26
  • Hours logged189 hWeek 46
    1. Monday31 hours
    2. Tuesday38 hours
    3. Wednesday27 hours
    4. Thursday42 hours
    5. Friday35 hours
    6. Saturday12 hours
    7. Sunday4 hours

    Chart value tips

  • Crew

    • Mara Reyes · Site lead
    • Dana Whitfield · Electrician
    • Joel Okafor · Carpenter
    • Kim Tran · Apprentice
    • Ana SilvaTom BeckerLee Park

    Avatar name tips

  • Thursday 14 Nov

    Popover with header

  • Replaced two joists under the bathroom floor. Photos of the rot are in the Alder Lane folder, and the client has seen them.

    Toolbar with shortcuts

  • Copy
    Copied

    Copy with confirmation

  • Field format hint