Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
telamonian committed Aug 22, 2019
1 parent 8065460 commit 92e8093
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/apputils/src/thememanager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,10 @@ export class ThemeManager implements IThemeManager {
);

// determine the increment
const incr = parts[1] === 'em' ? 0.1 : 1;
const incr = (add ? 1 : -1) * (parts[1] === 'em' ? 0.1 : 1);

// increment the font size and set it as an override
this._overrides[key] = `${Number(parts[0]) + (add ? incr : -incr)}${
parts[1]
}`;
this._overrides[key] = `${Number(parts[0]) + incr}${parts[1]}`;
return this._settings.set('overrides', this._overrides);
}

Expand Down

0 comments on commit 92e8093

Please sign in to comment.