mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(expansion): define default expansion header heights via css. (#9313)
This commit is contained in:
committed by
Jeremy Elbourn
parent
b626b133d8
commit
c60483485e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user