Skip to content

Commit 532bde0

Browse files
Copilottyler-dane
andauthored
style(web): command palette scrollbar visibility and styling (#1093)
* Initial plan * Fix command palette scrollbar visibility and styling Co-authored-by: tyler-dane <30163055+tyler-dane@users.noreply.github.com> * style(web): remove redundant scrollbar styles --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tyler-dane <30163055+tyler-dane@users.noreply.github.com> Co-authored-by: Tyler Dane <tyler@switchback.tech>
1 parent 429223a commit 532bde0

File tree

1 file changed

+20
-0
lines changed
  • packages/web/src/components/GlobalStyle

1 file changed

+20
-0
lines changed

packages/web/src/components/GlobalStyle/styled.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,24 @@ export const GlobalStyle = createGlobalStyle`
2121
:focus-visible {
2222
outline: none;
2323
}
24+
25+
/* Command palette scrollbar styling */
26+
.command-palette .overflow-y-auto {
27+
/* Always reserve scrollbar space */
28+
&::-webkit-scrollbar {
29+
width: 8px;
30+
}
31+
32+
/* Show scrollbar when hovering over the command palette container */
33+
&:hover::-webkit-scrollbar-thumb,
34+
&:focus::-webkit-scrollbar-thumb,
35+
&:active::-webkit-scrollbar-thumb {
36+
background-color: ${theme.color.panel.scrollbar};
37+
}
38+
39+
/* Even more visible on hover of the thumb itself */
40+
&:hover::-webkit-scrollbar-thumb:hover {
41+
background-color: ${theme.color.panel.scrollbarActive};
42+
}
43+
}
2444
`;

0 commit comments

Comments
 (0)