- ${this.value
- ? this.valueRenderer
- ? html`${placeholder}${this.valueRenderer(this.value)}`
- : html`${placeholder}${this.value}`
- : html`
-
- ${this.placeholder}
-
- `}
+ ${this.icon
+ ? html``
+ : nothing}
+ ${overlineLabel}${headlineContent}
${this.unknown
? html`
${this.unknownItemText ||
@@ -169,6 +183,11 @@ export class HaPickerField extends LitElement {
background-color: var(--ha-color-fill-warning-quiet-resting);
}
+ :host([invalid]) ha-combo-box-item:after {
+ height: 2px;
+ background-color: var(--mdc-theme-error, var(--error-color, #b00020));
+ }
+
.clear {
margin: 0 -8px;
--mdc-icon-button-size: 32px;
diff --git a/src/translations/en.json b/src/translations/en.json
index b0b039e0a5..fcae62143e 100644
--- a/src/translations/en.json
+++ b/src/translations/en.json
@@ -769,6 +769,9 @@
"no_match": "No languages found for {term}",
"no_languages": "No languages available"
},
+ "icon-picker": {
+ "no_match": "No matching icons found"
+ },
"tts-picker": {
"tts": "Text-to-speech",
"none": "None"