From a4d91fb99a2bc73124a39659ec1f0fdcdf75ddb3 Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Wed, 3 Aug 2016 09:48:53 +0800 Subject: [PATCH] fix: should hide close button if not hover, close: #2584 --- components/date-picker/style/Picker.less | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/date-picker/style/Picker.less b/components/date-picker/style/Picker.less index 66f2760669..d2c1c05ef4 100644 --- a/components/date-picker/style/Picker.less +++ b/components/date-picker/style/Picker.less @@ -39,9 +39,9 @@ } &-clear { opacity: 0; + z-index: -1; position: absolute; right: 7px; - z-index: 1; background: #fff; top: 50%; font-size: 12px; @@ -59,6 +59,7 @@ &:hover &-clear { opacity: 1; + z-index: 1; } &-icon { position: absolute;