From b3b4831c1ab33c7262c10fa1c16f5fc67c6bd113 Mon Sep 17 00:00:00 2001 From: zkwolf Date: Wed, 31 Jul 2019 22:11:03 +0800 Subject: [PATCH] fix: input allowClear icon (#1040) --- components/input/style/index.less | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/components/input/style/index.less b/components/input/style/index.less index 390a7e39f..faca6124e 100644 --- a/components/input/style/index.less +++ b/components/input/style/index.less @@ -32,11 +32,33 @@ } .@{ant-prefix}-input-password-icon { + color: @text-color-secondary; cursor: pointer; transition: all 0.3s; + &:hover { color: #333; } } +.@{ant-prefix}-input-clear-icon { + color: @disabled-color; + font-size: @font-size-sm; + vertical-align: top; + cursor: pointer; + transition: color 0.3s; + + &:hover { + color: @text-color-secondary; + } + + &:active { + color: @text-color; + } + + + i { + margin-left: 6px; + } +} + @import './search-input';