From fce35e7aa91e6c1c0aa32636c17e264f122c5758 Mon Sep 17 00:00:00 2001 From: Peter Holmberg Date: Tue, 7 Jul 2020 08:45:37 +0200 Subject: [PATCH] Fix: Icon and Tooltip on Variables editor (#26086) (cherry picked from commit 8f1115c6acf351313fb1bbf118a10a6662be7645) --- packages/grafana-ui/src/components/FormLabel/FormLabel.tsx | 2 +- .../grafana-ui/src/components/Forms/Legacy/Switch/Switch.tsx | 3 ++- .../app/features/variables/editor/SelectionOptionsEditor.tsx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/grafana-ui/src/components/FormLabel/FormLabel.tsx b/packages/grafana-ui/src/components/FormLabel/FormLabel.tsx index f23587424bb..fb29da067bd 100644 --- a/packages/grafana-ui/src/components/FormLabel/FormLabel.tsx +++ b/packages/grafana-ui/src/components/FormLabel/FormLabel.tsx @@ -34,7 +34,7 @@ export const FormLabel: FunctionComponent = ({ {tooltip && (
- +
)} diff --git a/packages/grafana-ui/src/components/Forms/Legacy/Switch/Switch.tsx b/packages/grafana-ui/src/components/Forms/Legacy/Switch/Switch.tsx index 8a6cbd7225c..d5e969fa66e 100644 --- a/packages/grafana-ui/src/components/Forms/Legacy/Switch/Switch.tsx +++ b/packages/grafana-ui/src/components/Forms/Legacy/Switch/Switch.tsx @@ -2,6 +2,7 @@ import React, { PureComponent } from 'react'; import uniqueId from 'lodash/uniqueId'; import { Tooltip } from '../../../Tooltip/Tooltip'; import * as PopperJS from 'popper.js'; +import { Icon } from '../../..'; export interface Props { label: string; @@ -54,7 +55,7 @@ export class Switch extends PureComponent { {tooltip && (
- +
)} diff --git a/public/app/features/variables/editor/SelectionOptionsEditor.tsx b/public/app/features/variables/editor/SelectionOptionsEditor.tsx index 75fb6dbc0f7..a62eb3fd403 100644 --- a/public/app/features/variables/editor/SelectionOptionsEditor.tsx +++ b/public/app/features/variables/editor/SelectionOptionsEditor.tsx @@ -53,7 +53,7 @@ export const SelectionOptionsEditor: FunctionComponent