From a25dcf5a48677455fb63f72ee49ac82d9eabffe5 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Thu, 9 Jan 2020 22:39:27 +0100 Subject: [PATCH 01/15] CHANGE to use overlayscrollbars over simplebars --- lib/components/package.json | 4 +- lib/components/src/ScrollArea/ScrollArea.tsx | 24 +- .../src/ScrollArea/ScrollAreaStyles.tsx | 750 ++++++++++++++---- lib/components/src/typings.d.ts | 1 - yarn.lock | 45 +- 5 files changed, 627 insertions(+), 197 deletions(-) diff --git a/lib/components/package.json b/lib/components/package.json index ca4883200639..a5660bef4e1d 100644 --- a/lib/components/package.json +++ b/lib/components/package.json @@ -46,7 +46,9 @@ "react-popper-tooltip": "^2.8.3", "react-syntax-highlighter": "^11.0.2", "react-textarea-autosize": "^7.1.0", - "simplebar-react": "^1.0.0-alpha.6", + "overlayscrollbars-react": "^0.2.1", + "@types/overlayscrollbars": "^1.9.0", + "overlayscrollbars": "^1.10.2", "ts-dedent": "^1.1.0" }, "devDependencies": { diff --git a/lib/components/src/ScrollArea/ScrollArea.tsx b/lib/components/src/ScrollArea/ScrollArea.tsx index 04d05f9779d2..89be9207f098 100644 --- a/lib/components/src/ScrollArea/ScrollArea.tsx +++ b/lib/components/src/ScrollArea/ScrollArea.tsx @@ -1,10 +1,7 @@ -// Storybook's implementation of SimpleBar https://github.com/Grsmto/simplebar -// Note: "SimpleBar can't be used on the ,