Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
fix(ClearableInput): adjust close button position in normal input
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimi-Gao committed Jan 21, 2019
1 parent d0b21e4 commit a57f7fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/components/ClearableInput/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,11 @@ class ClearableInput extends Component {
{(!forbidClearable && hasChanged && (value || value === 0 || Number.isNaN(value))) && (
<Button
tabIndex="-1"
icon="remove"
size="sm"
transparent
icon="close"
className={`${prefixCls}-clearable-input__clear-btn`}
disabled={inputProps.disabled}
onClick={this.handleClear}
micro
/>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ClearableInput/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
.@{prefix-cls}-clearable-input__clear-btn {
position: absolute;
top: 50%;
margin-top: -11px;
margin-top: -9px;
right: 5px;
}

0 comments on commit a57f7fe

Please sign in to comment.