Skip to content

Commit f637576

Browse files
committed
fix: kbd font
1 parent 43464fb commit f637576

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

apps/dashboard/app/globals.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,12 @@
356356
--font-mono:
357357
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
358358
"Courier New", monospace;
359+
360+
/* Font stack for kbd elements with better symbol support */
361+
--font-kbd:
362+
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
363+
Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
364+
"Segoe UI Symbol", "Noto Color Emoji";
359365

360366
--radius: 0.35rem;
361367
--radius-sm: 0.375rem;
@@ -454,6 +460,12 @@
454460
--font-mono:
455461
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
456462
"Courier New", monospace;
463+
464+
/* Font stack for kbd elements with better symbol support */
465+
--font-kbd:
466+
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
467+
Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
468+
"Segoe UI Symbol", "Noto Color Emoji";
457469
--radius: 0.35rem;
458470
--radius-sm: 0.375rem;
459471
--radius-md: 0.5rem;
@@ -518,6 +530,13 @@
518530
max-width: 65ch;
519531
}
520532

533+
/* Ensure kbd elements use fonts with good symbol support */
534+
kbd {
535+
font-family: var(--font-kbd);
536+
font-weight: 500;
537+
letter-spacing: 0.025em;
538+
}
539+
521540
}
522541

523542
/* ==========================================================================

apps/dashboard/components/charts/range-selection-popup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export function RangeSelectionPopup({
103103
weight="duotone"
104104
/>
105105
<span className="flex-1 text-foreground">Zoom to range</span>
106-
<kbd className="rounded border bg-accent px-1.5 py-0.5 font-mono text-[10px] text-foreground">
106+
<kbd className="rounded border bg-accent px-1.5 py-0.5 text-[10px] text-foreground">
107107
Z
108108
</kbd>
109109
</button>
@@ -117,7 +117,7 @@ export function RangeSelectionPopup({
117117
weight="duotone"
118118
/>
119119
<span className="flex-1 text-foreground">Add annotation…</span>
120-
<kbd className="rounded border bg-accent px-1.5 py-0.5 font-mono text-[10px] text-foreground">
120+
<kbd className="rounded border bg-accent px-1.5 py-0.5 text-[10px] text-foreground">
121121
A
122122
</kbd>
123123
</button>

apps/dashboard/components/ui/keyboard-shortcuts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function KeyboardShortcuts({
8585
<span className="text-muted-foreground text-sm">
8686
{shortcut.label}
8787
</span>
88-
<kbd className="rounded border bg-secondary px-1.5 py-0.5 font-mono text-xs">
88+
<kbd className="rounded border bg-secondary px-1.5 py-0.5 text-xs">
8989
{displayKeys}
9090
</kbd>
9191
</div>

0 commit comments

Comments
 (0)