| author | |
| committer | |
| log | 73776d4e52087331245e82ebf3c053ae0991935d |
| tree | a38f0642524f8c8df99ecd7eb34d3a8348c2ab1d |
| parent | 0947c30e6946b2ad6d6cd518fd44292e75e834e8 |
| signature | Signed by PGP key B5690EEEBB952194 |
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>2 files changed, 0 insertions(+), 43 deletions(-)
apps/mobile/src/lib/typography.test.ts deleted-20| ... | @@ -1,20 +0,0 @@ | ||
| 1 | import { describe, expect, it } from "vite-plus/test"; | ||
| 2 | |||
| 3 | import { MOBILE_CODE_SURFACE, MOBILE_TYPOGRAPHY } from "./typography"; | ||
| 4 | |||
| 5 | describe("mobile typography", () => { | ||
| 6 | it("uses the intentional mobile font scale anchored at a 16pt body", () => { | ||
| 7 | expect(Object.values(MOBILE_TYPOGRAPHY).map(({ fontSize }) => fontSize)).toEqual([ | ||
| 8 | 11, 12, 13, 14, 16, 18, 21, 26, 30, | ||
| 9 | ]); | ||
| 10 | expect(MOBILE_TYPOGRAPHY.body).toEqual({ fontSize: 16, lineHeight: 23 }); | ||
| 11 | }); | ||
| 12 | |||
| 13 | it("uses caption-sized code with a compact readable row height", () => { | ||
| 14 | expect(MOBILE_CODE_SURFACE).toMatchObject({ | ||
| 15 | fontSize: MOBILE_TYPOGRAPHY.caption.fontSize, | ||
| 16 | lineNumberFontSize: MOBILE_TYPOGRAPHY.micro.fontSize, | ||
| 17 | rowHeight: 22, | ||
| 18 | }); | ||
| 19 | }); | ||
| 20 | }); | ||
apps/web/src/components/ui/menu.test.tsx deleted-23| ... | @@ -1,23 +0,0 @@ | ||
| 1 | import { renderToStaticMarkup } from "react-dom/server"; | ||
| 2 | import { describe, expect, it } from "vite-plus/test"; | ||
| 3 | |||
| 4 | import { Menu, MenuRadioGroup, MenuRadioItem } from "./menu"; | ||
| 5 | |||
| 6 | describe("menu radio item geometry", () => { | ||
| 7 | it("keeps radio-item icons on the same text grid as menu items", () => { | ||
| 8 | const html = renderToStaticMarkup( | ||
| 9 | <Menu> | ||
| 10 | <MenuRadioGroup value="merge"> | ||
| 11 | <MenuRadioItem value="merge"> | ||
| 12 | <span className="flex items-center gap-2"> | ||
| 13 | <svg aria-hidden className="size-3.5" /> | ||
| 14 | <span>Merge</span> | ||
| 15 | </span> | ||
| 16 | </MenuRadioItem> | ||
| 17 | </MenuRadioGroup> | ||
| 18 | </Menu>, | ||
| 19 | ); | ||
| 20 | |||
| 21 | expect(html).toContain("-mx-0.5"); | ||
| 22 | }); | ||
| 23 | }); | ||