From 818fda7b0f6297fb47ecd3a3bcd3f2578a4817b2 Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 3 Dec 2024 16:25:29 +0800 Subject: [PATCH] * scrollbar: fix css var --scrollbar-bg not work as expected. --- lib/scrollbar/src/style/scrollbar.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/scrollbar/src/style/scrollbar.css b/lib/scrollbar/src/style/scrollbar.css index 2ae836ea87..88a890e5c4 100644 --- a/lib/scrollbar/src/style/scrollbar.css +++ b/lib/scrollbar/src/style/scrollbar.css @@ -6,10 +6,11 @@ ::-webkit-scrollbar-track { box-shadow: var(--scrollbar-shadow); transition: background-color var(--scrollbar-duration); + background: var(--scrollbar-bg); } :hover::-webkit-scrollbar-track, ::-webkit-scrollbar-track:hover { - background: var(--scrollbar-bg); + background: var(--scrollbar-hover-bg); } ::-webkit-scrollbar-thumb {