Media Card: Adds Cursor: Pointer to Progress Bar (#5091)

This commit is contained in:
Zack Arnett 2020-03-08 23:59:40 -04:00 committed by GitHub
parent 959d8c3181
commit 5651a61604
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -332,8 +332,13 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
.max="${stateObj.attributes.media_duration}"
.value="${getCurrentProgress(stateObj)}"
class="progress"
style="--paper-progress-active-color: ${this
._foregroundColor || "var(--accent-color)"}"
${styleMap({
"--paper-progress-active-color":
this._foregroundColor || "var(--accent-color)",
cursor: supportsFeature(stateObj, SUPPORT_SEEK)
? "pointer"
: "initial",
})}
@click=${(e: MouseEvent) =>
this._handleSeek(e, stateObj)}
></paper-progress>