You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ghost opened this issue
Dec 4, 2018
· 1 comment
· Fixed by #14384
Assignees
Labels
featureThis issue represents a new feature or feature request rather than a bug or bug fixP4A relatively minor issue that is not relevant to core functions
Possibility to control globally the collapsedHeight and expandedHeight properties of an Expansion Panel Header.
What is the expected behavior?
Similarly to what is currently available for form fields (via MAT_FORM_FIELD_DEFAULT_OPTIONS), if the mat-expansion-panel-headercollapsedHeight and expandedHeight properties are available for a global definition (default options), they should be considered for any Expansion Panel Header on the application.
If an Expansion Panel Header explicitly defines any of these properties, then the default values should be overriden.
What is the current behavior?
Not available as of now. Each mat-expansion-panel-header needs to explicitly declare these properties.
What are the steps to reproduce?
N/A
What is the use-case or motivation for changing an existing behavior?
When the Angular Material default values for collapsedHeight and expandedHeight don't meet the application needs, there should be a way to redefine them, reuse them, and consider their values from a global perspective.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Any.
Is there anything else we should know?
N/A
The text was updated successfully, but these errors were encountered:
crisbeto
added
feature
This issue represents a new feature or feature request rather than a bug or bug fix
has pr
P4
A relatively minor issue that is not relevant to core functions
labels
Dec 4, 2018
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Dec 4, 2018
…t options (angular#14384)
Adds a new injection token to allow people to configure the default options for the expansion panel component.
Fixesangular#14383.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
featureThis issue represents a new feature or feature request rather than a bug or bug fixP4A relatively minor issue that is not relevant to core functions
Bug, feature request, or proposal:
Possibility to control globally the
collapsedHeight
andexpandedHeight
properties of an Expansion Panel Header.What is the expected behavior?
Similarly to what is currently available for form fields (via
MAT_FORM_FIELD_DEFAULT_OPTIONS
), if themat-expansion-panel-header
collapsedHeight
andexpandedHeight
properties are available for a global definition (default options), they should be considered for any Expansion Panel Header on the application.If an Expansion Panel Header explicitly defines any of these properties, then the default values should be overriden.
What is the current behavior?
Not available as of now. Each
mat-expansion-panel-header
needs to explicitly declare these properties.What are the steps to reproduce?
N/A
What is the use-case or motivation for changing an existing behavior?
When the Angular Material default values for
collapsedHeight
andexpandedHeight
don't meet the application needs, there should be a way to redefine them, reuse them, and consider their values from a global perspective.Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Any.
Is there anything else we should know?
N/A
The text was updated successfully, but these errors were encountered: