diff --git a/packages/antd/src/form-item/style.less b/packages/antd/src/form-item/style.less index 13b9a1cb692..602f8625db1 100644 --- a/packages/antd/src/form-item/style.less +++ b/packages/antd/src/form-item/style.less @@ -75,7 +75,7 @@ } } - + .@{ant-prefix}-select, .@{ant-prefix}-cascader-picker, .@{ant-prefix}-picker { @@ -247,13 +247,14 @@ .@{ant-prefix}-select-single:not(.@{ant-prefix}-select-customize-input) .@{ant-prefix}-select-selector { padding: 0px 7px; height: @form-item-margin-bottom; - - .@{ant-prefix}-select-selection-search-input{ - height: @height-sm - 2; - } - .@{ant-prefix}-select-selection-item{ - line-height: @height-sm - 2; - } + + .@{ant-prefix}-select-selection-search-input { + height: @height-sm - 2; + } + + .@{ant-prefix}-select-selection-item { + line-height: @height-sm - 2; + } } } @@ -472,6 +473,7 @@ } .@{form-item-cls}-error { + .@{ant-prefix}-select-selector, .@{ant-prefix}-cascader-picker, .@{ant-prefix}-picker, @@ -482,6 +484,7 @@ .@{ant-prefix}-input { border-color: @error-color !important; } + .@{ant-prefix}-select-selector, .@{ant-prefix}-cascader-picker, .@{ant-prefix}-picker, @@ -517,6 +520,7 @@ } .@{form-item-cls}-warning { + .@{ant-prefix}-select-selector, .@{ant-prefix}-cascader-picker, .@{ant-prefix}-picker, @@ -527,6 +531,7 @@ .@{ant-prefix}-input { border-color: @warning-color !important; } + .@{ant-prefix}-select-selector, .@{ant-prefix}-cascader-picker, .@{ant-prefix}-picker, @@ -560,6 +565,7 @@ .@{ant-prefix}-input { border-color: @success-color !important; } + .@{ant-prefix}-select-selector, .@{ant-prefix}-cascader-picker, .@{ant-prefix}-picker, @@ -579,4 +585,4 @@ border-right-width: 1px !important; outline: 0; } -} +} \ No newline at end of file