From 8a9c487e3fac8acc548b84e485ce779fe035067a Mon Sep 17 00:00:00 2001 From: liuzaijiang <530604689@qq.com> Date: Tue, 3 Jan 2023 20:41:24 +0800 Subject: [PATCH] fix(comp:input-number): buttons of inc and dec are not hidden by default --- 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; + } } }