Show pointer cursor for input + scene entity rows (#7830)

This commit is contained in:
Philip Allgaier 2020-11-26 20:32:15 +01:00 committed by GitHub
parent e1add14453
commit 124aa947e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 0 deletions

View File

@ -134,6 +134,9 @@ class HuiInputNumberEntityRow extends LitElement implements LovelaceRow {
width: 100%; width: 100%;
max-width: 200px; max-width: 200px;
} }
:host {
cursor: pointer;
}
`; `;
} }

View File

@ -1,5 +1,7 @@
import { PaperInputElement } from "@polymer/paper-input/paper-input"; import { PaperInputElement } from "@polymer/paper-input/paper-input";
import { import {
css,
CSSResult,
customElement, customElement,
html, html,
LitElement, LitElement,
@ -80,6 +82,14 @@ class HuiInputTextEntityRow extends LitElement implements LovelaceRow {
ev.target.blur(); ev.target.blur();
} }
static get styles(): CSSResult {
return css`
:host {
cursor: pointer;
}
`;
}
} }
declare global { declare global {

View File

@ -70,6 +70,9 @@ class HuiSceneEntityRow extends LitElement implements LovelaceRow {
mwc-button { mwc-button {
margin-right: -0.57em; margin-right: -0.57em;
} }
:host {
cursor: pointer;
}
`; `;
} }