Menu

Our site has two text inputs, and in a live browser they disagree on height, padding, border, background and placeholder
📰

Our site has two text inputs, and in a live browser they disagree on height, padding, border, background and placeholder

DEV Community: tailwindcss·Daniel Pertu·3 days ago
#u8C02zWb
#devtotailwindcss#devto#dev#pricing#border
Long article (663 words) — no AI summary yet.
Reading 0:00
15s threshold

notifio.app has two places where a visitor types into a box. One is the email field on /pricing , above the buy button. The other is the contact form on /help . Both are dark inputs on a dark page, written in the same codebase by the same person.

I had a feeling they were not the same component, so I stopped feeling and measured. In a real browser at 1280 pixels wide I read the computed style of the email input, its label and its submit button on each page, and compared the values.

The inputs

Property Pricing email Help email

Height 48.4 px 44.4 px

Padding, top and bottom 12 px 10 px

Padding, left 14 px 16 px

Border colour rgb(42, 42, 42) rgb(38, 38, 38)

Background rgb(10, 10, 10) rgb(17, 17, 17)

Placeholder colour rgb(58, 58, 58) rgb(64, 64, 64)

I read 22 values per input. Eleven were identical (font size, weight, line height, radius, border width, text colour and so on). Eleven differ, but some of those, such as width and the focus ring, come from the container or the browser.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.