Skip to content

Commit

Permalink
fix(vertical-nav): stop unnecessarily animating overflow-y
Browse files Browse the repository at this point in the history
This prevents an Angular 14 developer warning.

closes #323
  • Loading branch information
kevinbuhmann committed Nov 14, 2022
1 parent dba1099 commit 9c936df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -159,6 +159,10 @@
}
}

.nav-group-children {
overflow-y: hidden;
}

.nav-trigger,
.nav-group-trigger {
//Display
Expand Down
Expand Up @@ -24,7 +24,7 @@ const COLLAPSED_STATE = 'collapsed';
animations: [
trigger('clrExpand', [
state(EXPANDED_STATE, style({ height: '*' })),
state(COLLAPSED_STATE, style({ height: 0, 'overflow-y': 'hidden', visibility: 'hidden' })),
state(COLLAPSED_STATE, style({ height: 0, visibility: 'hidden' })),
transition(`${EXPANDED_STATE} <=> ${COLLAPSED_STATE}`, animate('0.2s ease-in-out')),
]),
],
Expand Down

0 comments on commit 9c936df

Please sign in to comment.