Merge pull request #16958 from ant-design/tweak-autocomplete-style

💄 use marginRight remind developer
This commit is contained in:
偏右 2019-06-04 20:38:04 +08:00 committed by GitHub
commit e873cd33af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -443,6 +443,7 @@ exports[`renders ./components/auto-complete/demo/uncertain-category.md correctly
>
<button
class="ant-btn search-btn ant-btn-primary ant-btn-lg"
style="margin-right:-12px"
type="button"
>
<i

View File

@ -85,7 +85,12 @@ class Complete extends React.Component {
>
<Input
suffix={
<Button className="search-btn" size="large" type="primary">
<Button
className="search-btn"
style={{ marginRight: -12 }}
size="large"
type="primary"
>
<Icon type="search" />
</Button>
}
@ -116,10 +121,6 @@ ReactDOM.render(<Complete />, mountNode);
padding-right: 62px;
}
.global-search.ant-select-auto-complete .ant-input-affix-wrapper .ant-input-suffix {
right: 0;
}
.global-search.ant-select-auto-complete .ant-input-affix-wrapper .ant-input-suffix button {
border-top-left-radius: 0;
border-bottom-left-radius: 0;