Make required asterisk consistent (#17403)

This commit is contained in:
Joost Lekkerkerker 2023-08-01 09:41:34 +02:00 committed by GitHub
parent 85c3d8ecd8
commit ece676e3dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -34,7 +34,7 @@ export class HaNumberSelector extends LitElement {
${!isBox ${!isBox
? html` ? html`
${this.label ${this.label
? html`${this.label}${this.required ? " *" : ""}` ? html`${this.label}${this.required ? "*" : ""}`
: ""} : ""}
<ha-slider <ha-slider
.min=${this.selector.number?.min} .min=${this.selector.number?.min}

View File

@ -21,9 +21,7 @@ export class HaTemplateSelector extends LitElement {
protected render() { protected render() {
return html` return html`
${this.label ${this.label ? html`<p>${this.label}${this.required ? "*" : ""}</p>` : ""}
? html`<p>${this.label}${this.required ? " *" : ""}</p>`
: ""}
<ha-code-editor <ha-code-editor
mode="jinja2" mode="jinja2"
.hass=${this.hass} .hass=${this.hass}