localize legacy UI component styles

This commit is contained in:
2026-08-09 21:07:10 +05:30
parent 3f5ec8696f
commit 6859b5c4ff
17 changed files with 512 additions and 866 deletions
+10 -2
View File
@@ -27,8 +27,16 @@ test("bundled UI assets are discoverable and readable", () => {
});
test("global UI CSS stays below its migration ratchet", () => {
expect(gzipSync(new TextEncoder().encode(uiCss())).length).toBeLessThanOrEqual(12_672);
expect(uiCss()).not.toContain(".wire-switch");
const css = uiCss();
expect(gzipSync(new TextEncoder().encode(css)).length).toBeLessThanOrEqual(9_338);
for (const localOrRemovedFamily of [
".wire-switch",
".wire-alert",
".wire-card",
".wire-dropdown",
]) {
expect(css).not.toContain(localOrRemovedFamily);
}
});
test("every bundled component carries local styles", () => {