*/
// @flow
import React from 'react';
+import classNames from 'classnames';
import GraphsTooltipsContent from './GraphsTooltipsContent';
import GraphsTooltipsContentEvents from './GraphsTooltipsContentEvents';
import GraphsTooltipsContentCoverage from './GraphsTooltipsContentCoverage';
const tooltipContent = this.renderContent().filter(Boolean);
const addSeparator = tooltipContent.length > 0;
return (
- <BubblePopup customClass={customClass} position={{ top, left, width: TOOLTIP_WIDTH }}>
+ <BubblePopup
+ customClass={classNames(customClass, 'disabled-pointer-events')}
+ position={{ top, left, width: TOOLTIP_WIDTH }}>
<div className="project-activity-graph-tooltip">
<div className="project-activity-graph-tooltip-title spacer-bottom">
<DateTimeFormatter date={this.props.selectedDate} />
exports[`should not add separators if not needed 1`] = `
<BubblePopup
- customClass="bubble-popup-right"
+ customClass="bubble-popup-right disabled-pointer-events"
position={
Object {
"left": 476,
exports[`should render correctly for issues graphs 1`] = `
<BubblePopup
- customClass="bubble-popup-right"
+ customClass="bubble-popup-right disabled-pointer-events"
position={
Object {
"left": 476,
exports[`should render correctly for random graphs 1`] = `
<BubblePopup
- customClass="bubble-popup-right"
+ customClass="bubble-popup-right disabled-pointer-events"
position={
Object {
"left": 476,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import React from 'react';
+import classNames from 'classnames';
import PreviewGraphTooltipsContent from './PreviewGraphTooltipsContent';
import BubblePopup from '../common/BubblePopup';
import DateFormatter from '../intl/DateFormatter';
}
return (
- <BubblePopup customClass={customClass} position={{ top, left, width: TOOLTIP_WIDTH }}>
+ <BubblePopup
+ customClass={classNames(customClass, 'disabled-pointer-events')}
+ position={{ top, left, width: TOOLTIP_WIDTH }}>
<div className="overview-analysis-graph-tooltip">
<div className="overview-analysis-graph-tooltip-title">
<DateFormatter date={this.props.selectedDate} long={true} />
exports[`should render correctly 1`] = `
<BubblePopup
- customClass="bubble-popup-right"
+ customClass="bubble-popup-right disabled-pointer-events"
position={
Object {
"left": -135,