diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-09-28 16:49:25 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-10-12 20:20:58 +0200 |
commit | f52d0c2586ee1fffb12e882cc86c41e036b46ce0 (patch) | |
tree | 4476fce44ad69671550bd470e29097a709d2cc0e /server/sonar-web/src/main/js/components/controls | |
parent | f0350c5cf3622e723e79e4ea7695741a47c0dbe2 (diff) | |
download | sonarqube-f52d0c2586ee1fffb12e882cc86c41e036b46ce0.tar.gz sonarqube-f52d0c2586ee1fffb12e882cc86c41e036b46ce0.zip |
SONARCLOUD-138 Make forms clearer when upgrading an organization (#761)
Diffstat (limited to 'server/sonar-web/src/main/js/components/controls')
-rw-r--r-- | server/sonar-web/src/main/js/components/controls/HelpTooltip.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/controls/HelpTooltip.tsx b/server/sonar-web/src/main/js/components/controls/HelpTooltip.tsx index bc68b868f4d..0cba9b66e12 100644 --- a/server/sonar-web/src/main/js/components/controls/HelpTooltip.tsx +++ b/server/sonar-web/src/main/js/components/controls/HelpTooltip.tsx @@ -19,7 +19,7 @@ */ import * as React from 'react'; import * as classNames from 'classnames'; -import Tooltip from './Tooltip'; +import Tooltip, { Placement } from './Tooltip'; import HelpIcon from '../icons-components/HelpIcon'; import * as theme from '../../app/theme'; import './HelpTooltip.css'; @@ -29,6 +29,7 @@ interface Props { children?: React.ReactNode; onShow?: () => void; overlay: React.ReactNode; + placement?: Placement; tagName?: string; } @@ -38,7 +39,11 @@ export default function HelpTooltip(props: Props) { return React.createElement( tagName, { className: classNames('help-tooltip', props.className) }, - <Tooltip mouseLeaveDelay={0.25} onShow={props.onShow} overlay={props.overlay}> + <Tooltip + mouseLeaveDelay={0.25} + onShow={props.onShow} + overlay={props.overlay} + placement={props.placement}> <span className="display-inline-flex-center">{children}</span> </Tooltip> ); |