Skip to content

Commit

Permalink
Merge pull request #29 from htmltiger/patch-1
Browse files Browse the repository at this point in the history
ios fix
  • Loading branch information
iantrich authored Jan 31, 2022
2 parents e0d24d2 + 9fcdb23 commit 20f0911
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bignumber-card.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class BigNumberCard extends HTMLElement {
_DEFAULT_STYLE = 'var(--label-badge-blue)';
_DEFAULT_COLOR = 'var(--primary-text-color)';
_DEFAULT_STYLE(){return 'var(--label-badge-blue)';}
_DEFAULT_COLOR(){return 'var(--primary-text-color)';}

constructor() {
super();
Expand Down Expand Up @@ -90,7 +90,7 @@ class BigNumberCard extends HTMLElement {
if (severity && severity.color) return severity.color;
}
if (config.color) return config.color;
return this._DEFAULT_COLOR;
return this._DEFAULT_COLOR();
}

_getStyle(entityState, config) {
Expand All @@ -99,7 +99,7 @@ class BigNumberCard extends HTMLElement {
if (severity && severity.bnStyle) return severity.bnStyle;
}
if (config.bnStyle) return config.bnStyle;
return this._DEFAULT_STYLE;
return this._DEFAULT_STYLE();
}

_translatePercent(value, min, max) {
Expand Down

0 comments on commit 20f0911

Please sign in to comment.