From 8704569a30eca005f63d2616932730b8f9b835ba Mon Sep 17 00:00:00 2001 From: Yash Joshi Date: Mon, 30 Dec 2019 20:20:33 +0530 Subject: [PATCH] fix(style): form field error border style for select (#20517) * fix(style): form field error border style for select * fix: add style for input-group-addon * fix: remove invalid styles --- components/form/style/index.less | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/components/form/style/index.less b/components/form/style/index.less index 453f4f7fb8..fb4a1650bb 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -295,16 +295,17 @@ } } - .@{ant-prefix}-select.@{ant-prefix}-select-auto-complete { - .@{ant-prefix}-input:focus { - border-color: @error-color; + // fixes https://github.com/ant-design/ant-design/issues/20482 + .@{ant-prefix}-input-group-addon .@{ant-prefix}-select { + &.@{ant-prefix}-select-single:not(.@{ant-prefix}-select-customize-input) + .@{ant-prefix}-select-selector { + border: 0; } } - .@{ant-prefix}-input-group-addon .@{ant-prefix}-select { - &-selector { - border-color: transparent; - box-shadow: none; + .@{ant-prefix}-select.@{ant-prefix}-select-auto-complete { + .@{ant-prefix}-input:focus { + border-color: @error-color; } }