fix(player): a chosen tab's underline and an open or pressed icon read the scope's chosen colour

The underline named `--color-chosen`, which is resolved once on :root, so it stayed the accent under
`media-marks` (seen in the browser: fuchsia on Slate light); it reads `--chosen` where it is used
now. An icon button pressed or with its menu open tinted its glyph with the accent; it takes the
chosen colour — the accent everywhere but the player chrome, where it is the media amber.
This commit is contained in:
2026-10-10 22:26:22 +02:00
parent 5b48018e92
commit 93192dadd8
5 changed files with 19 additions and 5 deletions
+4 -1
View File
@@ -68,6 +68,9 @@ describe("Tabs", () => {
const on = tab("Alpha").className;
expect(on).not.toMatch(/\btext-accent\b/);
expect(on).toMatch(/\btext-white\b/);
expect(on).toMatch(/--color-chosen/);
// The scope's own `--chosen`, read where it is used: `--color-chosen` is resolved once on :root
// and would stay the accent under `media-marks`.
expect(on).toMatch(/var\(--chosen,/);
expect(on).not.toMatch(/--color-chosen/);
});
});