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
[Mat-Form-Field] label/placeholder shake animation on input error #16634
Comments
I haven't dived into the repo before but in the meantime here is the shake animation on my custom component that I wrapped around mat-form-field animations: [
trigger('errorShake', [
state('0', style({})),
state('1', style({})),
transition('0 => 1', animate('450ms ease-out', keyframes([
style({ transform: 'translateX(0px)', offset: 0 }),
style({ transform: 'translateX(3.5px)', offset: 0.2 }),
style({ transform: 'translateX(-2.25px)', offset: 0.4 }),
style({ transform: 'translateX(1.25px)', offset: 0.6 }),
style({ transform: 'translateX(-.5px)', offset: 0.8 }),
style({ transform: 'translateX(0px)', offset: 1.0 }),
])))
])
]``` |
Hello @MMutch, I have the similar issue, only I need to remove animation from mat-form-field
|
Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends. Find more details about Angular's feature request process in our documentation. |
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage. We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package. You can find more details about the feature request process in our documentation. |
Feature Description
See the example in the official docs:
In a form field, on error, the label/placeholder lightly shakes (left and right) as it turns red.
Use Case
This will enhance form field UX by subtly grabbing user attention for errors during form field entry
The text was updated successfully, but these errors were encountered: