Added property to be able to change linear progress color.

This commit is contained in:
Matt Mo 2021-02-21 18:13:53 -08:00
parent 9bc8713a97
commit ac43b68f93

View File

@ -29,7 +29,6 @@ class LinearProgress extends IgniteElement {
left: -30em; left: -30em;
width: 30em; width: 30em;
height: 0.3em; height: 0.3em;
background-color: #26B3FC;
animation: loading 2s linear infinite; animation: loading 2s linear infinite;
} }
@ -65,13 +64,14 @@ class LinearProgress extends IgniteElement {
get properties() { get properties() {
return { return {
loading: true, loading: true,
color: "#26B3FC"
}; };
} }
render() { render() {
return this.template.child( return this.template.child(
new div( new div(
new div() new div().style("background-color", this.color)
) )
).show(this.loading) ).show(this.loading)
} }