@celestia-island/hikari 0.43.5 → 0.43.6
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
|
@@ -40,4 +40,24 @@ describe("HkThemeToggle row lead-cell contract", () => {
|
|
|
40
40
|
// target the lead slot class.
|
|
41
41
|
expect(css).not.toMatch(/\.s-theme-item-btn \.hk-menu-item-icon\s*\{/);
|
|
42
42
|
});
|
|
43
|
+
|
|
44
|
+
it("aligns the customize row to the lead column without rescaling its glyph", () => {
|
|
45
|
+
const css = read("HkThemeToggle.scss");
|
|
46
|
+
// The customize affordance joins the 28px lead column (2026-09-11
|
|
47
|
+
// field report: its palette sat a full cell left of the rows' bitmap
|
|
48
|
+
// marks), but the glyph must keep the standard menu icon size —
|
|
49
|
+
// mi.icon normalizes svg to the cell, so the box is pinned back.
|
|
50
|
+
const block = css.match(
|
|
51
|
+
/\.s-theme-item-customize \.hk-menu-item-icon\s*\{[^}]*\}/,
|
|
52
|
+
);
|
|
53
|
+
expect(block).not.toBeNull();
|
|
54
|
+
expect(block![0]).toContain("width: 28px");
|
|
55
|
+
expect(block![0]).toContain("height: 28px");
|
|
56
|
+
|
|
57
|
+
const svgBlock = css.match(
|
|
58
|
+
/\.s-theme-item-customize \.hk-menu-item-icon > svg\s*\{[^}]*\}/,
|
|
59
|
+
);
|
|
60
|
+
expect(svgBlock).not.toBeNull();
|
|
61
|
+
expect(svgBlock![0]).toContain("var(--hk-menu-item-icon-box)");
|
|
62
|
+
});
|
|
43
63
|
});
|
|
@@ -210,6 +210,26 @@
|
|
|
210
210
|
height: 28px;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
+
/* The customize affordance joins the theme rows' 28px lead column so the
|
|
214
|
+
* palette glyph and the row marks sit on one line and every name starts
|
|
215
|
+
* at the same x (2026-09-11 field report: with the lead cell at 28px and
|
|
216
|
+
* this row at the generic box, the selected theme's bitmap mark read a
|
|
217
|
+
* full cell to the right of the customize palette). The cell widens but
|
|
218
|
+
* the GLYPH keeps the standard menu icon size — mi.icon normalizes svg
|
|
219
|
+
* to the cell, so the box is pinned back explicitly; widening a cell
|
|
220
|
+
* must never re-scale its glyph (the 0.42.2 regression class). */
|
|
221
|
+
.s-theme-item-customize .hk-menu-item-icon {
|
|
222
|
+
@include mi.icon;
|
|
223
|
+
|
|
224
|
+
width: 28px;
|
|
225
|
+
height: 28px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.s-theme-item-customize .hk-menu-item-icon > svg {
|
|
229
|
+
width: var(--hk-menu-item-icon-box);
|
|
230
|
+
height: var(--hk-menu-item-icon-box);
|
|
231
|
+
}
|
|
232
|
+
|
|
213
233
|
/* Custom rows keep the name clear of the overlaid delete button. */
|
|
214
234
|
.s-theme-item-row[data-custom] .s-theme-item-name {
|
|
215
235
|
margin-right: 2rem;
|