diff --git a/src/dialogs/more-info/components/ha-more-info-toggle.ts b/src/dialogs/more-info/components/ha-more-info-toggle.ts index a275ace41f..540cb1d028 100644 --- a/src/dialogs/more-info/components/ha-more-info-toggle.ts +++ b/src/dialogs/more-info/components/ha-more-info-toggle.ts @@ -145,12 +145,12 @@ export class HaMoreInfoToggle extends LitElement { ha-control-button { flex: 1; width: 100%; - --button-bar-border-radius: 18px; + --control-button-border-radius: 18px; } ha-control-button.active { - --button-bar-icon-color: white; - --button-bar-background-color: var(--color); - --button-bar-background-opacity: 1; + --control-button-icon-color: white; + --control-button-background-color: var(--color); + --control-button-background-opacity: 1; } ha-control-button:not(:last-child) { margin-bottom: 6px; diff --git a/src/dialogs/more-info/controls/more-info-light.ts b/src/dialogs/more-info/controls/more-info-light.ts index 4500fc3f42..55c6da44ec 100644 --- a/src/dialogs/more-info/controls/more-info-light.ts +++ b/src/dialogs/more-info/controls/more-info-light.ts @@ -91,104 +91,99 @@ class MoreInfoLight extends LitElement { .stateObj=${this.stateObj} .stateOverride=${stateOverride} > - - ${ - supportsBrightness - ? html` - - - ` - : html` - - ` - } - ${ - supportsColorTemp || - supportsColor || - supportsEffects || - supportsBrightness - ? html` -
- ${supportsBrightness - ? html` + ${supportsBrightness + ? html` + + + ` + : html` + + `} + ${supportsColorTemp || + supportsColor || + supportsEffects || + supportsBrightness + ? html` +
+ ${supportsBrightness + ? html` + + + + ` + : null} + ${supportsColorTemp || supportsColor + ? html` + + + + ` + : null} + ${supportsEffects + ? html` + - + - ` - : null} - ${supportsColorTemp || supportsColor - ? html` - - - - ` - : null} - ${supportsEffects - ? html` - - - - - ${this.stateObj.attributes.effect_list!.map( - (effect: string) => html` - - ${effect} - - ` - )} - - ` - : null} -
- ` - : null - } + ${this.stateObj.attributes.effect_list!.map( + (effect: string) => html` + + ${effect} + + ` + )} + + ` + : null} +
+ ` + : null}