Skip to content

[6.x] Improve tooltips - #15211

Open
jaygeorge wants to merge 10 commits into
6.xfrom
clickable-tooltips
Open

[6.x] Improve tooltips#15211
jaygeorge wants to merge 10 commits into
6.xfrom
clickable-tooltips

Conversation

@jaygeorge

Copy link
Copy Markdown
Contributor

Description of the Problem

  • Once upon a time you could copy a field handle by clicking the label
  • This behaviour was deprecated some time ago because clicking a label should focus its related input field instead—for accessibility (understandable, but also a shame that we lost this utility!)
  • There's some annoying hover-tunnel behaviour where you can't reach any links in a tooltip—like we have for the table headings cp/sites

What this PR Does

IMG_1996
  • Makes handle tooltips cilckable – which copies the handle to the clipboard
  • Fixes some annoying tooltip behaviour – where the tooltip disappears when you move the mouse upwards into the tooltip.
    • Previously if you didn't move the mouse fast enough the tooltip would disappear.
    • The hover gap is now handled by tracking the pointer against the label, the tooltip, and the space between them rather than a hide delay
    • This means you can also reach links in tooltips now

How to Reproduce

  1. Try hovering over a field name in a publish form, then clicking the tooltip handle
  2. Also try cp/sites and hovering over the little "info" icon

@jaygeorge
jaygeorge marked this pull request as draft August 18, 2026 16:41
…ver gap before the popper is measured, and getting stuck when the pointer was never tracked.
@jaygeorge
jaygeorge marked this pull request as ready for review August 18, 2026 17:18
@jasonvarga jasonvarga changed the title [6.x] Make tooltips great again [6.x] Improve tooltips Aug 18, 2026
@jaygeorge
jaygeorge marked this pull request as draft August 18, 2026 18:35
@jaygeorge
jaygeorge marked this pull request as ready for review August 18, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant