Skip to content

Commit 6e39c89

Browse files
committed
fix for tippy
1 parent 5fbd374 commit 6e39c89

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

src/components/app/details/metrics/DeploymentMetrics.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -720,9 +720,7 @@ export class FrequencyGraphLegend extends React.Component<FrequencyGraphLegendPr
720720
arrow={false}
721721
content="How often this app is deployed to production?"
722722
>
723-
<div className="flex">
724-
<Help className="icon-dim-20 ml-8 dc__vertical-align-middle mr-5" />
725-
</div>
723+
<span> <Help className="icon-dim-20 ml-8 dc__vertical-align-middle mr-5" /></span>
726724
</Tippy>
727725
<span className="cursor" onClick={this.props.setFrequencyMetric}>
728726
{renderCategoryTag(this.props.frequencyBenchmark.name)}{' '}
@@ -753,9 +751,9 @@ export class FrequencyGraphLegend extends React.Component<FrequencyGraphLegendPr
753751
<p className="graph-legend__primary-label">
754752
Change Failure Rate
755753
<Tippy className="default-tt" arrow={false} content="How often does the pipeline fail?">
756-
<div className="flex">
754+
<span>
757755
<Help className="icon-dim-20 ml-8 dc__vertical-align-middle mr-5" />
758-
</div>
756+
</span>
759757
</Tippy>
760758
<span className="cursor" onClick={this.props.setFailureMetric}>
761759
{renderCategoryTag(this.props.failureRateBenchmark?.name)}{' '}
@@ -800,9 +798,9 @@ export class RecoveryAndLeadTimeGraphLegend extends React.Component<RecoveryAndL
800798
<p className="graph-legend__primary-label">
801799
{this.props.label}
802800
<Tippy className="default-tt" arrow={false} content={this.props.tooltipText}>
803-
<div className="flex">
801+
<span>
804802
<Help className="icon-dim-20 ml-8 dc__vertical-align-middle mr-5" />
805-
</div>
803+
</span>
806804
</Tippy>
807805
</p>
808806
<p className="graph-legend__primary-value">
@@ -818,9 +816,9 @@ export class RecoveryAndLeadTimeGraphLegend extends React.Component<RecoveryAndL
818816
<p className="graph-legend__primary-label">
819817
{this.props.label}
820818
<Tippy className="default-tt" arrow={false} content={this.props.tooltipText}>
821-
<div className="flex">
819+
<span>
822820
<Help className="icon-dim-20 ml-8 dc__vertical-align-middle mr-5" />
823-
</div>
821+
</span>
824822
</Tippy>
825823
<span className="cursor" onClick={this.props.setMetric}>
826824
{renderCategoryTag(this.props.benchmark?.name)}{' '}

src/components/app/details/metrics/deploymentMetrics.util.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ export const FailureLegendEmptyState = (props) => {
168168
<p className="graph-legend__primary-label">
169169
Change Failure Rate
170170
<Tippy className="default-tt" arrow={false} content="How often does the pipeline fail?">
171-
<div className="flex">
171+
<span>
172172
<Help className="icon-dim-20 ml-8 dc__vertical-align-middle mr-5" />
173-
</div>
173+
</span>
174174
</Tippy>
175175
</p>
176176
<div className="mt-16">

0 commit comments

Comments
 (0)