Skip to content

Commit 6d75914

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 ## Related FUI PR fomantic/Fomantic-UI#2519
1 parent a21ce4b commit 6d75914

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/templates/icon.variables.liquid

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
5050
if(@supportIE, e(',') url("@{fontPath}/@{fontName}.woff") format('woff'));
5151
font-style : normal;
5252
font-weight : @normal;
53+
font-display : block;
5354
font-variant : normal;
5455
text-decoration: inherit;
5556
text-transform : none;
@@ -62,6 +63,7 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
6263
if(@supportIE, e(',') url("@{fontPath}/@{outlineFontName}.woff") format('woff'));
6364
font-style : normal;
6465
font-weight : @normal;
66+
font-display : block;
6567
font-variant : normal;
6668
text-decoration: inherit;
6769
text-transform : none;
@@ -74,6 +76,7 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
7476
if(@supportIE, e(',') url("@{fontPath}/@{thinFontName}.woff") format('woff'));
7577
font-style : normal;
7678
font-weight : @normal;
79+
font-display : block;
7780
font-variant : normal;
7881
text-decoration: inherit;
7982
text-transform : none;
@@ -86,6 +89,7 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
8689
if(@supportIE, e(',') url("@{fontPath}/@{brandFontName}.woff") format('woff'));
8790
font-style : normal;
8891
font-weight : @normal;
92+
font-display : block;
8993
font-variant : normal;
9094
text-decoration: inherit;
9195
text-transform : none;

0 commit comments

Comments
 (0)