Skip to content

Commit

Permalink
Only add inset CSS rule when animating out
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Aug 24, 2024
1 parent 6289f8e commit 8183fca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/components/src/navigator/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ const navigatorScreenAnimation = ( {
return css`
position: ${ isAnimatingOut ? 'absolute' : 'relative' };
z-index: ${ isAnimatingOut ? 0 : 1 };
inset: 0;
${ isAnimatingOut &&
css`
inset: 0;
` }
animation: ${ skipInitialAnimation
? 'none'
Expand Down

0 comments on commit 8183fca

Please sign in to comment.