Skip to content

feat(material-experimental/mdc-form-field): support for disabling animations #18397

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

Merged

Conversation

devversion
Copy link
Member

@devversion devversion commented Feb 5, 2020

By leveraging the animations feature target, we can add support for
disabling animations of the form-field. Unlike in non experimental
Material components, the class for toggling the animations is now
scoped to the component. This gives more fine-grained control and
makes it public. The class doesn't need to be denoted as private, as
it can be useful for implementer's of custom form-field controls.

Also fixes that the line-ripple styles are not included.

@devversion devversion added pr: merge safe target: patch This PR is targeted for the next patch release labels Feb 5, 2020
@devversion devversion requested a review from mmalerba as a code owner February 5, 2020 13:57
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Feb 5, 2020
providers: Provider[] = [],
imports: any[] = [],
declarations: any[] = []): ComponentFixture<T> {
configureTestingModule(component, {providers, imports, declarations});
Copy link
Member Author

Choose a reason for hiding this comment

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

Note that I intentionally kept the parameters for createComponent untouched. It's out of scope for this PR to refactor how tests create the component.

…mations

By leveraging the animations feature target, we can add support for
disabling animations of the form-field. Unlike in non experimental
Material components, the class for toggling the animations is now
scoped to the component. This gives more fine-grained control and
makes it public. The class doesn't need to be denoted as private, as
it can be useful for implementers of custom form-field controls.

Also fixes that the line-ripple styles are not included.
@devversion devversion force-pushed the feat/mdc-form-field-disable-animations branch from 51d063d to ade2cf8 Compare February 5, 2020 14:59
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Feb 6, 2020
@mmalerba mmalerba merged commit ed77ec9 into angular:master Feb 7, 2020
@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 Mar 9, 2020
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.

4 participants