Skip to content

Commit

Permalink
Make required asterisk consistent (#17403)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored Aug 1, 2023
1 parent 85c3d8e commit ece676e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/ha-selector/ha-selector-number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class HaNumberSelector extends LitElement {
${!isBox
? html`
${this.label
? html`${this.label}${this.required ? " *" : ""}`
? html`${this.label}${this.required ? "*" : ""}`
: ""}
<ha-slider
.min=${this.selector.number?.min}
Expand Down
4 changes: 1 addition & 3 deletions src/components/ha-selector/ha-selector-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ export class HaTemplateSelector extends LitElement {

protected render() {
return html`
${this.label
? html`<p>${this.label}${this.required ? " *" : ""}</p>`
: ""}
${this.label ? html`<p>${this.label}${this.required ? "*" : ""}</p>` : ""}
<ha-code-editor
mode="jinja2"
.hass=${this.hass}
Expand Down

0 comments on commit ece676e

Please sign in to comment.