mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-04 18:30:09 +00:00
docs/.pa11yci.json listed 4 plain URLs with no theme setup, so the scan only ever exercised whichever theme the headless browser initializes by default -- observed locally to be light, meaning the gate never actually looked at dark mode. Add a ?theme=light|dark query param that js/app.js's initTheme() honors ahead of localStorage/prefers-color-scheme, and list each of the 4 scanned pages twice in .pa11yci.json, once per theme (8 URLs total). This makes the both-theme scan deterministic regardless of the browser's default color scheme, rather than depending on it.