Skip to content

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

Merged
mmalerba merged 4 commits into
angular:masterfrom
mmalerba:autocomplete-anim
Jan 13, 2021
Merged

feat(material-experimental/mdc-autocomplete): add panel animation#21525
mmalerba merged 4 commits into
angular:masterfrom
mmalerba:autocomplete-anim

Conversation

@mmalerba

@mmalerba mmalerba commented Jan 8, 2021

Copy link
Copy Markdown
Contributor

No description provided.

@mmalerba mmalerba added the target: patch This PR is targeted for the next patch release label Jan 8, 2021
@mmalerba
mmalerba requested a review from crisbeto as a code owner January 8, 2021 23:08
@google-cla google-cla Bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jan 8, 2021
Comment thread src/material-experimental/mdc-autocomplete/animations.ts
Comment thread src/material-experimental/mdc-autocomplete/animations.ts Outdated
{provide: MAT_OPTION_PARENT_COMPONENT, useExisting: MatAutocomplete}
]
],
animations: [panelAnimation],

Copy link
Copy Markdown
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
Copy Markdown
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 requested a review from devversion as a code owner 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
Copy Markdown
Contributor Author

CI issues should be resolved now, PTAL

@crisbeto crisbeto left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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.

[ngClass]="_classList"
[attr.aria-label]="ariaLabel || null"
[attr.aria-labelledby]="_getPanelAriaLabelledby(formFieldId)"
[@panelAnimation]="isOpen ? 'visible' : 'hidden'"

Copy link
Copy Markdown
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
Copy Markdown

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.

3 participants