Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,9 @@
}

.citation-chip {
display: inline-flex;
align-items: center;
min-height: var(--size-control-min);
border: 1px solid var(--color-chip-border);
border-radius: var(--radius-chip);
padding: var(--space-chip-block) var(--space-chip-inline);
Expand Down
10 changes: 10 additions & 0 deletions frontend/src/styles/tokens.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,14 @@ describe("design tokens", () => {
expect(appCss, `App.css never references var(${token})`).toContain(`var(${token})`);
}
});

it("gives .citation-chip a real 24px minimum touch target", () => {
const citationChipBlock = appCss.match(/\.citation-chip\s*\{[^}]*\}/)?.[0] ?? "";
expect(citationChipBlock, ".citation-chip rule not found in App.css").not.toBe("");
expect(citationChipBlock).toContain("min-height: var(--size-control-min)");
// The chip is a bare <button>; without flex centering its text sits at
// the top of the box once min-height grows past the line height.
expect(citationChipBlock).toContain("display: inline-flex");
expect(citationChipBlock).toContain("align-items: center");
});
});
Loading