Skip to content

Commit 6b1c9fe

Browse files
authored
Fix opacity of ScrollContainer buttons on bold themes (#3764)
1 parent cc97699 commit 6b1c9fe

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/two-rocks-cry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gitbook": patch
3+
---
4+
5+
Fix opacity of ScrollContainer buttons on bold themes

packages/gitbook/src/components/primitives/ScrollContainer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export function ScrollContainer(props: ScrollContainerProps) {
165165
orientation === 'horizontal'
166166
? '-translate-y-1/2! top-1/2 left-0 ml-2'
167167
: '-translate-x-1/2! top-0 left-1/2 mt-2',
168-
'absolute not-pointer-none:block hidden scale-0 opacity-0 transition-[scale,opacity]',
168+
'absolute not-pointer-none:block hidden scale-0 opacity-0 backdrop-blur-xl transition-[scale,opacity]',
169169
scrollPosition > 0
170170
? 'not-pointer-none:group-hover/scroll-container:scale-100 not-pointer-none:group-hover/scroll-container:opacity-11'
171171
: 'pointer-events-none'
@@ -183,7 +183,7 @@ export function ScrollContainer(props: ScrollContainerProps) {
183183
orientation === 'horizontal'
184184
? '-translate-y-1/2! top-1/2 right-0 mr-2'
185185
: '-translate-x-1/2! bottom-0 left-1/2 mb-2',
186-
'absolute not-pointer-none:block hidden scale-0 transition-[scale,opacity]',
186+
'absolute not-pointer-none:block hidden scale-0 backdrop-blur-xl transition-[scale,opacity]',
187187
scrollPosition < scrollSize
188188
? 'not-pointer-none:group-hover/scroll-container:scale-100 not-pointer-none:group-hover/scroll-container:opacity-11'
189189
: 'pointer-events-none'

0 commit comments

Comments
 (0)