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
5 changes: 5 additions & 0 deletions .changeset/fix-table-font-size.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudflare/kumo": patch
---

Fix Table body cells rendering at 16px. The Table root now sets text-base (14px) so <td> cells match Kumo's default body font-size instead of inheriting the browser default. Also replaces an arbitrary text-[14px] in Empty with text-base.
2 changes: 1 addition & 1 deletion packages/kumo/src/components/empty/empty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function Empty({
)}
>
<span className="text-xs text-kumo-inactive select-none">$</span>
<span className="no-scrollbar overflow-scroll text-[14px] whitespace-nowrap text-kumo-brand">
<span className="no-scrollbar overflow-scroll text-base whitespace-nowrap text-kumo-brand">
{commandLine}
</span>
<Button
Expand Down
2 changes: 1 addition & 1 deletion packages/kumo/src/components/table/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const TableRoot = forwardRef<
"[&_td]:p-3", // Cell padding
"[&_th]:border-b [&_th]:border-kumo-fill [&_th]:p-3 [&_th]:font-semibold [&_th]:text-base", // Header styles
"[&_th]:bg-kumo-base", // Header background color
"text-left text-kumo-default",
"text-base text-left text-kumo-default",
props.className,
);

Expand Down
Loading