-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(expansion): define default expansion header heights via css. #9313
fix(expansion): define default expansion header heights via css. #9313
Conversation
721a86c
to
594fa0f
Compare
Fixed author to be correct email for CLA. |
594fa0f
to
c7cd32d
Compare
CLAs look good, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, @crisbeto may have input
}), | ||
state('expanded', style({ | ||
height: '{{expandedHeight}}' | ||
}), { | ||
params: {expandedHeight: '64px'} | ||
params: {expandedHeight: '*'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that it's a better way to handle custom height, but AFAIK it will break the people that are using the binding as it's set up right now. We could either remove the inputs and leave these changes for a later release, or deprecate them and set up the bindings so they just set the height as an inline style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shouldn't break those using it as it is currently since we define the same expanded and collapsed heights (64px and 48px) in css rather than the animation parameters.
If a user set it by changing the animation params, it should be respected as it will be put into the style tag and override our css rule's height.
If a user set it by setting the params to *
and defined the css rule's, then it results as the same how the new set up works.
Am I missing a scenario that would break?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I probably got confused last time. Looking at it again, it should be fine.
c7cd32d
to
8ee9436
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
}), | ||
state('expanded', style({ | ||
height: '{{expandedHeight}}' | ||
}), { | ||
params: {expandedHeight: '64px'} | ||
params: {expandedHeight: '*'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I probably got confused last time. Looking at it again, it should be fine.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Addresses: #8592