Skip to content

Commit 98a231d

Browse files
crisbetojelbourn
authored andcommitted
fix(expansion): incorrect margin for "before" indicator when expanded (#16420)
Fixes the panel header indicator not being positioned correctly when it's set to the `before` position and it's expanded. The issue comes from the fact that we were using `padding` instead of `margin` which changes the center of the rotation. Also fixes that the `before` position of the indicator doesn't account for RTL.
1 parent d4ef125 commit 98a231d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/material/expansion/expansion-panel-header.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
flex-direction: row-reverse;
2424

2525
.mat-expansion-indicator {
26-
padding: 0 16px 0 0;
26+
margin: 0 16px 0 0;
27+
28+
[dir='rtl'] & {
29+
margin: 0 0 0 16px;
30+
}
2731
}
2832
}
2933
}

0 commit comments

Comments
 (0)