Skip to content

DateField: monospace font #39

Description

@ValeraS

Objective

Currently, DateField uses proportional (non-monospace) font. In proportional fonts, digits and separators can have different widths (and widths can vary across digits), so the caret and surrounding text shift as you enter or edit values. That “jumping” feels glitchy.

Screen.Recording.2026-02-10.at.11.17.46.mov

Also proportional font makes it difficult to set an input width that fits content. The CSS property field-sizing can help, but browser support is limited.

Solution Proposal

Using a monospace font keeps the input visually stable.

Screen.Recording.2026-02-10.at.11.19.09.mov

It also makes it easy to keep the input width in sync with its content using the size attribute.

Native <input type="date"> uses monospace font.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions