Skip to content

TextInput: Value/Placeholder font size doesn't respect it's size variant #4851

@maximedegreve

Description

@maximedegreve

Description

We've noticed an issue on the platform where small buttons are paired with small text inputs, the text inputs use a medium font size instead of a small font-size. This creates a mismatch in the visual hierarchy, as shown below:

Example of a list in Figma with secondary buttons. The first row has a small button with small text and the second row has a small input with medium text

Upon investigation, we found that small text fields are implemented correctly in Rails. However, in React and Figma, this implementation isn't consistent.

You can check the correct Rails implementation here: Text Field Playground.

Steps to reproduce

Go in Figma or the React playground and set the size to small. Then inspect the font-size which will indicate a medium size.

Version

Latest

Browser

Safari

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions