Skip to content

Commit

Permalink
feat: use state-active-color fallback when state is on
Browse files Browse the repository at this point in the history
  • Loading branch information
jcwillox committed Feb 14, 2023
1 parent 9b74ee8 commit 3cd4506
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,11 @@ export class PaperButtonsRow extends LitElement {

hex = styles.getPropertyValue(`--state-${domain}-${active}-color`);
if (hex) return this._hexToRgb(hex);

if (stateObj.state === STATE_ON) {
hex = styles.getPropertyValue("--state-active-color");
if (hex) return this._hexToRgb(hex);
}
}
};

Expand Down

0 comments on commit 3cd4506

Please sign in to comment.