Skip to content

Commit 85252b3

Browse files
josephperrottandrewseguin
authored andcommitted
feat(accordion): allow intermediate elements between accordion and expansion panel (#11016)
1 parent 45251ff commit 85252b3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib/expansion/expansion-panel.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@
2525
.mat-expansion-panel-spacing {
2626
margin: 16px 0;
2727

28-
.mat-accordion &:first-child {
28+
.mat-accordion > &:first-child,
29+
.mat-accordion > *:first-child & {
2930
margin-top: 0;
3031
}
3132

32-
.mat-accordion &:last-child {
33+
.mat-accordion > &:last-child,
34+
.mat-accordion > *:last-child & {
3335
margin-bottom: 0;
3436
}
3537
}

0 commit comments

Comments
 (0)