Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 189d4a0

Browse files
TedSandernshahan
authored andcommitted
Workaround a CSS Janus bug where duplicate transform rules don't get translated.
PiperOrigin-RevId: 213654230
1 parent b64e7f1 commit 189d4a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

angular_components/lib/app_layout/_mixins.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@
3535

3636
&[persistent].mat-drawer-collapsed {
3737
&:not([end]) {
38+
// TODO(google): Using a fake property to get around bug with
39+
// CSSJanus
3840
transform: translateX(-100%);
41+
-acx-workaround: true;
3942

4043
// If the drawer is collapsed, which needs to be an element before the
4144
// content, set the content to the left edge.
@@ -46,7 +49,10 @@
4649
}
4750

4851
&[end] {
52+
// TODO(google): Using a fake property to get around bug with
53+
// CSSJanus
4954
transform: translateX(100%);
55+
-acx-workaround: true;
5056

5157
// [end] drawer is positioned on the opposite side
5258
~ material-content,

0 commit comments

Comments
 (0)