Skip to content

Commit bd2a6f8

Browse files
author
domyen
committed
Scrollbar supports theming again
1 parent 1891e9f commit bd2a6f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/components/src/ScrollArea/ScrollAreaStyles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ export const getScrollAreaStyles: (theme: Theme) => Interpolation = (theme: Them
115115
'.simplebar-scrollbar:before': {
116116
position: 'absolute',
117117
content: '""',
118-
background: 'black',
119118
borderRadius: 7,
120119
left: 0,
121120
right: 0,
122121
opacity: 0,
123122
transition: 'opacity 0.2s linear',
123+
background: theme.base === 'light' ? theme.color.darkest : theme.color.lightest,
124124
},
125125

126126
'.simplebar-track .simplebar-scrollbar.simplebar-visible:before': {

0 commit comments

Comments
 (0)