Skip to content

Commit 4050002

Browse files
crisbetojelbourn
authored andcommitted
fix(sidenav): content jumping in rtl and blurry text on IE (#12726)
* 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.
1 parent 6f35fdc commit 4050002

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/sidenav/drawer-animations.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ export const matDrawerAnimations: {
2020
} = {
2121
/** Animation that slides a drawer in and out. */
2222
transformDrawer: trigger('transform', [
23+
// We remove the `transform` here completely, rather than setting it to zero, because:
24+
// 1. Having a transform can cause elements with ripples or an animated
25+
// transform to shift around in Chrome with an RTL layout (see #10023).
26+
// 2. 3d transforms causes text to appear blurry on IE and Edge.
2327
state('open, open-instant', style({
24-
'transform': 'translate3d(0, 0, 0)',
28+
'transform': 'none',
2529
'visibility': 'visible',
2630
})),
2731
state('void', style({

0 commit comments

Comments
 (0)