Skip to content

Commit

Permalink
fix icon spacing in forms
Browse files Browse the repository at this point in the history
  • Loading branch information
Satloff authored and afc163 committed Dec 10, 2019
1 parent 20ef1f1 commit b0d55c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/form/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ form {
:not(.@{ant-prefix}-input-group-addon)
> .@{ant-prefix}-select
.@{ant-prefix}-select-selection__clear {
right: 28px;
right: (@form-component-height / 2) + @form-feedback-icon-size - 2px;
}
> .@{ant-prefix}-select .@{ant-prefix}-select-selection-selected-value,
:not(.@{ant-prefix}-input-group-addon)
Expand All @@ -168,17 +168,17 @@ form {

.@{ant-prefix}-cascader-picker {
&-arrow {
margin-right: 17px;
margin-right: (@form-component-height / 2) + @form-feedback-icon-size - 13px;
}
&-clear {
right: 28px;
right: (@form-component-height / 2) + @form-feedback-icon-size - 2px;
}
}

// Fix issue: https://github.com/ant-design/ant-design/issues/7854
.@{ant-prefix}-input-search:not(.@{ant-prefix}-input-search-enter-button) {
.@{ant-prefix}-input-suffix {
right: 28px;
right: (@form-component-height / 2) + @form-feedback-icon-size - 2px;
}
}

Expand All @@ -187,7 +187,7 @@ form {
.@{ant-prefix}-time-picker {
&-icon,
&-clear {
right: 28px;
right: (@form-component-height / 2) + @form-feedback-icon-size - 2px;
}
}
}
Expand Down

0 comments on commit b0d55c8

Please sign in to comment.