Add css var for the color of the icon
This commit is contained in:
parent
2dc72fc5e2
commit
49bfcedc72
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tp/tp-checkbox",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "",
|
||||
"main": "tp-checkbox.js",
|
||||
"scripts": {
|
||||
|
@ -65,7 +65,7 @@ class TpCheckbox extends Inert(ControlState(FormElement(LitElement))) {
|
||||
}
|
||||
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user