Skip to content

Commit

Permalink
setting font size to empty now correctly restores original theme size
Browse files Browse the repository at this point in the history
  • Loading branch information
telamonian committed Aug 22, 2019
1 parent f64325f commit 9f32ff4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/apputils/src/thememanager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
}

/**
Expand Down

0 comments on commit 9f32ff4

Please sign in to comment.