From 4f7eff39fd9e47e5bbc4962e9a6be49985f010ff Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 16 Nov 2016 20:13:00 +0800 Subject: [PATCH] fix error controls style --- components/form/style/index.less | 38 +++++++++++++------------------- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/components/form/style/index.less b/components/form/style/index.less index 8b7ccdd360..ebfb9057c6 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -341,20 +341,18 @@ form { .@{ant-prefix}-select { &-selection { border-color: @warning-color; + } + &-open .@{ant-prefix}-select-selection, + &-focused .@{ant-prefix}-select-selection { .active(@warning-color); } - &-arrow { - color: @warning-color; - } } - //datepicker - .@{ant-prefix}-calendar-picker-icon:after { - color: @warning-color; - } - - //timepicker - .@{ant-prefix}-time-picker-icon:after { + // arrow and icon + .@{ant-prefix}-calendar-picker-icon:after, + .@{ant-prefix}-picker-icon:after, + .@{ant-prefix}-select-arrow, + .@{ant-prefix}-cascader-picker-arrow { color: @warning-color; } @@ -385,23 +383,17 @@ form { &-selection { border-color: @error-color; } - - &-focused &-selection { + &-open .@{ant-prefix}-select-selection, + &-focused .@{ant-prefix}-select-selection { .active(@error-color); } - - &-arrow { - color: @error-color; - } } - //datepicker - .@{ant-prefix}-calendar-picker-icon:after { - color: @error-color; - } - - //timepicker - .@{ant-prefix}-picker-icon:after { + // arrow and icon + .@{ant-prefix}-calendar-picker-icon:after, + .@{ant-prefix}-picker-icon:after, + .@{ant-prefix}-select-arrow, + .@{ant-prefix}-cascader-picker-arrow { color: @error-color; }