Skip to content

Commit b3b4831

Browse files
zkwolftangjinzhou
authored andcommitted
fix: input allowClear icon (#1040)
1 parent 5f41fa5 commit b3b4831

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

components/input/style/index.less

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,33 @@
3232
}
3333

3434
.@{ant-prefix}-input-password-icon {
35+
color: @text-color-secondary;
3536
cursor: pointer;
3637
transition: all 0.3s;
38+
3739
&:hover {
3840
color: #333;
3941
}
4042
}
4143

44+
.@{ant-prefix}-input-clear-icon {
45+
color: @disabled-color;
46+
font-size: @font-size-sm;
47+
vertical-align: top;
48+
cursor: pointer;
49+
transition: color 0.3s;
50+
51+
&:hover {
52+
color: @text-color-secondary;
53+
}
54+
55+
&:active {
56+
color: @text-color;
57+
}
58+
59+
+ i {
60+
margin-left: 6px;
61+
}
62+
}
63+
4264
@import './search-input';

0 commit comments

Comments
 (0)