From 88414b3b3307eeb50b859df7c703dd005d891e78 Mon Sep 17 00:00:00 2001 From: xrk Date: Mon, 26 Oct 2020 18:36:39 +0800 Subject: [PATCH] fix: select focus border in form when has error (#27378) --- components/form/style/status.less | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/form/style/status.less b/components/form/style/status.less index 2887dc6864..f5363b081a 100644 --- a/components/form/style/status.less +++ b/components/form/style/status.less @@ -144,6 +144,10 @@ &.@{ant-prefix}-select-focused .@{ant-prefix}-select-selector { .active(@warning-color); } + &-focused, + &:focus { + .active(@warning-color); + } } //input-number, timepicker @@ -185,6 +189,10 @@ &.@{ant-prefix}-select-focused .@{ant-prefix}-select-selector { .active(@error-color); } + &-focused, + &:focus { + .active(@error-color); + } } // fixes https://github.com/ant-design/ant-design/issues/20482