Skip to content

Commit

Permalink
fix(sidenav): box shadow visible while closed when rendering on the s…
Browse files Browse the repository at this point in the history
…erver (#10969)
  • Loading branch information
crisbeto authored and josephperrott committed May 1, 2018
1 parent 7d2c31e commit cfe6c1d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lib/sidenav/drawer-animations.ts
Expand Up @@ -21,11 +21,13 @@ export const matDrawerAnimations: {
/** Animation that slides a drawer in and out. */
transformDrawer: trigger('transform', [
state('open, open-instant', style({
transform: 'translate3d(0, 0, 0)',
visibility: 'visible',
'transform': 'translate3d(0, 0, 0)',
'visibility': 'visible',
})),
state('void', style({
visibility: 'hidden',
// Avoids the shadow showing up when closed in SSR.
'box-shadow': 'none',
'visibility': 'hidden',
})),
transition('void => open-instant', animate('0ms')),
transition('void <=> open, open-instant => void',
Expand Down

0 comments on commit cfe6c1d

Please sign in to comment.