Skip to content

Commit d4e1362

Browse files
committed
Add to hui views
1 parent cd72e74 commit d4e1362

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/panels/lovelace/hui-root.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ import {
7272
} from "../../dialogs/quick-bar/show-dialog-quick-bar";
7373
import { showShortcutsDialog } from "../../dialogs/shortcuts/show-shortcuts-dialog";
7474
import { showVoiceCommandDialog } from "../../dialogs/voice-command-dialog/show-ha-voice-command-dialog";
75-
import { haStyle } from "../../resources/styles";
75+
import { haStyle, haStyleAnimations } from "../../resources/styles";
7676
import type { HomeAssistant, PanelInfo } from "../../types";
7777
import { documentationUrl } from "../../util/documentation-url";
7878
import { showToast } from "../../util/toast";
@@ -1205,6 +1205,7 @@ class HUIRoot extends LitElement {
12051205
static get styles(): CSSResultGroup {
12061206
return [
12071207
haStyle,
1208+
haStyleAnimations,
12081209
css`
12091210
:host {
12101211
-ms-user-select: none;
@@ -1259,6 +1260,8 @@ class HUIRoot extends LitElement {
12591260
padding: 0px 12px;
12601261
font-weight: var(--ha-font-weight-normal);
12611262
box-sizing: border-box;
1263+
animation: fadeIn var(--ha-animation-duration) ease-out both;
1264+
animation-delay: var(--ha-animation-delay-base);
12621265
}
12631266
.narrow .toolbar {
12641267
padding: 0 4px;

src/resources/theme/core.globals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const coreStyles = css`
4444
--ha-space-20: 80px;
4545
4646
/* Animation timing */
47-
--ha-animation-duration: 300ms;
47+
--ha-animation-duration: 400ms;
4848
--ha-animation-delay-base: 50ms;
4949
}
5050
`;

0 commit comments

Comments
 (0)