From ab2376e8ed10cbe1bd72c7025ef66dceee905e01 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 5 Mar 2017 20:01:52 +0800 Subject: [PATCH] Fix input prefix and suffix vertical alignment --- components/input/demo/presuffix.md | 3 +++ components/input/style/mixin.less | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/input/demo/presuffix.md b/components/input/demo/presuffix.md index 2b9b5dc05e..a5c8f0e373 100644 --- a/components/input/demo/presuffix.md +++ b/components/input/demo/presuffix.md @@ -59,4 +59,7 @@ ReactDOM.render(, mountNode); .anticon-close-circle:hover { color: #999; } +.anticon-close-circle:active { + color: #666; +} ```` diff --git a/components/input/style/mixin.less b/components/input/style/mixin.less index 786290cdd7..8463ef93f1 100644 --- a/components/input/style/mixin.less +++ b/components/input/style/mixin.less @@ -294,7 +294,7 @@ top: 50%; transform: translateY(-50%); z-index: 2; - line-height: 1.2; + line-height: 0; } .@{inputClass}-prefix {