Add css var for the color of the icon

This commit is contained in:
trading_peter 2022-03-14 00:22:46 +01:00
parent 2dc72fc5e2
commit 49bfcedc72
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@tp/tp-checkbox", "name": "@tp/tp-checkbox",
"version": "1.0.0", "version": "1.0.1",
"description": "", "description": "",
"main": "tp-checkbox.js", "main": "tp-checkbox.js",
"scripts": { "scripts": {

View File

@ -65,7 +65,7 @@ class TpCheckbox extends Inert(ControlState(FormElement(LitElement))) {
} }
static get checkedIcon() { static get checkedIcon() {
return svg`<path d="M9,20.42L2.79,14.21L5.62,11.38L9,14.77L18.88,4.88L21.71,7.71L9,20.42Z" />`; return svg`<path fill="var(--tp-checkbox-icon-color)" d="M9,20.42L2.79,14.21L5.62,11.38L9,14.77L18.88,4.88L21.71,7.71L9,20.42Z" />`;
} }
static get properties() { static get properties() {