Tooltip hover delay defaults to 500ms (WEB-1124)
Version: 0.6.2 ยท Type: ๐ Bug Fix
Problemโ
Tooltip previously appeared immediately on pointer hover (delayDuration default 0), causing frequent flicker when the pointer quickly passed over multiple hoverable elements. Since this is a unified library-level interaction convention, it's fixed at the component library level instead of per-consumer hacks โ Tree had previously worked around it by passing its own 300ms delay.
Changed Filesโ
packages/design/src/components/Tooltip/Tooltip.tsxpackages/design/src/components/Tooltip/styles.tspackages/design/src/components/Tree/Tree.tsxpackages/design/src/components/Tree/constants.ts
Changesโ
- Added constant
TOOLTIP_DEFAULT_DELAY_DURATION_MS = 500instyles.ts Tooltip/TooltipProviderdelayDurationdefault changed from0toTOOLTIP_DEFAULT_DELAY_DURATION_MS;skipDelayDurationunchanged (default0)- Hide behavior unchanged: Radix's
onTriggerLeavefires immediately regardless ofdelayDuration - Removed
Tree's previous workaroundTITLE_TOOLTIP_DELAY_MS(300ms) and its import; the overflowed-title tooltip now relies on the new library default of 500ms