Skip to content

Commit 87dbcf1

Browse files
author
Enrique Moreno
committed
Added scrollbar mixin
1 parent a93c0e0 commit 87dbcf1

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

packages/lib/src/contextual-menu/ContextualMenu.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import ContextualMenuPropsType, {
1212
} from "./types";
1313
import Section from "./Section";
1414
import ContextualMenuContext from "./ContextualMenuContext";
15+
import { scrollbarStyles } from "../styles/scroll";
1516

1617
const ContextualMenu = styled.div`
1718
box-sizing: border-box;
@@ -27,18 +28,7 @@ const ContextualMenu = styled.div`
2728
background-color: var(--color-bg-neutral-lightest);
2829
overflow-y: auto;
2930
overflow-x: hidden;
30-
&::-webkit-scrollbar {
31-
width: 8px;
32-
height: 8px;
33-
}
34-
&::-webkit-scrollbar-thumb {
35-
background-color: var(--color-fg-neutral-strong);
36-
border-radius: var(--border-radius-s);
37-
}
38-
&::-webkit-scrollbar-track {
39-
background-color: var(--color-bg-neutral-light);
40-
border-radius: 0 var(--border-radius-s) var(--border-radius-s) 0;
41-
}
31+
${scrollbarStyles}
4232
`;
4333

4434
const StyledSubMenu = styled.ul`

0 commit comments

Comments
 (0)