Skip to content
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

feat(material-experimental/mdc-autocomplete): add panel animation #21525

Merged
merged 4 commits into from Jan 13, 2021

Conversation

mmalerba
Copy link
Contributor

@mmalerba mmalerba commented Jan 8, 2021

No description provided.

@mmalerba mmalerba added the target: patch This PR is targeted for the next patch release label Jan 8, 2021
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jan 8, 2021
src/material-experimental/mdc-autocomplete/animations.ts Outdated Show resolved Hide resolved
@@ -35,7 +36,8 @@ import {
},
providers: [
{provide: MAT_OPTION_PARENT_COMPONENT, useExisting: MatAutocomplete}
]
],
animations: [panelAnimation],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have this on the non-MDC version too? I think that it may make the switch more difficult, because the timing in people's tests will change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My guess is adding it in the current one would be too hard to get in. We can try it at least in a separate PR

@mmalerba mmalerba force-pushed the autocomplete-anim branch 4 times, most recently from ca42c41 to 041b7cb Compare January 11, 2021 23:25
@mmalerba mmalerba force-pushed the autocomplete-anim branch 2 times, most recently from 0047e3c to 3007547 Compare January 12, 2021 00:12
@mmalerba
Copy link
Contributor Author

CI issues should be resolved now, PTAL

Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a couple of nits that aren't blocking.

transition(':enter, hidden => visible', [
group([
animate('0.03s linear', style({ opacity: 1 })),
animate('0.12s cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'scale(1)' })),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation seems off here.

@@ -6,6 +6,7 @@
[ngClass]="_classList"
[attr.aria-label]="ariaLabel || null"
[attr.aria-labelledby]="_getPanelAriaLabelledby(formFieldId)"
[@panelAnimation]="isOpen ? 'visible' : 'hidden'"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Calling it "*Animation" is redundant since the @ means that it's an animation. We could simplify it to just "panel"?

@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jan 12, 2021
@mmalerba mmalerba merged commit 8aebd03 into angular:master Jan 13, 2021
mmalerba added a commit that referenced this pull request Jan 13, 2021
…1525)

* feat(material-experimental/mdc-autocomplete): add panel animation

* fixup! feat(material-experimental/mdc-autocomplete): add panel animation

* fixup! feat(material-experimental/mdc-autocomplete): add panel animation

* fixup! feat(material-experimental/mdc-autocomplete): add panel animation

Co-authored-by: Andrew Seguin <andrewjs@google.com>
(cherry picked from commit 8aebd03)
wagnermaciel pushed a commit to wagnermaciel/components that referenced this pull request Jan 14, 2021
…gular#21525)

* feat(material-experimental/mdc-autocomplete): add panel animation

* fixup! feat(material-experimental/mdc-autocomplete): add panel animation

* fixup! feat(material-experimental/mdc-autocomplete): add panel animation

* fixup! feat(material-experimental/mdc-autocomplete): add panel animation

Co-authored-by: Andrew Seguin <andrewjs@google.com>
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants