diff --git a/components/input/Group.tsx b/components/input/Group.tsx index 098459fd25..63e66ece75 100644 --- a/components/input/Group.tsx +++ b/components/input/Group.tsx @@ -13,8 +13,8 @@ const Group: React.StatelessComponent = (props) => { const { prefixCls = 'ant-input-group', className = '' } = props; const cls = classNames({ [prefixCls]: true, - [`${props.prefixCls}-lg`]: props.size === 'large', - [`${props.prefixCls}-sm`]: props.size === 'small', + [`${prefixCls}-lg`]: props.size === 'large', + [`${prefixCls}-sm`]: props.size === 'small', [className]: !!className, }); return ( diff --git a/components/input/style/search-input.less b/components/input/style/search-input.less index 75a1ff53e3..3352a8cdb3 100644 --- a/components/input/style/search-input.less +++ b/components/input/style/search-input.less @@ -33,10 +33,6 @@ &:hover { border-color: @border-color-base; } - form & { - padding-top: 6px; - padding-bottom: 6px; - } } &&-focus .@{ant-prefix}-search-btn-noempty, &:hover .@{ant-prefix}-search-btn-noempty {