Skip to content

Open-ended input/textarea render in monospace (no font-family / no inherit) #5

Description

@levalex

Problem

The open-ended <input> / <textarea> fields render in a monospace font by default. Browsers apply their own default font to form controls (monospace for <textarea> in several browsers), and the library never overrides it.

Seen on the library page (/library).

Cause

  • .input / .textarea in src/components/Feedback/Feedback.module.scss set font-size and line-height but no font-family.
  • src/styles/global.scss defines only color/spacing CSS variables — no font-family and no input, textarea { font: inherit } reset.

So form controls fall back to the UA default font.

Expected

Input/textarea use the same font as the rest of the widget. Either inherit the font on form controls (input, textarea, select { font: inherit }) and/or set a system font stack (system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) so nothing extra is loaded.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions