From 124aa947e2a58e288a55f3f0c70a0de861d739e8 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Thu, 26 Nov 2020 20:32:15 +0100 Subject: [PATCH] Show pointer cursor for input + scene entity rows (#7830) --- .../entity-rows/hui-input-number-entity-row.ts | 3 +++ .../lovelace/entity-rows/hui-input-text-entity-row.ts | 10 ++++++++++ .../lovelace/entity-rows/hui-scene-entity-row.ts | 3 +++ 3 files changed, 16 insertions(+) diff --git a/src/panels/lovelace/entity-rows/hui-input-number-entity-row.ts b/src/panels/lovelace/entity-rows/hui-input-number-entity-row.ts index 051b32db71..50148f4536 100644 --- a/src/panels/lovelace/entity-rows/hui-input-number-entity-row.ts +++ b/src/panels/lovelace/entity-rows/hui-input-number-entity-row.ts @@ -134,6 +134,9 @@ class HuiInputNumberEntityRow extends LitElement implements LovelaceRow { width: 100%; max-width: 200px; } + :host { + cursor: pointer; + } `; } diff --git a/src/panels/lovelace/entity-rows/hui-input-text-entity-row.ts b/src/panels/lovelace/entity-rows/hui-input-text-entity-row.ts index 02c18143d3..b79fa2e699 100644 --- a/src/panels/lovelace/entity-rows/hui-input-text-entity-row.ts +++ b/src/panels/lovelace/entity-rows/hui-input-text-entity-row.ts @@ -1,5 +1,7 @@ import { PaperInputElement } from "@polymer/paper-input/paper-input"; import { + css, + CSSResult, customElement, html, LitElement, @@ -80,6 +82,14 @@ class HuiInputTextEntityRow extends LitElement implements LovelaceRow { ev.target.blur(); } + + static get styles(): CSSResult { + return css` + :host { + cursor: pointer; + } + `; + } } declare global { diff --git a/src/panels/lovelace/entity-rows/hui-scene-entity-row.ts b/src/panels/lovelace/entity-rows/hui-scene-entity-row.ts index 50d0867d56..ad9d655856 100644 --- a/src/panels/lovelace/entity-rows/hui-scene-entity-row.ts +++ b/src/panels/lovelace/entity-rows/hui-scene-entity-row.ts @@ -70,6 +70,9 @@ class HuiSceneEntityRow extends LitElement implements LovelaceRow { mwc-button { margin-right: -0.57em; } + :host { + cursor: pointer; + } `; }