From 95e45044eefd2061c7a0275073dc9dea1d333970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Thu, 19 Dec 2019 16:23:30 +0800 Subject: [PATCH] fix: Form select error style (#20345) --- components/form/style/index.less | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/form/style/index.less b/components/form/style/index.less index c5d81a8d4c..89fd3361c1 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -248,14 +248,14 @@ //select .@{ant-prefix}-select { - &-selection { + .@{ant-prefix}-select-selector { border-color: @warning-color; &:hover { border-color: @warning-color; } } - &-open .@{ant-prefix}-select-selection, - &-focused .@{ant-prefix}-select-selection { + &.@{ant-prefix}-select-open .@{ant-prefix}-select-selector, + &.@{ant-prefix}-select-focused .@{ant-prefix}-select-selector { .active(@warning-color); } } @@ -289,14 +289,14 @@ //select .@{ant-prefix}-select { - &-selection { + .@{ant-prefix}-select-selector { border-color: @error-color; &:hover { border-color: @error-color; } } - &-open .@{ant-prefix}-select-selection, - &-focused .@{ant-prefix}-select-selection { + &.@{ant-prefix}-select-open .@{ant-prefix}-select-selector, + &.@{ant-prefix}-select-focused .@{ant-prefix}-select-selector { .active(@error-color); } } @@ -308,7 +308,7 @@ } .@{ant-prefix}-input-group-addon .@{ant-prefix}-select { - &-selection { + &-selector { border-color: transparent; box-shadow: none; }