-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Open
Description
Version
1.56.0
Steps to reproduce
- Have system theme set to white
- Go to https://trace.playwright.dev/
- Change system theme to dark (or simulate
prefers-color-schemechange via chrome devtools)
Expected behavior
Playwright theme to changed to dark-mode
Actual behavior
Playwright theme stays in light-mode
Additional context
An event listener should be attached to prefersDarkScheme in packages/web/src/theme.ts to listen for changes (note that a change should also call all listeners).
Environment
System:
OS: Linux 6.6 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)
CPU: (12) x64 Intel(R) Core(TM) i5-10505 CPU @ 3.20GHz
Memory: 10.39 GB / 23.47 GB
Container: Yes
Binaries:
Node: 22.15.1 - /usr/bin/node
Yarn: 1.22.22 - /usr/bin/yarn
npm: 10.9.2 - /usr/bin/npm
pnpm: 10.15.0 - /usr/bin/pnpm
npmPackages:
@playwright/test: ^1.56.0 => 1.56.0Metadata
Metadata
Assignees
Labels
No labels