mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-19 05:01:33 +00:00
gh-14483: Fix boost font override breaking certain icons (gh-14819)
This commit is contained in:
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user