Skip to content

Commit d199521

Browse files
authored
fix(icon): fix lighthouse warning
the icon fonts need font-display to eliminate lighthouse warning in devtools Fontaweseome did this themselves by FortAwesome/wordpress-fontawesome#110
1 parent 9773a1d commit d199521

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/themes/default/elements/icon.variables

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
4949
if(@supportIE, e(',') url("@{fontPath}/@{fontName}.woff") format('woff'));
5050
font-style : normal;
5151
font-weight : @normal;
52+
font-display : block;
5253
font-variant : normal;
5354
text-decoration: inherit;
5455
text-transform : none;
@@ -59,6 +60,7 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
5960
if(@supportIE, e(',') url("@{fontPath}/@{outlineFontName}.woff") format('woff'));
6061
font-style : normal;
6162
font-weight : @normal;
63+
font-display : block;
6264
font-variant : normal;
6365
text-decoration: inherit;
6466
text-transform : none;
@@ -69,6 +71,7 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
6971
if(@supportIE, e(',') url("@{fontPath}/@{brandFontName}.woff") format('woff'));
7072
font-style : normal;
7173
font-weight : @normal;
74+
font-display : block;
7275
font-variant : normal;
7376
text-decoration: inherit;
7477
text-transform : none;

0 commit comments

Comments
 (0)