From 1d7d72b49dc93b7560905d2a39cc4ccc07a2bb61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 11 Dec 2018 18:49:48 +0100 Subject: [PATCH] wip: react select css refactoring --- .../components/Picker/DescriptionOption.tsx | 13 +- .../dashboard/dashgrid/DataSourcePicker.tsx | 154 +++++------------- .../sass/components/_description-picker.scss | 24 +++ public/sass/components/_form_select_box.scss | 12 +- public/sass/components/_panel_editor.scss | 1 + 5 files changed, 85 insertions(+), 119 deletions(-) diff --git a/public/app/core/components/Picker/DescriptionOption.tsx b/public/app/core/components/Picker/DescriptionOption.tsx index 9ddf13f7532..94b2b240dfc 100644 --- a/public/app/core/components/Picker/DescriptionOption.tsx +++ b/public/app/core/components/Picker/DescriptionOption.tsx @@ -8,15 +8,16 @@ interface ExtendedOptionProps extends OptionProps { } export const Option = (props: ExtendedOptionProps) => { - const { children, isSelected, data, className } = props; + const { children, isSelected, data } = props; + return ( -
- {isSelected &&