From bd2a6f87e6afe1614d507dd78028d0e38769422c Mon Sep 17 00:00:00 2001 From: domyen Date: Thu, 16 May 2019 09:15:40 +0800 Subject: [PATCH 1/2] Scrollbar supports theming again --- lib/components/src/ScrollArea/ScrollAreaStyles.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/src/ScrollArea/ScrollAreaStyles.tsx b/lib/components/src/ScrollArea/ScrollAreaStyles.tsx index fb8165f019dc..370d2b053231 100644 --- a/lib/components/src/ScrollArea/ScrollAreaStyles.tsx +++ b/lib/components/src/ScrollArea/ScrollAreaStyles.tsx @@ -115,12 +115,12 @@ export const getScrollAreaStyles: (theme: Theme) => Interpolation = (theme: Them '.simplebar-scrollbar:before': { position: 'absolute', content: '""', - background: 'black', borderRadius: 7, left: 0, right: 0, opacity: 0, transition: 'opacity 0.2s linear', + background: theme.base === 'light' ? theme.color.darkest : theme.color.lightest, }, '.simplebar-track .simplebar-scrollbar.simplebar-visible:before': { From fc9a5ca1b5890ce56394fd83d5f62b6dbb4c10ee Mon Sep 17 00:00:00 2001 From: domyen Date: Thu, 16 May 2019 11:06:42 +0800 Subject: [PATCH 2/2] Update snapshots --- .../src/components/__snapshots__/A11YPanel.test.js.snap | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/a11y/src/components/__snapshots__/A11YPanel.test.js.snap b/addons/a11y/src/components/__snapshots__/A11YPanel.test.js.snap index 491016a4c4a7..f374e1486876 100644 --- a/addons/a11y/src/components/__snapshots__/A11YPanel.test.js.snap +++ b/addons/a11y/src/components/__snapshots__/A11YPanel.test.js.snap @@ -322,7 +322,7 @@ exports[`A11YPanel should render report 1`] = ` data-emotion="css-global" > - .simplebar-scrollbar:before{position:absolute;content:"";background:black;border-radius:7px;left:0;right:0;opacity:0;-webkit-transition:opacity 0.2s linear;transition:opacity 0.2s linear;} + .simplebar-scrollbar:before{position:absolute;content:"";border-radius:7px;left:0;right:0;opacity:0;-webkit-transition:opacity 0.2s linear;transition:opacity 0.2s linear;background:#333333;}