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