Skip to content

Commit 372190a

Browse files
committed
fix title prop
1 parent 1661313 commit 372190a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

static/app/views/explore/metrics/metricToolbar/deleteMetricButton.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export function DeleteMetricButton({disabled}: {disabled?: boolean}) {
1818
size="zero"
1919
onClick={removeMetric}
2020
disabled={disabled}
21-
title={disabled ? t('This metric is used in an equation') : undefined}
21+
tooltipProps={{
22+
title: disabled ? t('This metric is used in an equation') : undefined,
23+
}}
2224
aria-label={t('Delete Metric')}
2325
/>
2426
);
@@ -31,7 +33,9 @@ export function DeleteMetricButton({disabled}: {disabled?: boolean}) {
3133
aria-label={t('Delete metric')}
3234
onClick={removeMetric}
3335
disabled={disabled}
34-
title={disabled ? t('This metric is used in an equation') : undefined}
36+
tooltipProps={{
37+
title: disabled ? t('This metric is used in an equation') : undefined,
38+
}}
3539
/>
3640
);
3741
}

0 commit comments

Comments
 (0)