@celestia-island/hikari 0.55.531 → 0.55.532

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celestia-island/hikari",
3
- "version": "0.55.531",
3
+ "version": "0.55.532",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Hikari UI library, Vue 3 runtime — one design system for Vue 3 and Rust/WASM applications",
@@ -67,6 +67,21 @@ afterEach(() => {
67
67
  });
68
68
 
69
69
  describe("HkInput affix reservation contract", () => {
70
+ it("the affix's type matches the field element's triple", () => {
71
+ // 2026-12-03 ayane report: an affix carrying TEXT (the registration
72
+ // form's `@domain` suffix) rendered in another family/size than the
73
+ // handle beside it — the affix rule had no font at all, so its text
74
+ // inherited along the OUTER chain while the input element carried
75
+ // hikari's explicit triple. The rule must keep the triple on the
76
+ // affix itself (MUT:affix-type-triple-dropped — deleting any of the
77
+ // three lines reddens this).
78
+ const sheet = readFileSync(join(here, "HkInput.scss"), "utf8");
79
+ const rule = /\.hk-input-affix \{([^}]*)\}/.exec(sheet)?.[1] ?? "";
80
+ expect(rule).toContain("font-family: inherit");
81
+ expect(rule).toContain("font-size: var(--text-base)");
82
+ expect(rule).toContain("line-height: 1.5");
83
+ });
84
+
70
85
  it("pins the trailing affix to the right edge", () => {
71
86
  const rule = scss.match(/\.hk-input-affix\.hk-input-suffix\s*{[^}]*}/)?.[0] ?? "";
72
87
  expect(rule, "suffix rule must exist").toContain("margin-inline-start: auto");
@@ -166,9 +166,22 @@
166
166
  resize: none;
167
167
  }
168
168
 
169
+ // The affix's type MUST match the field element's triple (the input
170
+ // element itself is font-family inherit / font-size var(--text-base) /
171
+ // line-height 1.5). Without this the affix text inherits along the OUTER
172
+ // chain and renders in another family/size than the handle beside it
173
+ // (2026-12-03 ayane report: the registration form's domain suffix did not
174
+ // match the editable local part next to it). inherit here resolves inside
175
+ // the hikari box, so both sides land on the same family. The triple lives
176
+ // INSIDE the rule — HkInput.affix.test pins it there, and a doc comment
177
+ // inside the braces would satisfy a toContain even with the real lines
178
+ // deleted.
169
179
  .hk-input-affix {
170
180
  display: flex;
171
181
  align-items: center;
182
+ font-family: inherit;
183
+ font-size: var(--text-base);
184
+ line-height: 1.5;
172
185
  color: color-mix(in srgb, rgb(var(--color-muted)) 70%, rgb(var(--color-background)));
173
186
  flex-shrink: 0;
174
187
  position: relative;
@@ -1,7 +1,7 @@
1
1
  <!doctype html>
2
2
  <html lang="en">
3
3
  <head>
4
- <meta name="hk-error-landing" content="v1 0.55.531 <dev>">
4
+ <meta name="hk-error-landing" content="v1 0.55.532 <dev>">
5
5
  <meta charset="utf-8" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
7
  <meta name="robots" content="noindex" />