gh-14483: Fix boost font override breaking certain icons (gh-14819)

This commit is contained in:
Lokendra singh
2026-08-05 14:30:46 +05:30
committed by GitHub
parent 77aa6ff6c9
commit 11acda2db3

View File

@@ -81,8 +81,15 @@ export class nsZenBoostStyles {
}
if (fontCase != "" || fontFamily != "") {
const ignoredElements = [
".google-symbols",
"gf-load-icon-font",
"mat-icon",
".google-material-icons",
"span",
];
style += `/* Text Format */\n`;
style += `body *:not(.google-symbols, gf-load-icon-font, mat-icon, .google-material-icons) {\n`;
style += `body *:not(${ignoredElements.join(",")}) {\n`;
style += `${fontFamily}\n`;
style += `${fontCase}\n`;
style += `}\n`;