fix: false is showing when pulse is not set
This commit is contained in:
parent
a4d1e2f496
commit
3348ecc5ee
1 changed files with 3 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ class StatusIndicator extends WebComponent {
|
||||||
|
|
||||||
${
|
${
|
||||||
/** if pulse is set, add animation keyframes */
|
/** if pulse is set, add animation keyframes */
|
||||||
this.props.pulse && html`
|
this.props.pulse ? html`
|
||||||
<style>
|
<style>
|
||||||
@keyframes pulse {
|
@keyframes pulse {
|
||||||
0% { box-shadow: 0 0 0 0 rgba(${this.#indicatorColor[this.props.status]}, 0.5);}
|
0% { box-shadow: 0 0 0 0 rgba(${this.#indicatorColor[this.props.status]}, 0.5);}
|
||||||
|
|
@ -52,6 +52,8 @@ class StatusIndicator extends WebComponent {
|
||||||
100% { box-shadow: 0 0 0 0 rgba(${this.#indicatorColor[this.props.status]}, 0); }
|
100% { box-shadow: 0 0 0 0 rgba(${this.#indicatorColor[this.props.status]}, 0); }
|
||||||
}
|
}
|
||||||
</style>`
|
</style>`
|
||||||
|
:
|
||||||
|
''
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue