Harmonize hover interactions #91100
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
We have hover tooltip interactions in at least two places (in addition to the "title" attribute on many items, that leads to a browser-generated tooltip). One is the "notable traits" icon in the return position of methods that return a type that implements Iterator, Future, Read, or Write.
We should adjust these so they have the same:
We should also make sure both styles of tooltip can be used on touch devices, and have consistent behavior. Proposed tap behavior:
If a tooltip is open, and was opened by hover, tapping its trigger does nothing.
If a tooltip is closed, clicking (tapping) its trigger opens it.
If a tooltip is open, and was opened by clicking, clicking its trigger again closes it.
This should produce good behavior with both touchscreens and pointer devices. The goal is to avoid a frustrating situation where someone using a pointer device moves the mouse to the trigger with plans to click it, and clicks it milliseconds after the hover triggered, closing the tooltip again.
The text was updated successfully, but these errors were encountered: