mirror of
https://github.com/home-assistant/frontend.git
synced 2026-05-02 22:52:56 +01:00
Display tooltips for labels (#27613)
* add a description fo ha-label * add a description fo ha-label * add a description fo ha-label * add a description fo ha-label * add a description fo ha-label * add a description fo ha-label * add a description fo ha-label * add a description for ha-label * add ha-tooltip for ha-input-chip * add ha-tooltip * replace() -> replaceAll() * replace() -> replaceAll() * prettier * fix styles to enlarge an "active tooltip area" * additional check for null for "description" * simplify a check for description * simplify a check for description * simplify a check for description * simplify a check for description * simplify a check for description * simplify a check for description * simplify a check for description * simplify a check for description * simplify a check for description * call uid() in constructor * fix a check for null * attempting to bypass insecure randomness * move a call of uid() into constructor * uid generation tweak * Apply suggestions from code review * prettier * simplify --------- Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>
This commit is contained in:
@@ -458,7 +458,10 @@ class HaScriptPicker extends SubscribeMixin(LitElement) {
|
||||
.checked=${selected}
|
||||
.indeterminate=${partial}
|
||||
></ha-checkbox>
|
||||
<ha-label style=${color ? `--color: ${color}` : ""}>
|
||||
<ha-label
|
||||
style=${color ? `--color: ${color}` : ""}
|
||||
.description=${label.description}
|
||||
>
|
||||
${label.icon
|
||||
? html`<ha-icon slot="icon" .icon=${label.icon}></ha-icon>`
|
||||
: nothing}
|
||||
|
||||
Reference in New Issue
Block a user