Revert "[improvement] Field: increase clickable area of icon (#4058)"

This reverts commit 5da8ea5d0f92c026353a99da858549faf9114f3f.
This commit is contained in:
陈嘉涵 2019-08-12 11:45:51 +08:00
parent f4125bceb8
commit f728931527

View File

@ -76,26 +76,12 @@
font-size: @field-clear-icon-size; font-size: @field-clear-icon-size;
} }
&__left-icon, &__left-icon .van-icon,
&__right-icon { &__right-icon .van-icon {
position: relative; display: block;
min-width: 1em;
.van-icon { font-size: @field-icon-size;
display: block; line-height: inherit;
min-width: 1em;
font-size: @field-icon-size;
line-height: inherit;
}
// increase clickable area size
&::after {
position: absolute;
top: -5px;
right: -5px;
bottom: -5px;
left: -5px;
content: '';
}
} }
&__left-icon { &__left-icon {