From d1bf665060af80c7d105b79d032c2f651ae803b3 Mon Sep 17 00:00:00 2001 From: cchaos Date: Wed, 26 Sep 2018 17:09:39 -0400 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20shrink=20date=20picker=20icon?= =?UTF-8?q?=20fixes=20#1207?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../date_picker/_date_picker_range.scss | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/components/date_picker/_date_picker_range.scss b/src/components/date_picker/_date_picker_range.scss index 593f2085fe7..d6e0cb103b0 100644 --- a/src/components/date_picker/_date_picker_range.scss +++ b/src/components/date_picker/_date_picker_range.scss @@ -5,7 +5,7 @@ * 1. Account for inner box-shadow style border */ - .euiDatePickerRange { +.euiDatePickerRange { @include euiFormControlSize(auto, $includeAlternates: true); // Match just the regular drop shadow of inputs @include euiFormControlDefaultShadow(); @@ -36,14 +36,19 @@ height: $euiFormControlHeight - 2px; } } -} -.euiDatePickerRange__icon { - padding-left: $euiFormControlPadding; - padding-right: $euiFormControlPadding; -} + // Direct descendent selectors to override `> span` + + > .euiDatePickerRange__icon { + flex: 0 0 auto; + padding-left: $euiFormControlPadding; + padding-right: $euiFormControlPadding; + } -.euiDatePickerRange__delimeter { - padding-left: $euiFormControlPadding/2; - padding-right: $euiFormControlPadding/2; + > .euiDatePickerRange__delimeter { + padding-left: $euiFormControlPadding/2; + padding-right: $euiFormControlPadding/2; + } } + +