From fe03ae3e5995001e35ddfe1f2c390a0e56d439b6 Mon Sep 17 00:00:00 2001 From: jmfrancois Date: Thu, 19 Oct 2023 14:56:50 +0200 Subject: [PATCH 1/3] chore: remove simplebar --- packages/components/package.json | 2 -- .../src/SidePanel/SidePanel.component.js | 4 --- .../src/SidePanel/SidePanel.module.scss | 3 +- .../src/SidePanel/SidePanel.stories.js | 2 +- yarn.lock | 34 ++----------------- 5 files changed, 5 insertions(+), 40 deletions(-) diff --git a/packages/components/package.json b/packages/components/package.json index 72060d8df07..6fef9f88bcf 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -63,8 +63,6 @@ "react-virtualized": "^9.22.5", "reactour": "^1.19.1", "recharts": "^2.8.0", - "simplebar": "^5.3.9", - "simplebar-react": "^2.4.3", "styled-components": "^5.3.11" }, "devDependencies": { diff --git a/packages/components/src/SidePanel/SidePanel.component.js b/packages/components/src/SidePanel/SidePanel.component.js index d6cf6b12704..d437f9c2828 100644 --- a/packages/components/src/SidePanel/SidePanel.component.js +++ b/packages/components/src/SidePanel/SidePanel.component.js @@ -3,9 +3,6 @@ import { createRef, useState, useLayoutEffect, useEffect } from 'react'; import classNames from 'classnames'; import { withTranslation } from 'react-i18next'; -import 'simplebar'; -import 'simplebar/dist/simplebar.css'; - import I18N_DOMAIN_COMPONENTS from '../constants'; import '../translate'; import Action from '../Actions/Action'; @@ -149,7 +146,6 @@ function SidePanel({ {injected('before-actions')} {actions && (
( export const WithALargeAmountOfItems = () => ( Date: Thu, 19 Oct 2023 15:09:43 +0200 Subject: [PATCH 2/3] fix: make it basic --- packages/components/src/SidePanel/SidePanel.module.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/components/src/SidePanel/SidePanel.module.scss b/packages/components/src/SidePanel/SidePanel.module.scss index df38373a7ee..46209f3b487 100644 --- a/packages/components/src/SidePanel/SidePanel.module.scss +++ b/packages/components/src/SidePanel/SidePanel.module.scss @@ -40,6 +40,11 @@ $large-docked-width: 7rem; overflow-y: auto; overflow-x: hidden; + &::-webkit-scrollbar { + background-color: tokens.$coral-color-branding-navigation; + width: tokens.$coral-sizing-minimal; + } + :global .tc-side-panel-list { background: transparent; } From 3d22c59e71a958dfe49bb4687ac4fc97a3f4d95f Mon Sep 17 00:00:00 2001 From: jmfrancois Date: Mon, 23 Oct 2023 14:48:19 +0200 Subject: [PATCH 3/3] test: update snap --- .../src/SidePanel/__snapshots__/SidePanel.test.js.snap | 1 - .../src/SidePanel/__snapshots__/SidePanel.test.js.snap | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/components/src/SidePanel/__snapshots__/SidePanel.test.js.snap b/packages/components/src/SidePanel/__snapshots__/SidePanel.test.js.snap index fbaa1ac1037..1cd9d21ecef 100644 --- a/packages/components/src/SidePanel/__snapshots__/SidePanel.test.js.snap +++ b/packages/components/src/SidePanel/__snapshots__/SidePanel.test.js.snap @@ -27,7 +27,6 @@ exports[`SidePanel should render 1`] = `