aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2022-08-03 12:02:46 +0200
committersonartech <sonartech@sonarsource.com>2022-08-05 20:03:26 +0000
commitaaacc791345ceefcf458bb4b368280df864dba5b (patch)
tree9a42d1c8d88afbd7add4851c33b7a90d75f9d002
parent60686586a638bd709dbbfc3b1dcba5839ac01bc4 (diff)
downloadsonarqube-aaacc791345ceefcf458bb4b368280df864dba5b.tar.gz
sonarqube-aaacc791345ceefcf458bb4b368280df864dba5b.zip
SONAR-16731 [891730] Content does not remain visible
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx1
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsSortingSelect-test.tsx.snap3
2 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx b/server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx
index d59f1e68b0f..537c030644e 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx
+++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx
@@ -101,6 +101,7 @@ export default class ProjectsSortingSelect extends React.PureComponent<Props> {
value={value}
/>
<Tooltip
+ mouseLeaveDelay={1}
overlay={
sortDesc ? translate('projects.sort_descending') : translate('projects.sort_ascending')
}>
diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsSortingSelect-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsSortingSelect-test.tsx.snap
index a7b260023df..162da984de2 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsSortingSelect-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsSortingSelect-test.tsx.snap
@@ -70,6 +70,7 @@ exports[`should handle the descending sort direction 1`] = `
}
/>
<Tooltip
+ mouseLeaveDelay={1}
overlay="projects.sort_descending"
>
<ButtonIcon
@@ -163,6 +164,7 @@ exports[`should render correctly for leak view 1`] = `
}
/>
<Tooltip
+ mouseLeaveDelay={1}
overlay="projects.sort_ascending"
>
<ButtonIcon
@@ -256,6 +258,7 @@ exports[`should render correctly for overall view 1`] = `
}
/>
<Tooltip
+ mouseLeaveDelay={1}
overlay="projects.sort_ascending"
>
<ButtonIcon