fix(expansion): define default expansion header heights via css. (#9313)

This commit is contained in:
Joey Perrott
2018-01-23 07:56:46 -08:00
committed by Jeremy Elbourn
parent b626b133d8
commit c60483485e
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -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)),
]),
@@ -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;