Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Fix Bug 1159634 - Set h5 font-size #3227

Merged

Conversation

davidyezsetz
Copy link
Contributor

No description provided.

@groovecoder
Copy link
Contributor

@stephaniehobson or @openjck ?

@stephaniehobson stephaniehobson self-assigned this Jun 1, 2015
@@ -48,6 +48,11 @@ h4 {
letter-spacing: -0.014em;
}

h5 {
set-font-size(16px);
letter-spacing: -0.014em;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

16px looks good :)

We're going to start lazy loading our web fonts. As part of this, there's now a way to hand-craft the display of the fallback fonts. You can see how it was declared for the h4 tag here: https://github.com/mozilla/kuma/blob/master/media/stylus/base/elements/typography.styl#L69-L75 Could you add fallbacks for the h5?

I usually test this with dev tools by creating a block of multi-line text in each font and then absolutely positioning them over each other and fine tuning.

Alternatively, copying the h4 declaration would still get an R+ from me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing.

@davidyezsetz
Copy link
Contributor Author

@stephaniehobson this is what you had in mind right? (Green is a fallback font)
fallback_font

@stephaniehobson
Copy link
Contributor

It looks good from here but review is going to be delayed until I have the new VM running, sorry!

stephaniehobson added a commit that referenced this pull request Jun 12, 2015
@stephaniehobson stephaniehobson merged commit 41c8df3 into mdn:master Jun 12, 2015
@davidyezsetz davidyezsetz deleted the bug-1159634-h5-font-too-small branch June 13, 2015 21:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants