Skip to content

Commit

Permalink
Merge pull request #3253 from uswds/dw-typeface-overrides
Browse files Browse the repository at this point in the history
Prevent subcomponent type styles from overriding the primary component
  • Loading branch information
mejiaj committed Dec 11, 2019
2 parents 772e089 + f615968 commit 71ec670
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 17 deletions.
57 changes: 43 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/stylesheets/components/_banner.scss
Expand Up @@ -7,6 +7,10 @@
font-size: font-size($theme-banner-font-family, "3xs");
padding-bottom: units(0);
}

.usa-accordion {
@include typeset($theme-banner-font-family);
}
}

.usa-banner__content {
Expand Down
9 changes: 6 additions & 3 deletions src/stylesheets/components/_footer.scss
Expand Up @@ -151,9 +151,8 @@
}

.usa-footer__logo-heading {
@include h3;
@include typeset($theme-footer-font-family, $theme-h3-font-size, 1);
@include u-margin-y(1);
line-height: line-height("heading", 1);
}

.usa-footer__contact-links {
Expand All @@ -166,7 +165,11 @@
}

.usa-footer__contact-heading {
@include h3;
@include typeset(
$theme-footer-font-family,
$theme-h3-font-size,
$theme-heading-line-height
);
margin-top: 0;

@include at-media("mobile-lg") {
Expand Down
4 changes: 4 additions & 0 deletions src/stylesheets/components/_navigation.scss
Expand Up @@ -55,6 +55,10 @@ $nav-link-arrow-icon-size: 1;
margin-left: units(2);
}
}

.usa-accordion {
@include typeset($theme-navigation-font-family, null, 1);
}
}

// Primary navigation
Expand Down

0 comments on commit 71ec670

Please sign in to comment.