From d3f05fda77e477c01e0030e48f3e4cf2a0aef5f7 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Wed, 8 Oct 2025 10:13:20 +0100 Subject: [PATCH] Show tooltip immediately if a tooltip is already open (#28870) * Memoize delayProps * Refactor Escape key handler * Use useTooltipContext * Remove delay: 0 from tooltips * Only use isTooltipOpen if available * Only show transition for initial tooltip GitOrigin-RevId: 74950ea7e705acb8f42dea552b23ce93c66058c7 --- .../components/dictionary-modal-content.tsx | 1 - .../ide-react/context/react-context-root.tsx | 6 +- .../online-users/online-users-widget.tsx | 1 - .../components/rail/rail-action-element.tsx | 4 +- .../ide-redesign/components/rail/rail-tab.tsx | 2 +- .../toolbar/change-layout-button.tsx | 2 +- .../ide-redesign/components/toolbar/logos.tsx | 2 +- .../toolbar/show-history-button.tsx | 2 +- .../table-generator/column-size-indicator.tsx | 2 +- .../toolbar/column-width-modal/modal.tsx | 2 +- .../frontend/js/shared/components/tooltip.tsx | 70 ++++++++++++++----- .../js/shared/context/tooltip-provider.tsx | 41 +++++++++++ 12 files changed, 106 insertions(+), 29 deletions(-) create mode 100644 services/web/frontend/js/shared/context/tooltip-provider.tsx diff --git a/services/web/frontend/js/features/dictionary/components/dictionary-modal-content.tsx b/services/web/frontend/js/features/dictionary/components/dictionary-modal-content.tsx index 05abff20c6..13a20a148b 100644 --- a/services/web/frontend/js/features/dictionary/components/dictionary-modal-content.tsx +++ b/services/web/frontend/js/features/dictionary/components/dictionary-modal-content.tsx @@ -74,7 +74,6 @@ export default function DictionaryModalContent({ - {children} + + {children} + diff --git a/services/web/frontend/js/features/ide-redesign/components/online-users/online-users-widget.tsx b/services/web/frontend/js/features/ide-redesign/components/online-users/online-users-widget.tsx index f582885949..fbb2dd2b49 100644 --- a/services/web/frontend/js/features/ide-redesign/components/online-users/online-users-widget.tsx +++ b/services/web/frontend/js/features/ide-redesign/components/online-users/online-users-widget.tsx @@ -78,7 +78,6 @@ const OnlineUserWidget = ({ overlayProps={{ placement: 'bottom', trigger: ['hover', 'focus'], - delay: 0, }} >