Skip to content

[Website]: Fix line breaks on typography page#1214

Merged
juliasolorzano merged 4 commits into
stagingfrom
fix-line-breaks
Jun 7, 2016
Merged

[Website]: Fix line breaks on typography page#1214
juliasolorzano merged 4 commits into
stagingfrom
fix-line-breaks

Conversation

@maya

@maya maya commented May 31, 2016

Copy link
Copy Markdown
Contributor

Description

Fixes line breaks on typography page for body text and italic text.

Additional information

This is what it looks like on mobile:

screen shot 2016-05-31 at 3 41 53 pm

This is what it looks like on desktop:

screen shot 2016-05-31 at 3 42 07 pm

Fixes: #615.

@juliasolorzano

Copy link
Copy Markdown

@maya is there a reason why a new class name was added instead of incorporating this change into this line? https://github.com/18F/web-design-standards/blob/017fe1d45461b90b7b1322e532e4fde8628eeadf/docs/doc_assets/css/styleguide.scss#L817

@maya

maya commented Jun 7, 2016

Copy link
Copy Markdown
Contributor Author

@juliaelman it's a separate rule for just those longer text examples. That line groups heading elements (h1-h6) which it does not apply to.

Comment thread docs/_visual/typography.md Outdated
</div>
<div class="usa-font-example usa-width-one-half">
<p><em>Italic body copy. A series of <br>sentences together which <br>make a paragraph.</em></p>
<p class="font-example-paragraph"><em>Italic body copy. A series of <br>sentences together which <br>make a paragraph.</em></p>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is there a reason why the line breaks were left in here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed that and the remaining <br>s in 2d81e6c.

@juliasolorzano

Copy link
Copy Markdown

LGTM - thanks Maya!

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.

3 participants