From b77fac60833d6ca544812d74417d5a604075de36 Mon Sep 17 00:00:00 2001 From: Liuzj <530604689@qq.com> Date: Fri, 6 Jan 2023 10:56:50 +0800 Subject: [PATCH] fix(comp:input-number): buttons of inc and dec are not hidden by default (#1385) --- packages/components/input-number/style/index.less | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/components/input-number/style/index.less b/packages/components/input-number/style/index.less index 21e13544e..c794d3a84 100644 --- a/packages/components/input-number/style/index.less +++ b/packages/components/input-number/style/index.less @@ -45,5 +45,13 @@ display: inline-flex; justify-content: center; flex-direction: column; + opacity: 0; + transition: opacity var(--ix-transition-duration-medium) var(--ix-ease-in-out); + } + + &:hover:not(.@{input-prefix}-disabled) { + .@{input-prefix}-suffix { + opacity: 1; + } } }