aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/background-tasks/components
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2018-06-08 08:39:30 +0200
committerSonarTech <sonartech@sonarsource.com>2018-06-12 20:20:57 +0200
commitf3425772870c017497d30bcc5115b8b3d62f9fb2 (patch)
treed008376efd3fca039cca6a0e4feb5afaf5459397 /server/sonar-web/src/main/js/apps/background-tasks/components
parent618039ace997ff9fda4735988edd19233159ac9b (diff)
downloadsonarqube-f3425772870c017497d30bcc5115b8b3d62f9fb2.tar.gz
sonarqube-f3425772870c017497d30bcc5115b8b3d62f9fb2.zip
SONAR-10287 Use browser tooltips for descriptive hints
Diffstat (limited to 'server/sonar-web/src/main/js/apps/background-tasks/components')
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/components/TaskComponent.tsx11
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/TaskComponent-test.tsx.snap26
2 files changed, 16 insertions, 21 deletions
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/TaskComponent.tsx b/server/sonar-web/src/main/js/apps/background-tasks/components/TaskComponent.tsx
index 3a4c6d80fe1..c3afacc324a 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/components/TaskComponent.tsx
+++ b/server/sonar-web/src/main/js/apps/background-tasks/components/TaskComponent.tsx
@@ -32,7 +32,6 @@ import {
import ShortLivingBranchIcon from '../../../components/icons-components/ShortLivingBranchIcon';
import LongLivingBranchIcon from '../../../components/icons-components/LongLivingBranchIcon';
import PullRequestIcon from '../../../components/icons-components/PullRequestIcon';
-import Tooltip from '../../../components/controls/Tooltip';
interface Props {
task: Task;
@@ -76,12 +75,10 @@ export default function TaskComponent({ task }: Props) {
)}
{task.pullRequest && (
- <Tooltip overlay={task.pullRequestTitle}>
- <span className="text-limited text-text-top">
- <span style={{ marginLeft: 5, marginRight: 5 }}>/</span>
- {task.pullRequest}
- </span>
- </Tooltip>
+ <span className="text-limited text-text-top" title={task.pullRequestTitle}>
+ <span style={{ marginLeft: 5, marginRight: 5 }}>/</span>
+ {task.pullRequest}
+ </span>
)}
</Link>
)}
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/TaskComponent-test.tsx.snap b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/TaskComponent-test.tsx.snap
index d1f54e342f5..88328a93b61 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/TaskComponent-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/TaskComponent-test.tsx.snap
@@ -163,23 +163,21 @@ exports[`renders correctly for branches and pullrequest 3`] = `
}
>
foo
- <Tooltip>
+ <span
+ className="text-limited text-text-top"
+ >
<span
- className="text-limited text-text-top"
- >
- <span
- style={
- Object {
- "marginLeft": 5,
- "marginRight": 5,
- }
+ style={
+ Object {
+ "marginLeft": 5,
+ "marginRight": 5,
}
- >
- /
- </span>
- pr-89
+ }
+ >
+ /
</span>
- </Tooltip>
+ pr-89
+ </span>
</Link>
<TaskType
type="REPORT"