From d199521157fb5eb06ed33ce2ec4521a111e21bf5 Mon Sep 17 00:00:00 2001 From: Marco 'Lubber' Wienkoop Date: Mon, 24 Oct 2022 13:21:20 +0200 Subject: [PATCH] fix(icon): fix lighthouse warning the icon fonts need font-display to eliminate lighthouse warning in devtools Fontaweseome did this themselves by https://github.com/FortAwesome/wordpress-fontawesome/pull/110 --- src/themes/default/elements/icon.variables | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/themes/default/elements/icon.variables b/src/themes/default/elements/icon.variables index f40bde3471..6babc527dc 100644 --- a/src/themes/default/elements/icon.variables +++ b/src/themes/default/elements/icon.variables @@ -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; @@ -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; @@ -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;