diff --git a/components/checkbox/style/mixin.less b/components/checkbox/style/mixin.less index 21d2d57092..2aa0ba431d 100644 --- a/components/checkbox/style/mixin.less +++ b/components/checkbox/style/mixin.less @@ -72,7 +72,6 @@ &-input { position: absolute; left: 0; - z-index: 1; cursor: pointer; opacity: 0; top: 0; diff --git a/components/input/style/mixin.less b/components/input/style/mixin.less index 93ac274a99..b268767bfc 100644 --- a/components/input/style/mixin.less +++ b/components/input/style/mixin.less @@ -311,20 +311,19 @@ display: inline-block; width: 100%; - .@{inputClass} { - z-index: 1; - } - &:hover .@{inputClass}:not(.@{inputClass}-disabled) { .hover(); } + .@{inputClass} { + position: static; + } + .@{inputClass}-prefix, .@{inputClass}-suffix { position: absolute; top: 50%; transform: translateY(-50%); - z-index: 2; line-height: 0; color: @input-color; :not(.anticon) {