fix: large size should be set by JS, not CSS, close: #3630

pull/3638/head
Benjy Cui 8 years ago
parent 6bd75f2666
commit d70ff98f9f

@ -13,8 +13,8 @@ const Group: React.StatelessComponent<GroupProps> = (props) => {
const { prefixCls = 'ant-input-group', className = '' } = props; const { prefixCls = 'ant-input-group', className = '' } = props;
const cls = classNames({ const cls = classNames({
[prefixCls]: true, [prefixCls]: true,
[`${props.prefixCls}-lg`]: props.size === 'large', [`${prefixCls}-lg`]: props.size === 'large',
[`${props.prefixCls}-sm`]: props.size === 'small', [`${prefixCls}-sm`]: props.size === 'small',
[className]: !!className, [className]: !!className,
}); });
return ( return (

@ -33,10 +33,6 @@
&:hover { &:hover {
border-color: @border-color-base; border-color: @border-color-base;
} }
form & {
padding-top: 6px;
padding-bottom: 6px;
}
} }
&&-focus .@{ant-prefix}-search-btn-noempty, &&-focus .@{ant-prefix}-search-btn-noempty,
&:hover .@{ant-prefix}-search-btn-noempty { &:hover .@{ant-prefix}-search-btn-noempty {

Loading…
Cancel
Save