Hide top label for number selector using box mode (#21888)

This commit is contained in:
Paul Bottein 2024-09-05 10:22:39 +02:00 committed by GitHub
parent d28f1f07e7
commit 0ff2f1bf75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,7 +67,9 @@ export class HaNumberSelector extends LitElement {
} }
return html` return html`
${this.label ? html`${this.label}${this.required ? "*" : ""}` : nothing} ${this.label && !isBox
? html`${this.label}${this.required ? "*" : ""}`
: nothing}
<div class="input"> <div class="input">
${!isBox ${!isBox
? html` ? html`