Fixed some styling issues with chips and made them use the color property for the close button color.
This commit is contained in:
parent
cf13ee1466
commit
d89d2638fb
7
chip.js
7
chip.js
@ -42,8 +42,11 @@ class Chip extends IgniteElement {
|
|||||||
.child(
|
.child(
|
||||||
new slot(this),
|
new slot(this),
|
||||||
new button()
|
new button()
|
||||||
.class("btn ml-1 p-0")
|
.class("btn ml-2 p-0")
|
||||||
.child(`<i class="fad fa-times-circle" style="--fa-secondary-color: rgba(0,0,0,0.3); --fa-primary-color: rgba(0,0,0,0.5);"></i>`)
|
.child(`<i class="fal fa-times"></i>`)
|
||||||
|
.style("color", this.color)
|
||||||
|
.style("line-height", "1")
|
||||||
|
.style("border", "none")
|
||||||
.onClick(() => this.onDelete())
|
.onClick(() => this.onDelete())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user