Skip to content

Commit

Permalink
fix(expansion): define default expansion header heights via css.
Browse files Browse the repository at this point in the history
  • Loading branch information
josephperrott committed Jan 12, 2018
1 parent af44b9d commit 8ee9436
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/expansion/expansion-animations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ export const matExpansionAnimations: {
state('collapsed', style({
height: '{{collapsedHeight}}',
}), {
params: {collapsedHeight: '48px'},
params: {collapsedHeight: '*'},
}),
state('expanded', style({
height: '{{expandedHeight}}'
}), {
params: {expandedHeight: '64px'}
params: {expandedHeight: '*'}
}),
transition('expanded <=> collapsed', animate(EXPANSION_PANEL_ANIMATION_TIMING)),
]),
Expand Down
5 changes: 5 additions & 0 deletions src/lib/expansion/expansion-panel-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
.mat-expansion-panel-header {
display: flex;
flex-direction: row;
height: 48px;
align-items: center;
padding: 0 24px;

&.mat-expanded {
height: 64px;
}

&:focus,
&:hover {
outline: none;
Expand Down

0 comments on commit 8ee9436

Please sign in to comment.