Skip to content

Commit

Permalink
Merge pull request #2932 from uswds/fix-external-link
Browse files Browse the repository at this point in the history
Update external link example to use hyphen
  • Loading branch information
Maya Benari committed Mar 11, 2019
2 parents 46f4695 + ecdc709 commit 92e1bf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/01-type/links.njk
Expand Up @@ -2,7 +2,7 @@

<p><a class="usa-link usa-color-text-visited" href="javascript:void(0);">This</a> is a visited link.</p>

<p>This is a link that goes to an <a class="usa-link usa-external_link" href="https://media.giphy.com/media/8sgNa77Dvj7tC/giphy.gif">external website</a>.</p>
<p>This is a link that goes to an <a class="usa-link usa-link--external" href="https://media.giphy.com/media/8sgNa77Dvj7tC/giphy.gif">external website</a>.</p>

<div class="usa-background-dark">
<p><a class="usa-link" href="javascript:void(0);">This</a> is a text link on a dark background.</p>
Expand Down
8 changes: 4 additions & 4 deletions src/stylesheets/elements/_typography.scss
Expand Up @@ -41,12 +41,12 @@ html {
// [href^="http:"]:not([href*="my-domain.com"])
// [href^="https:"]:not([href*="my-domain.com"])

.usa-external-link {
.usa-link--external {
@include external-link(external-link, external-link-hover);
}

.usa-external-link-alt {
@include external-link(external-link-alt, external-link-alt-hover);
&.usa-link--alt {
@include external-link(external-link-alt, external-link-alt-hover);
}
}

// Remove user agent styles
Expand Down

0 comments on commit 92e1bf9

Please sign in to comment.