Skip to content

Commit 8ee9436

Browse files
committed
fix(expansion): define default expansion header heights via css.
1 parent af44b9d commit 8ee9436

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/lib/expansion/expansion-animations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ export const matExpansionAnimations: {
3535
state('collapsed', style({
3636
height: '{{collapsedHeight}}',
3737
}), {
38-
params: {collapsedHeight: '48px'},
38+
params: {collapsedHeight: '*'},
3939
}),
4040
state('expanded', style({
4141
height: '{{expandedHeight}}'
4242
}), {
43-
params: {expandedHeight: '64px'}
43+
params: {expandedHeight: '*'}
4444
}),
4545
transition('expanded <=> collapsed', animate(EXPANSION_PANEL_ANIMATION_TIMING)),
4646
]),

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22
.mat-expansion-panel-header {
33
display: flex;
44
flex-direction: row;
5+
height: 48px;
56
align-items: center;
67
padding: 0 24px;
78

9+
&.mat-expanded {
10+
height: 64px;
11+
}
12+
813
&:focus,
914
&:hover {
1015
outline: none;

0 commit comments

Comments
 (0)