From b3d404261545aa9501fba62e76e38cc9174acfe3 Mon Sep 17 00:00:00 2001 From: ocean_gao Date: Mon, 25 Sep 2023 11:35:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(scrollbar):=20hover=E4=BA=A4=E4=BA=92?= =?UTF-8?q?=E4=BD=93=E9=AA=8C=E4=BC=98=E5=8C=96=20(#472)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/scrollbar/style/index.less | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/components/scrollbar/style/index.less b/components/scrollbar/style/index.less index 78e7b97f..f4f0b922 100644 --- a/components/scrollbar/style/index.less +++ b/components/scrollbar/style/index.less @@ -57,7 +57,7 @@ > div { width: 100%; } - &.is-hovering { + &:hover, &.is-hovering { width: @scrollbar-hover-width; } } @@ -67,7 +67,7 @@ > div { height: 100%; } - &.is-hovering { + &:hover, &.is-hovering { height: @scrollbar-hover-width; } } @@ -81,12 +81,8 @@ border-radius: var(--f-border-radius-sm); cursor: pointer; transition: @animation-duration-slow background-color; - - &:hover { - background-color: @scrollbar-active-bg; - } } - &.is-hovering { + &:hover, &.is-hovering { .@{scrollbar-track-cls}-thumb { background-color: @scrollbar-active-bg; border-radius: var(--f-border-radius-base);