Skip to content

Commit

Permalink
feat(scrollbar): hover交互体验优化 (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocean-gao authored Sep 25, 2023
1 parent 7604458 commit b3d4042
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions components/scrollbar/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
> div {
width: 100%;
}
&.is-hovering {
&:hover, &.is-hovering {
width: @scrollbar-hover-width;
}
}
Expand All @@ -67,7 +67,7 @@
> div {
height: 100%;
}
&.is-hovering {
&:hover, &.is-hovering {
height: @scrollbar-hover-width;
}
}
Expand All @@ -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);
Expand Down

0 comments on commit b3d4042

Please sign in to comment.