Menu

Make the agent use the existing Tooltip primitive, not a title attribute or a new overlay
📰

Make the agent use the existing Tooltip primitive, not a title attribute or a new overlay

DEV Community: frontend·Sherotree·11 days ago
#vdvrZNSQ
#devtofrontend#devto#dev#tooltip#hover
Long article (426 words) — no AI summary yet.
Reading 0:00
15s threshold

The PR adds a hint with a native title attribute, or a position: absolute hover div next to the control. The repo already has a Tooltip primitive with a delay, a portal, focus and hover bindings, and a labelled content node. The new hint is slow to appear on hover, disappears before it can be read, and never shows on keyboard focus.

I've started treating a title attribute or a homemade hover box as incomplete when a Tooltip primitive exists. The label is the easy part. Delay, overflow, and keyboard access are why the primitive is there.

Why the homemade tooltip shows up

A tutorial "tooltip" is a title attribute or a span that shows on hover. The model can write that without finding components/Tooltip .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.