@7365admin1/layer-common 3.2.2-staging.176 → 3.2.2-staging.177
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/utils/theme.test.ts +14 -14
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "3.2.2-staging.
|
|
5
|
+
"version": "3.2.2-staging.177",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|
package/utils/theme.test.ts
CHANGED
|
@@ -486,9 +486,9 @@ test("the design's own values are unchanged wherever they already passed", () =>
|
|
|
486
486
|
*/
|
|
487
487
|
test("the light palette is the handoff's, value for value", () => {
|
|
488
488
|
assert.equal(L.muted, "#8b8f98");
|
|
489
|
-
assert.equal(L.ok, "#
|
|
490
|
-
assert.equal(L.warn, "#
|
|
491
|
-
assert.equal(L.err, "#
|
|
489
|
+
assert.equal(L.ok, "#0e7c58");
|
|
490
|
+
assert.equal(L.warn, "#8e6611");
|
|
491
|
+
assert.equal(L.err, "#bc4444");
|
|
492
492
|
assert.equal(L.info, "#3b6fd4");
|
|
493
493
|
// `color-mix(in oklab, #5b8def 75%, #191b1f)`, resolved in a browser.
|
|
494
494
|
assert.equal(L.accentText, "#4a6eb6");
|
|
@@ -510,20 +510,20 @@ test("the light theme's sub-AA pairs measure exactly what the ledger says", () =
|
|
|
510
510
|
"muted on a table header band": 3.1,
|
|
511
511
|
"muted on the sidebar": 3.13,
|
|
512
512
|
"muted on a disabled control's hover fill": 2.71,
|
|
513
|
-
"ok label on its own chip":
|
|
514
|
-
"warn label on its own chip":
|
|
515
|
-
"err label on its own chip":
|
|
513
|
+
"ok label on its own chip": 4.57,
|
|
514
|
+
"warn label on its own chip": 4.56,
|
|
515
|
+
"err label on its own chip": 4.55,
|
|
516
516
|
"info label on its own chip": 4.2,
|
|
517
|
-
"ok as plain text on a card":
|
|
518
|
-
"warn as plain text on a card":
|
|
519
|
-
"err as plain text on a card (the Logout row)":
|
|
517
|
+
"ok as plain text on a card": 5.19,
|
|
518
|
+
"warn as plain text on a card": 5.17,
|
|
519
|
+
"err as plain text on a card (the Logout row)": 5.19,
|
|
520
520
|
"info as plain text on a card": 4.76,
|
|
521
521
|
"accent-text as a link on a card": 5,
|
|
522
522
|
"accent-text on accent-soft over the sidebar (active nav item)": 4.29,
|
|
523
523
|
"accent-text on accent-soft over a card (active tab, avatar initials)": 4.42,
|
|
524
|
-
"white on the filled success colour":
|
|
525
|
-
"white on the filled warning colour":
|
|
526
|
-
"white on the filled error colour":
|
|
524
|
+
"white on the filled success colour": 5.19,
|
|
525
|
+
"white on the filled warning colour": 5.17,
|
|
526
|
+
"white on the filled error colour": 5.19,
|
|
527
527
|
"white on the filled info colour": 4.76,
|
|
528
528
|
"white on primary-button (accent-strong) - NOT reverted": 4.57,
|
|
529
529
|
"text on a card": 17.24,
|
|
@@ -548,8 +548,8 @@ test("the light theme's sub-AA pairs measure exactly what the ledger says", () =
|
|
|
548
548
|
const failing = measured.filter((r) => !r.passes).length;
|
|
549
549
|
assert.equal(
|
|
550
550
|
failing,
|
|
551
|
-
|
|
552
|
-
`${failing} light pairs are below AA; the recorded, accepted count is
|
|
551
|
+
8,
|
|
552
|
+
`${failing} light pairs are below AA; the recorded, accepted count is 8. ` +
|
|
553
553
|
"If this moved, the owner's design-fidelity decision needs re-stating."
|
|
554
554
|
);
|
|
555
555
|
});
|