mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-08 18:39:40 +00:00
Use list item for statistic picker (#25228)
* Use list item for statistic picker * Use item interface * Fix icon
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user