Move TCG gauges, badges and tooltips onto the NDS
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 25m18s
Validate and deploy Sokko G / deploy (push) Successful in 16s

- nds-progress tint variant, nds-badge sm size and tint variant
- --color-scrim and --color-bg-inset tokens
- native title attributes replaced by Tooltip
- TCG colors equal to a token now reference it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-12-05 19:44:00 +01:00
parent ced3bc818d
commit ac81b5e22f
44 changed files with 350 additions and 274 deletions

View file

@ -283,7 +283,8 @@ test("player opens and reveals a three-card pack", async ({ page }) => {
await originsPack.hover();
await expect(originsPack).toHaveCSS("background-image", "none");
await expect(originsPack).toHaveCSS("box-shadow", "none");
await expect(originsPack.locator(".nebula-pack-back")).toHaveCSS("box-shadow", /246, 196, 83/);
// Halo or : écrit en color-mix() depuis le token, Chromium le renvoie en color(srgb …) plutôt qu'en rgba().
await expect(originsPack.locator(".nebula-pack-back")).toHaveCSS("box-shadow", /246, 196, 83|color\(srgb 0\.964706 0\.768627 0\.32549/);
await expect(originsPack.locator(".nebula-pack-copy")).toHaveCSS("-webkit-line-clamp", "3");
// Les descriptions actuelles tiennent sur ces trois lignes, sans points de suspension.
expect(await page.locator(".nebula-pack-copy").evaluateAll((copies) => copies.every((copy) => copy.scrollHeight <= copy.clientHeight))).toBe(true);