From c3cf36ca5ae7491433a1c149998ed182dfafa362 Mon Sep 17 00:00:00 2001 From: Adi Dahiya Date: Thu, 9 Dec 2021 19:12:20 +0000 Subject: [PATCH 1/2] [v4] [core] fix: enable dark scrollbars in dark theme --- packages/core/src/_dark-theme.scss | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 packages/core/src/_dark-theme.scss diff --git a/packages/core/src/_dark-theme.scss b/packages/core/src/_dark-theme.scss new file mode 100644 index 0000000000..11d15b3149 --- /dev/null +++ b/packages/core/src/_dark-theme.scss @@ -0,0 +1,8 @@ +// Copyright 2021 Palantir Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. + +.#{$ns}-dark { + // this tells the browser to use a dark theme UI, which is most useful for enabling + // dark scrollbars (only works in Chrome and Edge, not IE or Firefox) + color-scheme: dark; +} From 0ee413f0e7a9b0a384dc680e1be17014ee4ee030 Mon Sep 17 00:00:00 2001 From: Adi Dahiya Date: Thu, 9 Dec 2021 19:13:16 +0000 Subject: [PATCH 2/2] import new stylesheet --- packages/core/src/blueprint.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/blueprint.scss b/packages/core/src/blueprint.scss index 0e2ab40bce..08d9bfc575 100644 --- a/packages/core/src/blueprint.scss +++ b/packages/core/src/blueprint.scss @@ -13,6 +13,7 @@ Licensed under the Apache License, Version 2.0. @import "reset"; @import "typography"; @import "accessibility/focus-states"; +@import "dark-theme"; // Button variables and overrides $button-active-minimal-intent-text-modern: (