Skip to content

Commit fa9bb25

Browse files
committed
Updates scrollbar styles
- separates scrollbar fix in scss to its own mixin - adds preload selector in scrollbar styles in web components
1 parent e09e82f commit fa9bb25

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/webviews/apps/shared/components/styles/lit/base.css.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,8 @@ export const scrollableBase = css`
6161
border-color: var(--vscode-scrollbarSlider-background);
6262
transition: none;
6363
}
64+
65+
:host-context(.preload) .scrollable {
66+
transition: none;
67+
}
6468
`;

src/webviews/apps/shared/styles/scrollbars.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
@mixin scrollableBase() {
1+
@mixin scrollbarFix() {
22
// This @supports selector is a temporary fix for https://github.com/microsoft/vscode/issues/213045#issuecomment-2211442905
33
@supports selector(::-webkit-scrollbar) {
44
html {
55
scrollbar-color: unset;
66
}
77
}
8+
}
9+
10+
@mixin scrollableBase() {
11+
@include scrollbarFix();
812

913
body {
1014
&.scrollable,

0 commit comments

Comments
 (0)