Skip to content

Conversation

@thomastuts
Copy link
Contributor

Using Helvetica for button fonts causes some weird vertical alignment issues in Chrome OSX (Firefox and Safari are fine) for form elements such as <input> and <button>, but not for other elements such as <a>. Their alignment is especially noticeable if you place them next to each other (see before/after image).

Removing Helvetica from the fonts list for these elements causes the styling to fall back to using Arial, which fixes the issue. At the button's font sizes, it's hard to tell the difference between the two
types anyway, and arguably even (barely) improves legibility.

Before and after the fix, both in Primer and on GitHub:

image

Using Helvetica for button fonts causes some weird vertical alignment
issues in Chrome OSX (FireFox and Safari are fine) for form elements such
as `<input>` and `<button>`, but not for other elements such as `<a>`.
Their alignment is especially noticeable if you place them next
to each other.

Removing Helvetica from the fonts list for these elements causes the
styling to fall back to using Arial, which fixes the issue. At the
button's font sizes, it's hard to tell the difference between the two
types anyway, and arguably even (barely) improves legibility.
@mdo
Copy link
Contributor

mdo commented Mar 23, 2015

We won't be removing Helvetica from the stack. This is a Chrome bug that's already fixed in the latest Canary builds. Should land in stable soon. Thanks though!

@mdo mdo closed this Mar 23, 2015
@thomastuts
Copy link
Contributor Author

Cool, makes sense to wait for that. Thanks for the feedback!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants