Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(ui-mode): properly color checkboxes and scrollbars with diff themes (#37126)

Adam Gastineau5086e5634fb3
diff --git a/packages/web/src/third_party/vscode/colors.css b/packages/web/src/third_party/vscode/colors.css
index e6aa7a49c4..fc455b5b20 100644
--- a/packages/web/src/third_party/vscode/colors.css
+++ b/packages/web/src/third_party/vscode/colors.css
@@ -544,7 +544,13 @@ body {
--vscode-gitDecoration-submoduleResourceForeground: #1258a7;
}
+body.light-mode {
+ color-scheme: light;
+}
+
body.dark-mode {
+ color-scheme: dark;
+
--vscode-font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif;
--vscode-font-weight: normal;
--vscode-font-size: 13px;