mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
compose: Show tooltip instantly for a .disabled-on-hover button.
We have some delay for tooltips for all compose buttons, but we now show tooltips instantly for buttons that are disabled on hover, to emphasize that the button is disabled, and why.
This commit is contained in:
@@ -28,7 +28,7 @@ function get_tooltip_content(reference: Element): string | Element | DocumentFra
|
||||
// transition, while the "long" version is intended for elements where
|
||||
// we want to avoid distracting the user with the tooltip
|
||||
// unnecessarily.
|
||||
const INSTANT_HOVER_DELAY: [number, number] = [100, 20];
|
||||
export const INSTANT_HOVER_DELAY: [number, number] = [100, 20];
|
||||
// INTERACTIVE_HOVER_DELAY is for elements like the emoji reactions, where
|
||||
// the tooltip includes useful information (who reacted?), but that
|
||||
// needs a short delay for users who are just tapping a reaction
|
||||
|
||||
Reference in New Issue
Block a user