summaryrefslogtreecommitdiffhomepage
path: root/src/features/tabs/ui.test.ts
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-10-21 20:32:41 +0900
committerAdam Malczewski <[email protected]>2026-10-21 20:32:41 +0900
commitbac1e1c39398ddcb0866db510c11bed75ac3a9a8 (patch)
tree5b2bde4e1db4683290ea0c1a42eb61c498a06402 /src/features/tabs/ui.test.ts
parent564b2c1d03cf477d7cfc23414b60d1ec76904ecc (diff)
downloaddispatch-web-bac1e1c39398ddcb0866db510c11bed75ac3a9a8.tar.gz
dispatch-web-bac1e1c39398ddcb0866db510c11bed75ac3a9a8.zip
feat(tabs): rotate three theme colours per group nesting level
Diffstat (limited to 'src/features/tabs/ui.test.ts')
-rw-r--r--src/features/tabs/ui.test.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/features/tabs/ui.test.ts b/src/features/tabs/ui.test.ts
index 2569438..8785ea9 100644
--- a/src/features/tabs/ui.test.ts
+++ b/src/features/tabs/ui.test.ts
@@ -383,9 +383,11 @@ describe("TabList", () => {
s?.paddingLeft,
]);
}
- // Every box paints a 15% lavender tint, so nested boxes compound per level.
- expect(outer).toHaveClass("bg-secondary/15");
- expect(inner).toHaveClass("bg-secondary/15");
+ // Each level is tinted with its own rotating theme colour.
+ expect(outer?.dataset.tone).toBe("secondary");
+ expect(inner?.dataset.tone).toBe("success");
+ expect(outer?.style.getPropertyValue("--group-tone")).toBe("var(--color-secondary)");
+ expect(inner?.style.getPropertyValue("--group-tone")).toBe("var(--color-success)");
expect(outer?.style.getPropertyValue("margin-inline")).toBe(`-${outer?.style.paddingLeft}`);
});