mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 05:57:54 +00:00
reapply suggestions from code review
This commit is contained in:
parent
f0b0200932
commit
a763ad5bf1
@ -27,8 +27,10 @@ class HaEntityHumidifier extends HaEntityToggle {
|
||||
`;
|
||||
}
|
||||
|
||||
static get styles(): CSSResult {
|
||||
return css`
|
||||
static get styles(): CSSResult[] {
|
||||
return [
|
||||
super.styles,
|
||||
css`
|
||||
:host {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
@ -53,9 +55,8 @@ class HaEntityHumidifier extends HaEntityToggle {
|
||||
display: inline-block;
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
${super.styles}
|
||||
`;
|
||||
`,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -138,14 +138,18 @@ export class HaEntityToggle extends LitElement {
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
static get styles(): CSSResult {
|
||||
return css`
|
||||
static get styles(): CSSResult[] {
|
||||
return [
|
||||
css`
|
||||
:host {
|
||||
white-space: nowrap;
|
||||
min-width: 38px;
|
||||
}
|
||||
ha-icon-button {
|
||||
color: var(--ha-icon-button-inactive-color, var(--primary-text-color));
|
||||
color: var(
|
||||
--ha-icon-button-inactive-color,
|
||||
var(--primary-text-color)
|
||||
);
|
||||
transition: color 0.5s;
|
||||
}
|
||||
ha-icon-button[state-active] {
|
||||
@ -154,7 +158,8 @@ export class HaEntityToggle extends LitElement {
|
||||
ha-switch {
|
||||
padding: 13px 5px;
|
||||
}
|
||||
`;
|
||||
`,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user