Make WordPress Core


Ignore:
Timestamp:
01/18/2019 06:37:26 PM (8 years ago)
Author:
laurelfulford
Message:

Twenty Nineteen: Use a less aggressive approach for non-latin font fallbacks.

The theme's original approach to its non-latin font fallbacks required !important, which overrode fonts that shouldn't have been changed, like the icon fonts used for editor buttons.

Props kjellr, mako09, allancole.
Fixes #45731.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/sass/typography/_typography.scss

    r44149 r44650  
    88        -moz-osx-font-smoothing: grayscale;
    99        color: $color__text-main;
    10         font-family: $font__body;
     10        @include font-family( $font__body );
    1111        font-weight: 400;
    1212        font-size: 1em;
     
    2222textarea {
    2323        color: $color__text-main;
    24         font-family: $font__body;
     24        @include font-family( $font__body );
    2525        font-weight: 400;
    2626        line-height: $font__line-height-body;
     
    3131
    3232@import "copy";
    33 
    34 @include non-latin-fonts();
Note: See TracChangeset for help on using the changeset viewer.