Move TCG gauges, badges and tooltips onto the NDS
- 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:
parent
ced3bc818d
commit
ac81b5e22f
44 changed files with 350 additions and 274 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue