diff --git a/src/pushbutton-element.ts b/src/pushbutton-element.ts index 68bff92..c0f1d61 100644 --- a/src/pushbutton-element.ts +++ b/src/pushbutton-element.ts @@ -33,10 +33,6 @@ export class PushbuttonElement extends LitElement { -moz-appearance: none; } - button:active .button-circle { - fill: url(#grad-down); - } - .clickable-element { cursor: pointer; } @@ -56,7 +52,7 @@ export class PushbuttonElement extends LitElement { render() { const { color, label } = this; - const buttonFill = this.pressed ? 'url(#grad-down)' : 'url(#grad-up)'; + const buttonFill = this.pressed ? `url(#grad-down-${color})` : `url(#grad-up-${color})`; return html`