Browse Source

fix style of Input.Search with enterButton (#14397)

fix #14396
pull/14406/head
zombieJ 6 years ago
committed by GitHub
parent
commit
321117c5e8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/input/demo/search-input.md
  2. 23
      components/input/style/search-input.less

4
components/input/demo/search-input.md

@ -1,8 +1,8 @@
---
order: 4
title:
zh-CN: 搜索框
en-US: Search box
zh-CN: 搜索框
en-US: Search box
---
## zh-CN

23
components/input/style/search-input.less

@ -27,11 +27,24 @@
}
}
&.@{search-prefix}-enter-button > .@{ant-prefix}-input {
padding-right: 46px;
}
&.@{search-prefix}-enter-button {
display: table;
> * {
display: table-cell;
}
&.@{search-prefix}-enter-button > .@{ant-prefix}-input-suffix {
right: 0;
> .@{ant-prefix}-input {
.input;
width: 100%;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: 0;
}
> .@{ant-prefix}-input-suffix {
position: static;
transform: none;
}
}
}

Loading…
Cancel
Save