Browse Source

setting font size to empty now correctly restores original theme size

telamonian 5 năm trước cách đây
mục cha
commit
9f32ff4c63
1 tập tin đã thay đổi với 1 bổ sung4 xóa
  1. 1 4
      packages/apputils/src/thememanager.ts

+ 1 - 4
packages/apputils/src/thememanager.ts

@@ -139,10 +139,7 @@ export class ThemeManager implements IThemeManager {
    * setting if it exists
    */
   getFontSize(settingsKey: string, cssKey: string): string {
-    return (
-      (this._settings.composite[settingsKey] as string) ||
-      getComputedStyle(document.documentElement).getPropertyValue(cssKey)
-    );
+    return (this._settings.composite[settingsKey] as string) || `initial`;
   }
 
   /**