Skip to content

Commit

Permalink
fix(icon): fix lighthouse warning
Browse files Browse the repository at this point in the history
the icon fonts need font-display to eliminate lighthouse warning in devtools
Fontaweseome did this themselves by FortAwesome/wordpress-fontawesome#110
  • Loading branch information
lubber-de authored Oct 24, 2022
1 parent 9773a1d commit d199521
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/themes/default/elements/icon.variables
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
if(@supportIE, e(',') url("@{fontPath}/@{fontName}.woff") format('woff'));
font-style : normal;
font-weight : @normal;
font-display : block;
font-variant : normal;
text-decoration: inherit;
text-transform : none;
Expand All @@ -59,6 +60,7 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
if(@supportIE, e(',') url("@{fontPath}/@{outlineFontName}.woff") format('woff'));
font-style : normal;
font-weight : @normal;
font-display : block;
font-variant : normal;
text-decoration: inherit;
text-transform : none;
Expand All @@ -69,6 +71,7 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
if(@supportIE, e(',') url("@{fontPath}/@{brandFontName}.woff") format('woff'));
font-style : normal;
font-weight : @normal;
font-display : block;
font-variant : normal;
text-decoration: inherit;
text-transform : none;
Expand Down

0 comments on commit d199521

Please sign in to comment.