Skip to content

Commit

Permalink
Merge pull request #55 from 18F/li-max-width
Browse files Browse the repository at this point in the history
Add max-width to list items, remove bottom margin.
  • Loading branch information
adunkman committed Feb 12, 2019
2 parents fbea3e3 + 68b31f3 commit dcb0291
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/typography.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,10 @@ Use <code class="text-no-wrap">div.usa-prose</code> to indicate that the immedia
<h6>Simple and secure <span class="text-no-wrap text-secondary">(h6)</span></h6>

<p>Dedicated teams of design and security experts will continuously improve it.</p>

<ul>
<li>We welcome external review of our privacy-protection measures. All of our code is available for public inspection in an open-source repository. Our goal: make sure that at every step users know their privacy is being protected by design.</li>
<li>For more information, please visit the login.gov Help Center or contact us. You can also visit our open-source repository.</li>
<li>Dedicated teams of design and security experts will continuously improve it.</li>
</ul>
</div>
11 changes: 11 additions & 0 deletions src/scss/components/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@
@include u-font-weight('bold');
letter-spacing: 0.3px;
}

// https://github.com/uswds/uswds/pull/2906
ol, ul {
&:last-child {
margin-bottom: 0;
}

li {
max-width: measure($theme-text-measure);
}
}
}

.usa-font-lead {
Expand Down

0 comments on commit dcb0291

Please sign in to comment.