Skip to content

Commit

Permalink
fix(sidenav): content jumping in rtl and blurry text on IE (#12726)
Browse files Browse the repository at this point in the history
* Fixes the content of the sidenav jumping around in RTL if it has active animations.
* Fixes text inside the sidenav being blurry on IE and Edge.

Relates to #10026.
  • Loading branch information
crisbeto authored and jelbourn committed Aug 22, 2018
1 parent 6f35fdc commit 4050002
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/sidenav/drawer-animations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ export const matDrawerAnimations: {
} = {
/** Animation that slides a drawer in and out. */
transformDrawer: trigger('transform', [
// We remove the `transform` here completely, rather than setting it to zero, because:
// 1. Having a transform can cause elements with ripples or an animated
// transform to shift around in Chrome with an RTL layout (see #10023).
// 2. 3d transforms causes text to appear blurry on IE and Edge.
state('open, open-instant', style({
'transform': 'translate3d(0, 0, 0)',
'transform': 'none',
'visibility': 'visible',
})),
state('void', style({
Expand Down

0 comments on commit 4050002

Please sign in to comment.