aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src
diff options
context:
space:
mode:
authorKevin Silva <kevin.silva@sonarsource.com>2023-03-15 14:09:44 +0100
committersonartech <sonartech@sonarsource.com>2023-03-20 20:02:58 +0000
commit776503eeb7842d695c3841e33fd87c3f08cb291e (patch)
treea24d95eb3a03d53a703afe119211e71634751f4e /server/sonar-web/src
parenta7e74149a10d2004b5a206971271a4d6854fe9b3 (diff)
downloadsonarqube-776503eeb7842d695c3841e33fd87c3f08cb291e.tar.gz
sonarqube-776503eeb7842d695c3841e33fd87c3f08cb291e.zip
SONAR-18795 Tooltip still visible after router change
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.tsx3
-rw-r--r--server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsPopupHelper.tsx6
2 files changed, 2 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.tsx b/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.tsx
index 79918079b37..64b75fa607c 100644
--- a/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.tsx
+++ b/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.tsx
@@ -69,8 +69,7 @@ export function GlobalNavUser() {
{({ a11yAttrs: { role, ...a11yAttrs }, onToggleClick, open }) => (
<Tooltip
mouseEnterDelay={0.2}
- overlay={translate('global_nav.account.tooltip')}
- visible={open ? false : undefined}
+ overlay={!open ? translate('global_nav.account.tooltip') : undefined}
>
<BareButton
aria-label={translate('global_nav.account.tooltip')}
diff --git a/server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsPopupHelper.tsx b/server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsPopupHelper.tsx
index 3f1bfa7d8a3..5299c1cd586 100644
--- a/server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsPopupHelper.tsx
+++ b/server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsPopupHelper.tsx
@@ -40,11 +40,7 @@ export default function EmbedDocsPopupHelper() {
zLevel={PopupZLevel.Global}
>
{({ onToggleClick, open }) => (
- <Tooltip
- mouseLeaveDelay={0.2}
- overlay={translate('help')}
- visible={open ? false : undefined}
- >
+ <Tooltip mouseLeaveDelay={0.2} overlay={!open ? translate('help') : undefined}>
<InteractiveIcon
Icon={MenuHelpIcon}
aria-expanded={open}