From f02a11bc9bb74f0fee2bd5ac6db13be7f6595536 Mon Sep 17 00:00:00 2001 From: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com> Date: Mon, 29 Apr 2024 12:16:12 -0700 Subject: [PATCH] Fix call react button lingering tooltip --- stylesheets/components/CallControls.scss | 4 -- ts/components/CallingButton.tsx | 56 ++++++++++++++---------- 2 files changed, 32 insertions(+), 28 deletions(-) diff --git a/stylesheets/components/CallControls.scss b/stylesheets/components/CallControls.scss index da328f396b..7140ac5656 100644 --- a/stylesheets/components/CallControls.scss +++ b/stylesheets/components/CallControls.scss @@ -110,10 +110,6 @@ margin-block: -5px; } -.CallControls__ReactButtonContainer--menu-shown .module-tooltip { - opacity: 0; -} - .CallControls__OuterSpacer { // Defined in _modules but duplicated here for ease of refactor $local-preview-width: 108px; diff --git a/ts/components/CallingButton.tsx b/ts/components/CallingButton.tsx index f448e7c95f..4f7597f0a3 100644 --- a/ts/components/CallingButton.tsx +++ b/ts/components/CallingButton.tsx @@ -111,34 +111,42 @@ export function CallingButton({ tooltipContent = i18n('icu:CallingButton--more-options'); } + const buttonContent = ( + + ); + return (
- -
+ ) : ( + -
- - + {buttonContent} + + )}
); }