@@ -28,7 +28,6 @@ import {
2828import { classMap } from "lit/directives/class-map" ;
2929import memoizeOne from "memoize-one" ;
3030import { fireEvent } from "../common/dom/fire_event" ;
31- import { applyViewTransitionOnLoad } from "../common/dom/view_transition" ;
3231import { toggleAttribute } from "../common/dom/toggle_attribute" ;
3332import { stringCompare } from "../common/string/compare" ;
3433import { throttle } from "../common/util/throttle" ;
@@ -42,7 +41,7 @@ import { updateCanInstall } from "../data/update";
4241import { showEditSidebarDialog } from "../dialogs/sidebar/show-dialog-edit-sidebar" ;
4342import { SubscribeMixin } from "../mixins/subscribe-mixin" ;
4443import { actionHandler } from "../panels/lovelace/common/directives/action-handler-directive" ;
45- import { haStyleScrollbar , haStyleViewTransitions } from "../resources/styles" ;
44+ import { haStyleScrollbar } from "../resources/styles" ;
4645import type { HomeAssistant , PanelInfo , Route } from "../types" ;
4746import "./ha-fade-in" ;
4847import "./ha-icon" ;
@@ -307,9 +306,6 @@ class HaSidebar extends SubscribeMixin(LitElement) {
307306 protected firstUpdated ( changedProps : PropertyValues ) {
308307 super . firstUpdated ( changedProps ) ;
309308 this . _subscribePersistentNotifications ( ) ;
310-
311- // Trigger view transition on initial load
312- applyViewTransitionOnLoad ( this ) ;
313309 }
314310
315311 private _subscribePersistentNotifications ( ) : void {
@@ -330,11 +326,6 @@ class HaSidebar extends SubscribeMixin(LitElement) {
330326 toggleAttribute ( this , "expanded" , this . alwaysExpand ) ;
331327 }
332328
333- // Set up view transition names for staggered animations
334- this . _listItems . forEach ( ( item , index ) => {
335- ( item as HTMLElement ) . style . viewTransitionName = `sidebar-item-${ index } ` ;
336- } ) ;
337-
338329 if ( ! changedProps . has ( "hass" ) ) {
339330 return ;
340331 }
@@ -706,7 +697,6 @@ class HaSidebar extends SubscribeMixin(LitElement) {
706697 static get styles ( ) : CSSResultGroup {
707698 return [
708699 haStyleScrollbar ,
709- haStyleViewTransitions ,
710700 css `
711701 : host {
712702 overflow: visible;
@@ -753,7 +743,6 @@ class HaSidebar extends SubscribeMixin(LitElement) {
753743 }
754744 .menu ha-icon-button {
755745 color : var (--sidebar-icon-color );
756- view-transition-name : sidebar-menu-button;
757746 }
758747 .title {
759748 margin-left : 3px ;
0 commit comments