Skip to content

Commit b494a8d

Browse files
committed
fix input/textarea rendering in monospace font
set a system font-family on :root/:host, overridable via --ft-font-family, and reset input/textarea/select to inherit it so form controls no longer fall back to the browser's default (often monospace) font
1 parent 9f7be19 commit b494a8d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/styles/global.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,13 @@
1313
--_surface-padding: var(--ft-surface-padding, 24px);
1414
--_surface-padding-mobile: var(--ft-surface-padding-mobile, 20px);
1515
--_surface-radius: var(--ft-surface-radius, 8px);
16+
--_font-family: var(--ft-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
17+
18+
font-family: var(--_font-family);
19+
}
20+
21+
input,
22+
textarea,
23+
select {
24+
font: inherit;
1625
}

0 commit comments

Comments
 (0)