Use list item for statistic picker (#25228)

* Use list item for statistic picker

* Use item interface

* Fix icon
This commit is contained in:
Paul Bottein
2025-04-30 10:40:56 +02:00
committed by GitHub
parent ded5ade0f2
commit 53a0b311de
8 changed files with 807 additions and 393 deletions

View File

@@ -180,7 +180,7 @@ export class HaEntityPicker extends LitElement {
protected render() {
return html`
${this.label ? html`<p class="label">${this.label}</p>` : nothing}
${this.label ? html`<label>${this.label}</label>` : nothing}
<div class="container">
${!this._opened
? html`<ha-combo-box-item
@@ -319,7 +319,7 @@ export class HaEntityPicker extends LitElement {
--mdc-icon-size: 20px;
width: 32px;
}
.label {
label {
display: block;
margin: 0 0 8px;
}